org.globus.cog.gridface.impl.desktop
Class AbstractDesktop

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JLayeredPane
                  extended byjavax.swing.JDesktopPane
                      extended byorg.globus.cog.gridface.impl.desktop.AbstractDesktop
All Implemented Interfaces:
AccessActionProxy, AccessClose, Accessible, AccessIcons, AccessPopup, AccessPreferences, AccessToolBar, ActionProxy, CanImportActionProxy, CoGTop, Desktop, GridFace, ImageObserver, ImportDataActionProxy, Logger, MenuContainer, Serializable, StatusListener
Direct Known Subclasses:
GridDesktopImpl

public abstract class AbstractDesktop
extends JDesktopPane
implements CoGTop, CanImportActionProxy, ImportDataActionProxy

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JDesktopPane
JDesktopPane.AccessibleJDesktopPane
 
Nested classes inherited from class javax.swing.JLayeredPane
JLayeredPane.AccessibleJLayeredPane
 
Nested classes inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
protected  CoGLogFrame cogLogFrame
           
protected static DesktopInternalFrameListener defaultDesktopFrameListener
          Default DesktopInternalFrame events listener
protected static DesktopIconListener defaultDesktopIconListener
          Default DesktopIcon events listener
protected static DesktopListener defaultDesktopListener
          Default Desktop events listener
protected static DesktopTransferHandler defaultDesktopTransferHandler
          Default Desktop Transfer Handler for drag and drop
protected  int defaultLogLevel
          Desktop Logger instance
protected  AbstractDesktopContainer desktopFrame
           
static Logger desktopLogger
           
protected  int id
          icon unique ID
protected static int id_counter
          icon ID static counter
protected  Date lastUpdateTime
           
static org.apache.log4j.Logger logger
           
protected  JMenuBar menuBar
          Desktop JMenuBar
protected  DesktopIconGroup myDesktopIcons
          Desktop icons in desktop
protected static Point popupLocation
          Popup point
protected  JPopupMenu popupMenu
          Desktop JPopupMenu
protected  DesktopIconGroup preDragIconSelection
          Capture selected icons before mouse press, helps during mouse drag of multiple icons.
protected  Vector registeredGridFaces
           
protected  Dimension screenSize
          Desktop size
static String sDefaultLoggerName
           
protected  boolean showWallpaper
           
static String sLOG_CoG
           
protected  String stringLabel
           
protected  DesktopToolBarImpl toolBar
          Desktop toolbar
protected  int xAxis_init
          Initial X-Axis location for next icon added to desktop
protected  int yAxis_init
           
 
Fields inherited from class javax.swing.JDesktopPane
LIVE_DRAG_MODE, OUTLINE_DRAG_MODE
 
Fields inherited from class javax.swing.JLayeredPane
DEFAULT_LAYER, DRAG_LAYER, FRAME_CONTENT_LAYER, LAYER_PROPERTY, MODAL_LAYER, PALETTE_LAYER, POPUP_LAYER
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface org.globus.cog.gridface.interfaces.Desktop
sABOUT, sADD_ICON, sARRANGEICONS, sBGCOLOR, sEXIT, sLOADDESKTOP, sNEWDESKTOP, sRENAMEDESKTOP, sSAVEDESKTOP
 
Fields inherited from interface org.globus.cog.gridface.impl.desktop.interfaces.AccessIcons
sCancel_button, sOK_button
 
Fields inherited from interface org.globus.cog.gridface.impl.desktop.interfaces.AccessPreferences
NO_TOSTRING, SUFFIX_TAG
 
