All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.swing.jlf.JLFDesktopPaneUI
java.lang.Object
|
+----java.awt.swing.plaf.ComponentUI
|
+----java.awt.swing.plaf.DesktopPaneUI
|
+----java.awt.swing.basic.BasicDesktopPaneUI
|
+----java.awt.swing.jlf.JLFDesktopPaneUI
- public class JLFDesktopPaneUI
- extends BasicDesktopPaneUI
- implements MouseListener, ActionListener
This class is in charge of display of the JLFDesktop. It creates a JLFDesktopMenu
which it installs inside itself. It then registers for MouseEvents. When the
mouse enters the JLFDesktopMenu it pops down a menu to display the iconized windows.
- See Also:
- JLFDesktopManager, JLFDesktopMenu
JLFDesktopPaneUI()
-
actionPerformed(ActionEvent)
- This is an implemention of ActionListener.
createUI(JComponent)
- This fuction creates and returns a new JLFDesktopPaneUI.
frameDeiconified()
- This function is called each time a frame is deiconified.
frameIconified()
- This function is called each time a frame is iconified.
getIconizedWindows()
- This function returns the list of all iconizedWindows.
installUI(JComponent)
- This fuction creates the JLFDesktopManager.
mouseClicked(MouseEvent)
-
mouseEntered(MouseEvent)
- This is an implementation of a MouseListener function.
mouseExited(MouseEvent)
-
mousePressed(MouseEvent)
-
mouseReleased(MouseEvent)
-
removeDesktopIcons()
- This function removes any DesktopIcons from the desktop
and asks the DesktopManager to place them in the iconizedWindowList.
replaceDesktopIcons()
- This function removes InternalFrames from the IconizedWindowList
and places the DesktopIcons into the desktop.
showSelectionMenu()
- This function shows the popup menu which allows the user to select a window to deiconify.
uninstallUI(JComponent)
- This replaces desktop icons back to the Desktop.
JLFDesktopPaneUI
public JLFDesktopPaneUI()
createUI
public static ComponentUI createUI(JComponent c)
- This fuction creates and returns a new JLFDesktopPaneUI.
in the current implementation each JDesktopPane needs its own UI.
They cannot be shared. BAD THINGS WOULD HAPPEN.
installUI
public void installUI(JComponent c)
- This fuction creates the JLFDesktopManager.
It also causes all JDesktopIcons to be removed from the container and put into the desktop menu.
It also creates and installs the JLFDesktopMenu.
- Overrides:
- installUI in class BasicDesktopPaneUI
uninstallUI
public void uninstallUI(JComponent c)
- This replaces desktop icons back to the Desktop.
It also kills the DesktopMenu.
- Overrides:
- uninstallUI in class BasicDesktopPaneUI
removeDesktopIcons
protected void removeDesktopIcons()
- This function removes any DesktopIcons from the desktop
and asks the DesktopManager to place them in the iconizedWindowList.
It is called by installUI.
replaceDesktopIcons
protected void replaceDesktopIcons()
- This function removes InternalFrames from the IconizedWindowList
and places the DesktopIcons into the desktop.
It is called by uninstallUI.
mouseEntered
public void mouseEntered(MouseEvent e)
- This is an implementation of a MouseListener function.
and asks the DesktopManager to place them in the iconizedWindowList.
It is called by installUI.
showSelectionMenu
protected void showSelectionMenu()
- This function shows the popup menu which allows the user to select a window to deiconify.
It is called by mouseEntered.
getIconizedWindows
public Vector getIconizedWindows()
- This function returns the list of all iconizedWindows.
frameIconified
public void frameIconified()
- This function is called each time a frame is iconified.
it is called by JLFDesktopManager.
this notification is used to tell the DesktopMenu to update.
frameDeiconified
public void frameDeiconified()
- This function is called each time a frame is deiconified.
it is called by JLFDesktopManager.
this notification is used to tell the DesktopMenu to update.
actionPerformed
public void actionPerformed(ActionEvent e)
- This is an implemention of ActionListener.
this function is called when the user selects an item from the menu
which is created in the showDesktopMenu
mouseExited
public void mouseExited(MouseEvent e)
mousePressed
public void mousePressed(MouseEvent e)
mouseReleased
public void mouseReleased(MouseEvent e)
mouseClicked
public void mouseClicked(MouseEvent e)
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature