|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JLayeredPane
|
+--javax.swing.JDesktopPane
|
+--arlut.csd.ganymede.client.windowPanel
windowPanel is the top level panel containing and controlling the
internal framePanel and
gResultTable windows
that are displayed in reaction to actions taken by the user.
windowPanel is responsible for adding these windows, and maintaining
the window list in the menubar.
windowPanel is also responsible for displaying and removing the internal 'guy working' status window that lets the user know the client hasn't frozen up when it is processing a query request.
| Field Summary | |
(package private) javax.swing.border.LineBorder |
blackLineB
|
(package private) javax.swing.ImageIcon |
closeIcon
|
(package private) javax.swing.ImageIcon |
closePressedIcon
|
(package private) boolean |
debug
|
(package private) boolean |
debugProperty
|
(package private) javax.swing.border.EmptyBorder |
emptyBorder10
|
(package private) javax.swing.border.EmptyBorder |
emptyBorder15
|
(package private) javax.swing.border.EmptyBorder |
emptyBorder3
|
(package private) javax.swing.border.EmptyBorder |
emptyBorder5
|
(package private) javax.swing.border.CompoundBorder |
eWrapperBorder
|
(package private) javax.swing.border.CompoundBorder |
eWrapperBorderInvalid
|
(package private) arlut.csd.ganymede.client.gclient |
gc
Reference to the client's main class, used for some utility functions. |
(package private) javax.swing.border.CompoundBorder |
lineEmptyBorder
|
(package private) javax.swing.ImageIcon |
openIcon
|
(package private) javax.swing.ImageIcon |
openPressedIcon
|
(package private) javax.swing.JMenuItem |
removeAllMI
|
(package private) javax.swing.ImageIcon |
removeImageIcon
|
(package private) javax.swing.JMenuItem |
toggleToolBarMI
|
(package private) int |
topLayer
Constant, the front-most layer in which newly created windows are placed. |
(package private) java.awt.Image |
waitImage
This is used as the wait image in other classes. |
(package private) java.util.Hashtable |
waitWindowHash
Used to keep track of multiple 'guy working' internal wait windows if we have multiple threads waiting for query results from the server. |
(package private) java.util.Hashtable |
windowList
Hashtable mapping window titles to JInternalFrames. |
(package private) javax.swing.JMenu |
windowMenu
|
| 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.Container |
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
windowPanel(arlut.csd.ganymede.client.gclient gc,
javax.swing.JMenu windowMenu)
windowPanel constructor |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
addTableWindow(arlut.csd.ganymede.Session session,
arlut.csd.ganymede.Query query,
arlut.csd.ganymede.DumpResult results,
java.lang.String title)
Create and add an internal query result table window. |
void |
addWaitWindow(java.lang.Runnable key)
Pops up an internal 'wait..' window, showing an animated icon of a guy working. |
void |
addWindow(arlut.csd.ganymede.Invid invid,
arlut.csd.ganymede.db_object object,
boolean editable,
java.lang.String objectType)
Create a new editable or view-only window in this windowPanel. |
void |
addWindow(arlut.csd.ganymede.Invid invid,
arlut.csd.ganymede.db_object object,
boolean editable,
java.lang.String objectType,
boolean isNewlyCreated)
Create a new editable or view-only window in this windowPanel. |
void |
closeAll(boolean askNoQuestions)
Closes all internal frames, editable or no. |
void |
closeEditables()
Closes all windows that are open for editing. |
void |
closeWindow(java.lang.String title)
This method attempts to close an internal window in the client. |
java.util.Vector |
getEditables()
Returns a vector of framePanels of all the editable windows. |
arlut.csd.ganymede.client.gclient |
getgclient()
Get the parent gclient |
java.awt.Image |
getWaitImage()
Returns an image used as a generic "wait" image. |
java.util.Enumeration |
getWindows()
Returns an Enumeration of all the internal windows currently being shown in the client. |
void |
internalFrameActivated(javax.swing.event.InternalFrameEvent e)
|
void |
internalFrameClosed(javax.swing.event.InternalFrameEvent event)
|
void |
internalFrameClosing(javax.swing.event.InternalFrameEvent e)
|
void |
internalFrameDeactivated(javax.swing.event.InternalFrameEvent e)
|
void |
internalFrameDeiconified(javax.swing.event.InternalFrameEvent e)
|
void |
internalFrameIconified(javax.swing.event.InternalFrameEvent e)
|
void |
internalFrameOpened(javax.swing.event.InternalFrameEvent e)
|
boolean |
isOpenForEdit(arlut.csd.ganymede.Invid invid)
Returns true if an edit window is open for this object. |
void |
placeWindow(javax.swing.JInternalFrame window)
This method is responsible for setting the bounds for a new window so that windows are staggered somewhat. |
void |
refreshTableWindows()
|
void |
removeWaitWindow(java.lang.Runnable key)
Pops down the internal 'wait..' window. |
void |
setSelectedWindow(javax.swing.JInternalFrame window)
|
void |
setStatus(java.lang.String s)
Convenience method, calls gclient.setStatus
to set some text in the client's status bar, with a time-to-live of the
default 5 seconds. |
void |
showWindow(java.lang.String title)
|
javax.swing.JMenu |
updateMenu()
|
| 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 |
| Field Detail |
boolean debug
final boolean debugProperty
arlut.csd.ganymede.client.gclient gc
final int topLayer
java.util.Hashtable waitWindowHash
Used to keep track of multiple 'guy working' internal wait windows if we have multiple threads waiting for query results from the server.
This hashtable maps Runnable objects (objects downloading query results in their own threads) to JInternalFrame's.
java.util.Hashtable windowList
Hashtable mapping window titles to JInternalFrames. Used to make sure that we have unique titles for all of our internal windows, so that we can properly maintain a Windows menu to let the user select an active window from the menu bar.
java.awt.Image waitImage
javax.swing.JMenu windowMenu
javax.swing.ImageIcon openIcon
javax.swing.ImageIcon closeIcon
javax.swing.ImageIcon openPressedIcon
javax.swing.ImageIcon closePressedIcon
javax.swing.ImageIcon removeImageIcon
javax.swing.border.LineBorder blackLineB
javax.swing.border.EmptyBorder emptyBorder3
javax.swing.border.EmptyBorder emptyBorder5
javax.swing.border.EmptyBorder emptyBorder10
javax.swing.border.EmptyBorder emptyBorder15
javax.swing.border.CompoundBorder eWrapperBorder
javax.swing.border.CompoundBorder eWrapperBorderInvalid
javax.swing.border.CompoundBorder lineEmptyBorder
javax.swing.JMenuItem removeAllMI
javax.swing.JMenuItem toggleToolBarMI
| Constructor Detail |
public windowPanel(arlut.csd.ganymede.client.gclient gc,
javax.swing.JMenu windowMenu)
| Method Detail |
public arlut.csd.ganymede.client.gclient getgclient()
public java.awt.Image getWaitImage()
public void addWindow(arlut.csd.ganymede.Invid invid,
arlut.csd.ganymede.db_object object,
boolean editable,
java.lang.String objectType)
object - an individual object from the server to show
in this windoweditable - if true, the object will be presented as editableobjectType - Used for the title of the new window
public void addWindow(arlut.csd.ganymede.Invid invid,
arlut.csd.ganymede.db_object object,
boolean editable,
java.lang.String objectType,
boolean isNewlyCreated)
object - an individual object from the server to show
in this windoweditable - if true, the object will be presented as editableobjectType - Used for the title of the new windowisNewlyCreated - if true, this window will be a 'create object' window.public void placeWindow(javax.swing.JInternalFrame window)
This method is responsible for setting the bounds for a new window so that windows are staggered somewhat.
public void setSelectedWindow(javax.swing.JInternalFrame window)
public boolean isOpenForEdit(arlut.csd.ganymede.Invid invid)
public final void setStatus(java.lang.String s)
Convenience method, calls
gclient.setStatus
to set some text in the client's status bar, with a time-to-live of the
default 5 seconds.
public void addTableWindow(arlut.csd.ganymede.Session session,
arlut.csd.ganymede.Query query,
arlut.csd.ganymede.DumpResult results,
java.lang.String title)
Create and add an internal query result table window.
session - Reference to the server, used to refresh the query on commandquery - The Query whose results are being shown in this window, used to
refresh the query on command.results - The results of the query that is being shown in this window.title - The title to be placed on the window when created.public void addWaitWindow(java.lang.Runnable key)
Pops up an internal 'wait..' window, showing an animated icon of a guy working. Used to show the client is still working while a query is being processed.
public void removeWaitWindow(java.lang.Runnable key)
Pops down the internal 'wait..' window.
public java.util.Enumeration getWindows()
Returns an Enumeration of all the internal windows currently being shown in the client.
public java.util.Vector getEditables()
public void closeEditables()
Closes all windows that are open for editing.
This should be called by the parent when the transaction is canceled, to get rid of windows that might confuse the user.
public void closeAll(boolean askNoQuestions)
Closes all internal frames, editable or no.
askNoQuestions - if true, closeAll() will inhibit the normal
dialogs brought up when create/editable windows are closed.public void closeWindow(java.lang.String title)
public javax.swing.JMenu updateMenu()
public void showWindow(java.lang.String title)
public void refreshTableWindows()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void internalFrameClosed(javax.swing.event.InternalFrameEvent event)
internalFrameClosed in interface javax.swing.event.InternalFrameListenerpublic void internalFrameDeiconified(javax.swing.event.InternalFrameEvent e)
internalFrameDeiconified in interface javax.swing.event.InternalFrameListenerpublic void internalFrameClosing(javax.swing.event.InternalFrameEvent e)
internalFrameClosing in interface javax.swing.event.InternalFrameListenerpublic void internalFrameActivated(javax.swing.event.InternalFrameEvent e)
internalFrameActivated in interface javax.swing.event.InternalFrameListenerpublic void internalFrameDeactivated(javax.swing.event.InternalFrameEvent e)
internalFrameDeactivated in interface javax.swing.event.InternalFrameListenerpublic void internalFrameOpened(javax.swing.event.InternalFrameEvent e)
internalFrameOpened in interface javax.swing.event.InternalFrameListenerpublic void internalFrameIconified(javax.swing.event.InternalFrameEvent e)
internalFrameIconified in interface javax.swing.event.InternalFrameListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||