Fields inherited from interface org.globus.cog.gridface.impl.util.Logger
DEBUG, ERROR, FATAL, INFO, sABOUT, WARN
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
AbstractDesktop(AbstractDesktopContainer desktopFrame, Dimension screenSize)
           
 
Method Summary
 void addFrame(JInternalFrame newFrame)
           
 void addFrame(JInternalFrame newFrame, TransferHandler transferHandler, DropTarget dropTarget, VetoableChangeListener vetoChangeListener, InternalFrameListener internalFrameListener)
           
 void addIcon()
           
 void addIcon(AbstractIcon newIcon)
           
 void addIcon(AbstractIcon newIcon, int xLoc, int yLoc, MouseListener mouseListener, MouseMotionListener mouseMotionListener, TransferHandler transferHandler, DropTarget dropTarget)
           
 void addIcon(String text)
           
 void addIcon(String text, int xLoc, int yLoc)
           
 void addIcon(String applicationClass, ObjectPair arguments)
           
 void addIcon(String applicationClass, ObjectPair arguments, String text)
           
 void addIcon(String applicationClass, ObjectPair arguments, String text, String iconType, String iconImage)
           
 void addIcon(String applicationClass, ObjectPair arguments, String text, String iconType, String iconImage, int xLoc, int yLoc)
           
 void addIcon(String iconType, String iconImage)
           
 void addIcon(String iconType, String iconImage, int xLoc, int yLoc)
           
 void addIcon(String text, String iconType, String iconImage)
           
 void addIcon(String text, String iconType, String iconImage, int xLoc, int yLoc)
           
 boolean addMenuBarMenu(JMenu newMenu)
           
 boolean addPopupMenuItem(JMenuItem newMenuItem)
           
 void arrangeIcons()
           
 boolean canImportToComponent(JComponent dropComponent, DesktopIconGroup iconGroup)
           
 int captureIconSelection()
           
 void cascadeAllFrames()
           
 void clearCapturedIconSelection()
           
 void clearLog()
           
 boolean close()
           
 void closeAllFrames()
           
protected  void configureMenuBar(JMenuBar desktopMenuBar)
           
 void configurePopup(JPopupMenu popup)
           
 boolean containsFrame(JInternalFrame checkFrame)
           
 void debug(String message)
          to write debugging messages which should not be printed when the application is in production.
 void deselectAllIcons()
           
 void deselectIcon(int iconId)
           
 void deselectIcons(DesktopIconGroup icons)
           
 void dissableIcon(int iconId)
           
 void dissableIcons(DesktopIconGroup icons)
           
 void enableIcon(int iconId)
           
 void enableIcons(DesktopIconGroup icons)
           
 void error(String message)
          for application error messages which are also logged to some log but, still, the application can hobble along.
 void fatal(String message)
          for critical messages, after logging of which the application quits abnormally.
 JMenu getAddNewIconMenu()
           
 DesktopIconGroup getAllIcons()
           
 Vector getAvailableIconTypes()
           
 CanImportActionProxy getCanImportActionProxy()
           
 DesktopInternalFrameListener getDefaultDesktopFrameListener()
           
 DesktopIconListener getDefaultDesktopIconListener()
           
 DesktopListener getDefaultDesktopListener()
           
 DesktopTransferHandler getDefaultDesktopTransferHandler()
           
 AbstractDesktopContainer getDesktopFrame()
           
 AbstractIcon getIcon(int IconId)
           
 int getId()
           
 ImportDataActionProxy getImportDataActionProxy()
           
 int getLevel()
           
protected  Logger getLogger()
           
 JMenuBar getMenuBar()
           
 MouseActionProxy getMouseActionProxy()
           
 JPopupMenu getPopup()
           
 Dimension getScreenSize()
           
 DesktopIconGroup getSelectedIcons()
           
 DesktopToolBarImpl getToolBar()
           
 DesktopIconGroup getUnSelectedIcons()
           
 boolean importDataToComponent(JComponent dropComponent, Transferable t, JComponent dragComponent, Point dragPoint, Point dropPoint)
           
 void info(String message)
          for messages similar to the "verbose" mode of many applications.
 void invertIconSelection()
           
 Date lastUpdateTime()
          Records the last time the GridFace was updated.
 void loadPreferences(Preferences startNode)
           
 void openAllFrames()
           
 void placeIcon(AbstractIcon oldIcon)
           
 void register(GridFace connection)
          Registers another GridFace to this GridFace.
 int releaseIconSelection()
           
 void removeAllIcons()
           
 void removeFrame(JInternalFrame frame)
           
 void removeIcon(AbstractIcon icon)
           
 void removeIcons(DesktopIconGroup icons)
           
 void resetDefaultIconLocation()
           
 void saveLogToFile(String fileName)
           
 void savePreferences(Preferences startNode)
           
 void selectAllIcons()
           
 void selectIcon(int iconId)
           
 void selectIcons(DesktopIconGroup icons)
           
 void setDefaultDesktopFrameListener(DesktopInternalFrameListener listener)
           
 void setDefaultDesktopIconListener(DesktopIconListener listener)
           
 void setDefaultDesktopListener(DesktopListener listener)
           
 void setDefaultDesktopTransferHandler(DesktopTransferHandler handler)
           
 void setDefaultListeners()
           
 void setDesktopFrame(AbstractDesktopContainer desktopFrm)
           
 void setLabel(String label)
          sets a label for a GridFace.
 void setLevel(int logLevel)
          Set log output level
 void setMenuBar(JMenuBar desktopMenuBar)
           
 void setPopup(JPopupMenu desktopPopup)
           
 void setScreenSize(Dimension screenSize)
           
 void setToolBar(DesktopToolBarImpl toolbar)
           
 void setWallpaper(ImageIcon backIcon)
           
 void setWallpaper(URI activeDesktop)
           
 void showAboutFrame(Component parent)
          display the about frame for this component
 void showBGColorChooser()
           
 void showPopupAt(int xLoc, int yLoc)
           
 void startLogger()
           
 void update()
          updates the displaed gridface.
 void warn(String message)
          for warning messages which are logged to some log but the application is able to carry on without a problem
 
