|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLayeredPane
javax.swing.JDesktopPane
org.globus.cog.gridface.impl.desktop.AbstractDesktop
| 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 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 |
public static org.apache.log4j.Logger logger
protected AbstractDesktopContainer desktopFrame
protected boolean showWallpaper
protected int id
protected static int id_counter
protected DesktopIconGroup myDesktopIcons
protected DesktopIconGroup preDragIconSelection
protected JMenuBar menuBar
protected DesktopToolBarImpl toolBar
protected JPopupMenu popupMenu
protected static Point popupLocation
protected Dimension screenSize
protected int xAxis_init
protected int yAxis_init
protected static DesktopListener defaultDesktopListener
protected static DesktopIconListener defaultDesktopIconListener
protected static DesktopInternalFrameListener defaultDesktopFrameListener
protected static DesktopTransferHandler defaultDesktopTransferHandler
protected int defaultLogLevel
public static final String sLOG_CoG
public static String sDefaultLoggerName
public static Logger desktopLogger
protected CoGLogFrame cogLogFrame
protected Date lastUpdateTime
protected String stringLabel
protected Vector registeredGridFaces
| Constructor Detail |
public AbstractDesktop(AbstractDesktopContainer desktopFrame,
Dimension screenSize)
| Method Detail |
public final AbstractDesktopContainer getDesktopFrame()
getDesktopFrame in interface CoGToppublic final void setDesktopFrame(AbstractDesktopContainer desktopFrm)
setDesktopFrame in interface CoGToppublic final int getId()
getId in interface CoGToppublic final void debug(String message)
Logger
debug in interface Loggerpublic final void error(String message)
Logger
error in interface Loggerpublic final void fatal(String message)
Logger
fatal in interface Loggerpublic final int getLevel()
getLevel in interface Loggerpublic final void info(String message)
Logger
info in interface Loggerpublic final void setLevel(int logLevel)
Logger
setLevel in interface Loggerpublic final void warn(String message)
Logger
warn in interface Loggerpublic void showAboutFrame(Component parent)
Logger
showAboutFrame in interface Loggerpublic final void clearLog()
clearLog in interface Logger
public final void saveLogToFile(String fileName)
throws IOException
saveLogToFile in interface LoggerIOExceptionpublic void resetDefaultIconLocation()
resetDefaultIconLocation in interface CoGTop
public final void addIcon()
throws Exception
addIcon in interface AccessIconsException
public final void addIcon(String text)
throws Exception
addIcon in interface AccessIconsException
public final void addIcon(String iconType,
String iconImage)
throws Exception
addIcon in interface AccessIconsException
public final void addIcon(String text,
String iconType,
String iconImage)
throws Exception
addIcon in interface AccessIconsException
public final void addIcon(String text,
int xLoc,
int yLoc)
throws Exception
addIcon in interface AccessIconsException
public final void addIcon(String iconType,
String iconImage,
int xLoc,
int yLoc)
throws Exception
addIcon in interface AccessIconsException
public final void addIcon(String text,
String iconType,
String iconImage,
int xLoc,
int yLoc)
throws Exception
addIcon in interface AccessIconsException
public final void addIcon(String applicationClass,
ObjectPair arguments)
throws Exception
addIcon in interface AccessIconsException
public final void addIcon(String applicationClass,
ObjectPair arguments,
String text)
throws Exception
addIcon in interface AccessIconsException
public final void addIcon(String applicationClass,
ObjectPair arguments,
String text,
String iconType,
String iconImage)
throws Exception
addIcon in interface AccessIconsException
public final void addIcon(String applicationClass,
ObjectPair arguments,
String text,
String iconType,
String iconImage,
int xLoc,
int yLoc)
throws Exception
addIcon in interface AccessIconsExceptionpublic final void addIcon(AbstractIcon newIcon)
addIcon in interface AccessIcons
public final void addIcon(AbstractIcon newIcon,
int xLoc,
int yLoc,
MouseListener mouseListener,
MouseMotionListener mouseMotionListener,
TransferHandler transferHandler,
DropTarget dropTarget)
addIcon in interface AccessIconspublic final void placeIcon(AbstractIcon oldIcon)
placeIcon in interface AccessIconspublic final void removeIcon(AbstractIcon icon)
removeIcon in interface AccessIconspublic final void removeIcons(DesktopIconGroup icons)
removeIcons in interface AccessIconspublic final void removeAllIcons()
removeAllIcons in interface AccessIconspublic final AbstractIcon getIcon(int IconId)
getIcon in interface AccessIconspublic final DesktopIconGroup getAllIcons()
getAllIcons in interface AccessIconspublic final DesktopIconGroup getSelectedIcons()
getSelectedIcons in interface AccessIconspublic final DesktopIconGroup getUnSelectedIcons()
getUnSelectedIcons in interface AccessIconspublic final void selectAllIcons()
selectAllIcons in interface AccessIconspublic final void deselectAllIcons()
deselectAllIcons in interface AccessIconspublic final void invertIconSelection()
invertIconSelection in interface AccessIconspublic final void selectIcons(DesktopIconGroup icons)
selectIcons in interface AccessIconspublic final void deselectIcons(DesktopIconGroup icons)
deselectIcons in interface AccessIconspublic final void selectIcon(int iconId)
selectIcon in interface AccessIconspublic final void deselectIcon(int iconId)
deselectIcon in interface AccessIconspublic final void dissableIcons(DesktopIconGroup icons)
dissableIcons in interface AccessIconspublic final void enableIcons(DesktopIconGroup icons)
enableIcons in interface AccessIconspublic final void dissableIcon(int iconId)
dissableIcon in interface AccessIconspublic final void enableIcon(int iconId)
enableIcon in interface AccessIconspublic final void arrangeIcons()
arrangeIcons in interface AccessIconspublic final void setScreenSize(Dimension screenSize)
setScreenSize in interface Desktoppublic final Dimension getScreenSize()
getScreenSize in interface Desktoppublic final void addFrame(JInternalFrame newFrame)
addFrame in interface CoGTop
public final void addFrame(JInternalFrame newFrame,
TransferHandler transferHandler,
DropTarget dropTarget,
VetoableChangeListener vetoChangeListener,
InternalFrameListener internalFrameListener)
addFrame in interface CoGToppublic final void removeFrame(JInternalFrame frame)
removeFrame in interface CoGToppublic final boolean containsFrame(JInternalFrame checkFrame)
containsFrame in interface CoGToppublic final void closeAllFrames()
public final void openAllFrames()
public final void cascadeAllFrames()
public final JMenuBar getMenuBar()
getMenuBar in interface CoGToppublic final void setMenuBar(JMenuBar desktopMenuBar)
setMenuBar in interface CoGToppublic final boolean addMenuBarMenu(JMenu newMenu)
addMenuBarMenu in interface CoGTopprotected void configureMenuBar(JMenuBar desktopMenuBar)
public final void startLogger()
startLogger in interface CoGTopprotected final Logger getLogger()
public final JPopupMenu getPopup()
getPopup in interface AccessPopuppublic final void setPopup(JPopupMenu desktopPopup)
setPopup in interface AccessPopuppublic final boolean addPopupMenuItem(JMenuItem newMenuItem)
addPopupMenuItem in interface AccessPopuppublic void configurePopup(JPopupMenu popup)
configurePopup in interface AccessPopup
public final void showPopupAt(int xLoc,
int yLoc)
showPopupAt in interface AccessPopuppublic final DesktopToolBarImpl getToolBar()
getToolBar in interface AccessToolBarpublic final void setToolBar(DesktopToolBarImpl toolbar)
setToolBar in interface AccessToolBarpublic final void showBGColorChooser()
public final DesktopInternalFrameListener getDefaultDesktopFrameListener()
getDefaultDesktopFrameListener in interface CoGToppublic final DesktopIconListener getDefaultDesktopIconListener()
getDefaultDesktopIconListener in interface CoGToppublic final DesktopListener getDefaultDesktopListener()
getDefaultDesktopListener in interface CoGToppublic final DesktopTransferHandler getDefaultDesktopTransferHandler()
getDefaultDesktopTransferHandler in interface CoGToppublic final void setDefaultDesktopFrameListener(DesktopInternalFrameListener listener)
setDefaultDesktopFrameListener in interface CoGToppublic final void setDefaultDesktopIconListener(DesktopIconListener listener)
setDefaultDesktopIconListener in interface CoGToppublic final void setDefaultDesktopListener(DesktopListener listener)
setDefaultDesktopListener in interface CoGToppublic final void setDefaultDesktopTransferHandler(DesktopTransferHandler handler)
setDefaultDesktopTransferHandler in interface CoGToppublic void setDefaultListeners()
setDefaultListeners in interface CoGToppublic final int captureIconSelection()
captureIconSelection in interface AccessIconspublic final void clearCapturedIconSelection()
clearCapturedIconSelection in interface AccessIconspublic final int releaseIconSelection()
releaseIconSelection in interface AccessIconspublic final Date lastUpdateTime()
GridFace
lastUpdateTime in interface GridFaceDate, the last time when the GridFace was
updated.public void register(GridFace connection)
GridFace
register in interface GridFaceconnection - a GridFace valuepublic final void setLabel(String label)
GridFace
setLabel in interface GridFacelabel - a String that returns the assigned label.public void update()
GridFace
update in interface GridFacepublic final void setWallpaper(ImageIcon backIcon)
public final void setWallpaper(URI activeDesktop)
public void savePreferences(Preferences startNode)
savePreferences in interface AccessPreferencespublic void loadPreferences(Preferences startNode)
loadPreferences in interface AccessPreferencespublic Vector getAvailableIconTypes()
getAvailableIconTypes in interface AccessIconspublic JMenu getAddNewIconMenu()
getAddNewIconMenu in interface AccessIconspublic final CanImportActionProxy getCanImportActionProxy()
getCanImportActionProxy in interface AccessActionProxypublic final ImportDataActionProxy getImportDataActionProxy()
getImportDataActionProxy in interface AccessActionProxypublic final MouseActionProxy getMouseActionProxy()
getMouseActionProxy in interface AccessActionProxy
public final boolean canImportToComponent(JComponent dropComponent,
DesktopIconGroup iconGroup)
canImportToComponent in interface CanImportActionProxy
public final boolean importDataToComponent(JComponent dropComponent,
Transferable t,
JComponent dragComponent,
Point dragPoint,
Point dropPoint)
importDataToComponent in interface ImportDataActionProxypublic boolean close()
close in interface AccessClose
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||