Methods inherited from class javax.swing.JDesktopPane
getAccessibleContext, getAllFrames, getAllFramesInLayer, getDesktopManager, getDragMode, getSelectedFrame, getUI, getUIClassID, isOpaque, paramString, setDesktopManager, setDragMode, setSelectedFrame, setUI, updateUI
 
Methods inherited from class javax.swing.JLayeredPane
addImpl, getComponentCountInLayer, getComponentsInLayer, getComponentToLayer, getIndexOf, getLayer, getLayer, getLayeredPaneAbove, getObjectForLayer, getPosition, highestLayer, insertIndexForLayer, isOptimizedDrawingEnabled, lowestLayer, moveToBack, moveToFront, paint, putLayer, remove, setLayer, setLayer, setPosition
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.globus.cog.gridface.impl.desktop.interfaces.CoGTop
getBounds
 
Methods inherited from interface org.globus.cog.gridface.interfaces.GridFace
setName
 
Methods inherited from interface org.globus.cog.abstraction.interfaces.StatusListener
statusChanged
 

Field Detail

logger

public static org.apache.log4j.Logger logger

desktopFrame

protected AbstractDesktopContainer desktopFrame

showWallpaper

protected boolean showWallpaper

id

protected int id
icon unique ID


id_counter

protected static int id_counter
icon ID static counter


myDesktopIcons

protected DesktopIconGroup myDesktopIcons
Desktop icons in desktop


preDragIconSelection

protected DesktopIconGroup preDragIconSelection
Capture selected icons before mouse press, helps during mouse drag of multiple icons.


menuBar

protected JMenuBar menuBar
Desktop JMenuBar


toolBar

protected DesktopToolBarImpl toolBar
Desktop toolbar


popupMenu

protected JPopupMenu popupMenu
Desktop JPopupMenu


popupLocation

protected static Point popupLocation
Popup point


screenSize

protected Dimension screenSize
Desktop size


xAxis_init

protected int xAxis_init
Initial X-Axis location for next icon added to desktop


yAxis_init

protected int yAxis_init

defaultDesktopListener

protected static DesktopListener defaultDesktopListener
Default Desktop events listener


defaultDesktopIconListener

protected static DesktopIconListener defaultDesktopIconListener
Default DesktopIcon events listener


defaultDesktopFrameListener

protected static DesktopInternalFrameListener defaultDesktopFrameListener
Default DesktopInternalFrame events listener


defaultDesktopTransferHandler

protected static DesktopTransferHandler defaultDesktopTransferHandler
Default Desktop Transfer Handler for drag and drop


defaultLogLevel

protected int defaultLogLevel
Desktop Logger instance


sLOG_CoG

public static final String sLOG_CoG
See Also:
Constant Field Values

sDefaultLoggerName

public static String sDefaultLoggerName

desktopLogger

public static Logger desktopLogger

cogLogFrame

protected CoGLogFrame cogLogFrame

lastUpdateTime

protected Date lastUpdateTime

stringLabel

protected String stringLabel

registeredGridFaces

protected Vector registeredGridFaces
Constructor Detail

AbstractDesktop

public AbstractDesktop(AbstractDesktopContainer desktopFrame,
                       Dimension screenSize)
Method Detail

getDesktopFrame

public final AbstractDesktopContainer getDesktopFrame()
Specified by:
getDesktopFrame in interface CoGTop

setDesktopFrame

public final void setDesktopFrame(AbstractDesktopContainer desktopFrm)
Specified by:
setDesktopFrame in interface CoGTop

getId

public final int getId()
Specified by:
getId in interface CoGTop

debug

public final void debug(String message)
Description copied from interface: Logger
to write debugging messages which should not be printed when the application is in production.

Specified by:
debug in interface Logger

error

public final void error(String message)
Description copied from interface: Logger
for application error messages which are also logged to some log but, still, the application can hobble along.

Specified by:
error in interface Logger

fatal

public final void fatal(String message)
Description copied from interface: Logger
for critical messages, after logging of which the application quits abnormally.

Specified by:
fatal in interface Logger

getLevel

public final int getLevel()
Specified by:
getLevel in interface Logger
Returns:
current log output level

info

public final void info(String message)
Description copied from interface: Logger
for messages similar to the "verbose" mode of many applications.

Specified by:
info in interface Logger

setLevel

public final void setLevel(int logLevel)
Description copied from interface: Logger
Set log output level

Specified by:
setLevel in interface Logger

warn

public final void warn(String message)
Description copied from interface: Logger
for warning messages which are logged to some log but the application is able to carry on without a problem

Specified by:
warn in interface Logger

showAboutFrame

public void showAboutFrame(Component parent)
Description copied from interface: Logger
display the about frame for this component

Specified by:
showAboutFrame in interface Logger

clearLog

public final void clearLog()
Specified by:
clearLog in interface Logger

saveLogToFile

public final void saveLogToFile(String fileName)
                         throws IOException
Specified by:
saveLogToFile in interface Logger
Throws:
IOException

resetDefaultIconLocation

public void resetDefaultIconLocation()
Specified by:
resetDefaultIconLocation in interface CoGTop

addIcon

public final void addIcon()
                   throws Exception
Specified by:
addIcon in interface AccessIcons
Throws:
Exception

addIcon

public final void addIcon(String text)
                   throws Exception
Specified by:
addIcon in interface AccessIcons
Throws:
Exception

addIcon

public final void addIcon(String iconType,
                          String iconImage)
                   throws Exception
Specified by:
addIcon in interface AccessIcons
Throws:
Exception

addIcon

public final void addIcon(String text,
                          String iconType,
                          String iconImage)
                   throws Exception
Specified by:
addIcon in interface AccessIcons
Throws:
Exception

addIcon

public final void addIcon(String text,
                          int xLoc,
                          int yLoc)
                   throws Exception
Specified by:
addIcon in interface AccessIcons
Throws:
Exception

addIcon

public final void addIcon(String iconType,
                          String iconImage,
                          int xLoc,
                          int yLoc)
                   throws Exception
Specified by:
addIcon in interface AccessIcons
Throws:
Exception

addIcon

public final void addIcon(String text,
                          String iconType,
                          String iconImage,
                          int xLoc,
                          int yLoc)
                   throws Exception
Specified by:
addIcon in interface AccessIcons
Throws:
Exception

addIcon

public final void addIcon(String applicationClass,
                          ObjectPair arguments)
                   throws Exception
Specified by:
addIcon in interface AccessIcons
Throws:
Exception

addIcon

public final void addIcon(String applicationClass,
                          ObjectPair arguments,
                          String text)
                   throws Exception
Specified by:
addIcon in interface AccessIcons
Throws:
Exception

addIcon

public final void addIcon(String applicationClass,
                          ObjectPair arguments,
                          String text,
                          String iconType,
                          String iconImage)
                   throws Exception
Specified by:
addIcon in interface AccessIcons
Throws:
Exception

addIcon

public final void addIcon(String applicationClass,
                          ObjectPair arguments,
                          String text,
                          String iconType,
                          String iconImage,
                          int xLoc,
                          int yLoc)
                   throws Exception
Specified by:
addIcon in interface AccessIcons
Throws:
Exception

addIcon

public final void addIcon(AbstractIcon newIcon)
Specified by:
addIcon in interface AccessIcons

addIcon

public final void addIcon(AbstractIcon newIcon,
                          int xLoc,
                          int yLoc,
                          MouseListener mouseListener,
                          MouseMotionListener mouseMotionListener,
                          TransferHandler transferHandler,
                          DropTarget dropTarget)
Specified by:
addIcon in interface AccessIcons

placeIcon

public final void placeIcon(AbstractIcon oldIcon)
Specified by:
placeIcon in interface AccessIcons

removeIcon

public final void removeIcon(AbstractIcon icon)
Specified by:
removeIcon in interface AccessIcons

removeIcons

public final void removeIcons(DesktopIconGroup icons)
Specified by:
removeIcons in interface AccessIcons

removeAllIcons

public final void removeAllIcons()
Specified by:
removeAllIcons in interface AccessIcons

getIcon

public final AbstractIcon getIcon(int IconId)
Specified by:
getIcon in interface AccessIcons

getAllIcons

public final DesktopIconGroup getAllIcons()
Specified by:
getAllIcons in interface AccessIcons

getSelectedIcons

public final DesktopIconGroup getSelectedIcons()
Specified by:
getSelectedIcons in interface AccessIcons

getUnSelectedIcons

public final DesktopIconGroup getUnSelectedIcons()
Specified by:
getUnSelectedIcons in interface AccessIcons

selectAllIcons

public final void selectAllIcons()
Specified by:
selectAllIcons in interface AccessIcons

deselectAllIcons

public final void deselectAllIcons()
Specified by:
deselectAllIcons in interface AccessIcons

invertIconSelection

public final void invertIconSelection()
Specified by:
invertIconSelection in interface AccessIcons

selectIcons

public final void selectIcons(DesktopIconGroup icons)
Specified by:
selectIcons in interface AccessIcons

deselectIcons

public final void deselectIcons(DesktopIconGroup icons)
Specified by:
deselectIcons in interface AccessIcons

selectIcon

public final void selectIcon(int iconId)
Specified by:
selectIcon in interface AccessIcons

deselectIcon

public final void deselectIcon(int iconId)
Specified by:
deselectIcon in interface AccessIcons

dissableIcons

public final void dissableIcons(DesktopIconGroup icons)
Specified by:
dissableIcons in interface AccessIcons

enableIcons

public final void enableIcons(DesktopIconGroup icons)
Specified by:
enableIcons in interface AccessIcons

dissableIcon

public final void dissableIcon(int iconId)
Specified by:
dissableIcon in interface AccessIcons

enableIcon

public final void enableIcon(int iconId)
Specified by:
enableIcon in interface AccessIcons

arrangeIcons

public final void arrangeIcons()
Specified by:
arrangeIcons in interface AccessIcons

setScreenSize

public final void setScreenSize(Dimension screenSize)
Specified by:
setScreenSize in interface Desktop

getScreenSize

public final Dimension getScreenSize()
Specified by:
getScreenSize in interface Desktop

addFrame

public final void addFrame(JInternalFrame newFrame)
Specified by:
addFrame in interface CoGTop

addFrame

public final void addFrame(JInternalFrame newFrame,
                           TransferHandler transferHandler,
                           DropTarget dropTarget,
                           VetoableChangeListener vetoChangeListener,
                           InternalFrameListener internalFrameListener)
Specified by:
addFrame in interface CoGTop

removeFrame

public final void removeFrame(JInternalFrame frame)
Specified by:
removeFrame in interface CoGTop

containsFrame

public final boolean containsFrame(JInternalFrame checkFrame)
Specified by:
containsFrame in interface CoGTop

closeAllFrames

public final void closeAllFrames()

openAllFrames

public final void openAllFrames()

cascadeAllFrames

public final void cascadeAllFrames()

getMenuBar

public final JMenuBar getMenuBar()
Specified by:
getMenuBar in interface CoGTop

setMenuBar

public final void setMenuBar(JMenuBar desktopMenuBar)
Specified by:
setMenuBar in interface CoGTop

addMenuBarMenu

public final boolean addMenuBarMenu(JMenu newMenu)
Specified by:
addMenuBarMenu in interface CoGTop

configureMenuBar

protected void configureMenuBar(JMenuBar desktopMenuBar)

startLogger

public final void startLogger()
Specified by:
startLogger in interface CoGTop

getLogger

protected final Logger getLogger()

getPopup

public final JPopupMenu getPopup()
Specified by:
getPopup in interface AccessPopup

setPopup

public final void setPopup(JPopupMenu desktopPopup)
Specified by:
setPopup in interface AccessPopup

addPopupMenuItem

public final boolean addPopupMenuItem(JMenuItem newMenuItem)
Specified by:
addPopupMenuItem in interface AccessPopup

configurePopup

public void configurePopup(JPopupMenu popup)
Specified by:
configurePopup in interface AccessPopup

showPopupAt

public final void showPopupAt(int xLoc,
                              int yLoc)
Specified by:
showPopupAt in interface AccessPopup

getToolBar

public final DesktopToolBarImpl getToolBar()
Specified by:
getToolBar in interface AccessToolBar

setToolBar

public final void setToolBar(DesktopToolBarImpl toolbar)
Specified by:
setToolBar in interface AccessToolBar

showBGColorChooser

public final void showBGColorChooser()

getDefaultDesktopFrameListener

public final DesktopInternalFrameListener getDefaultDesktopFrameListener()
Specified by:
getDefaultDesktopFrameListener in interface CoGTop

getDefaultDesktopIconListener

public final DesktopIconListener getDefaultDesktopIconListener()
Specified by:
getDefaultDesktopIconListener in interface CoGTop

getDefaultDesktopListener

public final DesktopListener getDefaultDesktopListener()
Specified by:
getDefaultDesktopListener in interface CoGTop

getDefaultDesktopTransferHandler

public final DesktopTransferHandler getDefaultDesktopTransferHandler()
Specified by:
getDefaultDesktopTransferHandler in interface CoGTop

setDefaultDesktopFrameListener

public final void setDefaultDesktopFrameListener(DesktopInternalFrameListener listener)
Specified by:
setDefaultDesktopFrameListener in interface CoGTop

setDefaultDesktopIconListener

public final void setDefaultDesktopIconListener(DesktopIconListener listener)
Specified by:
setDefaultDesktopIconListener in interface CoGTop

setDefaultDesktopListener

public final void setDefaultDesktopListener(DesktopListener listener)
Specified by:
setDefaultDesktopListener in interface CoGTop

setDefaultDesktopTransferHandler

public final void setDefaultDesktopTransferHandler(DesktopTransferHandler handler)
Specified by:
setDefaultDesktopTransferHandler in interface CoGTop

setDefaultListeners

public void setDefaultListeners()
Specified by:
setDefaultListeners in interface CoGTop

captureIconSelection

public final int captureIconSelection()
Specified by:
captureIconSelection in interface AccessIcons

clearCapturedIconSelection

public final void clearCapturedIconSelection()
Specified by:
clearCapturedIconSelection in interface AccessIcons

releaseIconSelection

public final int releaseIconSelection()
Specified by:
releaseIconSelection in interface AccessIcons

lastUpdateTime

public final Date lastUpdateTime()
Description copied from interface: GridFace
Records the last time the GridFace was updated. The default value is the time of creation.

Specified by:
lastUpdateTime in interface GridFace
Returns:
Date, the last time when the GridFace was updated.

register

public void register(GridFace connection)
Description copied from interface: GridFace
Registers another GridFace to this GridFace. This will prevent that gridfaces are unnecesarily killed.

Specified by:
register in interface GridFace
Parameters:
connection - a GridFace value

setLabel

public final void setLabel(String label)
Description copied from interface: GridFace
sets a label for a GridFace. Label are useful to create abbreviations for a GridFace for a graphical display. Labels are ofthe used as a title if applicable. Defaukt is null.

Specified by:
setLabel in interface GridFace
Parameters:
label - a String that returns the assigned label.

update

public void update()
Description copied from interface: GridFace
updates the displaed gridface.

Specified by:
update in interface GridFace

setWallpaper

public final void setWallpaper(ImageIcon backIcon)

setWallpaper

public final void setWallpaper(URI activeDesktop)

savePreferences

public void savePreferences(Preferences startNode)
Specified by:
savePreferences in interface AccessPreferences

loadPreferences

public void loadPreferences(Preferences startNode)
Specified by:
loadPreferences in interface AccessPreferences

getAvailableIconTypes

public Vector getAvailableIconTypes()
Specified by:
getAvailableIconTypes in interface AccessIcons

getAddNewIconMenu

public JMenu getAddNewIconMenu()
Specified by:
getAddNewIconMenu in interface AccessIcons

getCanImportActionProxy

public final CanImportActionProxy getCanImportActionProxy()
Specified by:
getCanImportActionProxy in interface AccessActionProxy
Returns:
Returns the canImportActionProxy.

getImportDataActionProxy

public final ImportDataActionProxy getImportDataActionProxy()
Specified by:
getImportDataActionProxy in interface AccessActionProxy
Returns:
Returns the importDataActionProxy.

getMouseActionProxy

public final MouseActionProxy getMouseActionProxy()
Specified by:
getMouseActionProxy in interface AccessActionProxy
Returns:
Returns the mouseActionProxy.

canImportToComponent

public final boolean canImportToComponent(JComponent dropComponent,
                                          DesktopIconGroup iconGroup)
Specified by:
canImportToComponent in interface CanImportActionProxy

importDataToComponent

public final boolean importDataToComponent(JComponent dropComponent,
                                           Transferable t,
                                           JComponent dragComponent,
                                           Point dragPoint,
                                           Point dropPoint)
Specified by:
importDataToComponent in interface ImportDataActionProxy

close

public boolean close()
Specified by:
close in interface AccessClose