|
|||||||||||
| 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
com.tensegrity.gui.swing.document.WindowMDIComponent
Tabbed-Pane MDI implemention. This class implements a multiple document interface in a tabbed-pane style.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JDesktopPane |
javax.swing.JDesktopPane.AccessibleJDesktopPane |
| Nested classes inherited from class javax.swing.JLayeredPane |
javax.swing.JLayeredPane.AccessibleJLayeredPane |
| Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
UIItemEvaluationList |
uiItemEvList
ItemList used to perform the language switch |
| 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 java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
WindowMDIComponent(java.util.List initialdocuments,
MenuTool windowmenu,
UIManager uimanager,
DocumentDropContext opener)
Construct a windowed-mdi pane with the given list of initial documents. |
|
| Method Summary | |
void |
addDocument(Document document)
Adds the given Document to the container. |
void |
addDocumentListener(DocumentListener listener)
Adds a document listener. |
void |
addObserver(Observer o)
Adds an observer to the internally managed list of observers of this observable. |
void |
applyEvList()
Tells the component to apply its UIItemEvaluationList. |
void |
cascadeFrames()
Cascades all graphdocument frames in the internal window. |
void |
clearChanged()
Sets the state to unchanged. |
void |
deleteObserver(Observer o)
Deletes an observer from the internally managed list of observers of this observable. |
void |
deleteObservers()
Deletes all of the observers registered with this observable. |
void |
destroyPopupMenu()
|
static void |
findSlidePanelsInComponentTree(java.awt.Component component,
java.util.ArrayList slidepanels)
|
void |
fireDocumentDataChanged(Document document)
Fires the document data changed event from the outside world. |
Document |
getActiveDocument()
Returns the active document. |
int |
getDocumentCount()
Returns the number of currently open documents. |
DocumentListener |
getDocumentListener()
|
java.util.List |
getDocuments()
Returns a List containing all active documents. |
javax.swing.JComponent |
getJComponent()
Returns the JComponent subclass that is the MDI container. |
Observable |
getObservable()
Returns the Observable instance. |
java.util.Collection |
getObservers()
Returns a collection of the observers currently registered with this observable. |
void |
indicateModifiedDocument(Document document)
The mdi component shall indicate visually that the given document was modified. |
void |
indicateUnmodifiedDocument(Document document)
The mdi component shall indicate visually that the given document was not modified. |
void |
installEvList()
Tells the component to setup its internal state. |
void |
notifyObservers()
Performs a notify on all registered observers, if the state has changed since the last notification. |
void |
notifyObservers(java.lang.Object arg)
Performs a notify on all registered observers, if the state has changed since the last notification. |
void |
paintComponent(java.awt.Graphics g)
|
void |
postValidate()
Invoked by the framework after the MDIComponent was shown on the screen. |
void |
removeActiveDocument()
Closes the active document. |
void |
removeDocument(Document document)
Closes the given document and removes it from the mdi container. |
void |
removeDocument(Document document,
boolean destroy)
|
void |
removeDocumentListener(DocumentListener listener)
Removes a document listener. |
void |
renameDocument(Document document,
java.lang.String name)
Renames a document. |
void |
setActiveDocument(Document document)
Sets the active document. |
void |
setChanged()
Sets the state to changed. |
void |
setDocumentListener(DocumentListener documentlistener)
Sets a single document listener. |
void |
setObservable(Observable observable)
Sets an observable. |
void |
setSelectedFrame(javax.swing.JInternalFrame next)
|
void |
setWindowMenu(MenuTool tool)
Sets the MenuTool reference to use. |
void |
tileFrames()
This method tiles the graph frames in the desktoppane. |
void |
updateUI()
|
| Methods inherited from class javax.swing.JDesktopPane |
getAccessibleContext, getAllFrames, getAllFramesInLayer, getDesktopManager, getDragMode, getSelectedFrame, getUI, getUIClassID, isOpaque, paramString, setDesktopManager, setDragMode, setUI |
| 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, 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 |
public UIItemEvaluationList uiItemEvList
| Constructor Detail |
public WindowMDIComponent(java.util.List initialdocuments,
MenuTool windowmenu,
UIManager uimanager,
DocumentDropContext opener)
initialdocuments - a list of initial documents.windowmenu - the MenuTool reference to use.uimanager - the UIManager reference to use.opener - the DocumentDropContext reference to use.| Method Detail |
public void paintComponent(java.awt.Graphics g)
public void destroyPopupMenu()
public void setDocumentListener(DocumentListener documentlistener)
MDIComponent
setDocumentListener in interface MDIComponentdocumentlistener - the documentlistener to set.public DocumentListener getDocumentListener()
public void addDocumentListener(DocumentListener listener)
MDIComponent
addDocumentListener in interface MDIComponentlistener - the documentlistener to add.public void removeDocumentListener(DocumentListener listener)
MDIComponent
removeDocumentListener in interface MDIComponentlistener - the documentlistener to remove.public javax.swing.JComponent getJComponent()
SwingMDIComponent
getJComponent in interface SwingMDIComponentpublic void addDocument(Document document)
MDIComponentDocument to the container.
addDocument in interface MDIComponentdocument - the document to add to the container.public void removeDocument(Document document)
MDIComponent
removeDocument in interface MDIComponentdocument - the document to close and remove.
public void removeDocument(Document document,
boolean destroy)
public void setActiveDocument(Document document)
MDIComponent
setActiveDocument in interface MDIComponentdocument - the document to activate.public void setSelectedFrame(javax.swing.JInternalFrame next)
public void indicateModifiedDocument(Document document)
MDIComponent
indicateModifiedDocument in interface MDIComponentdocument - the modified document.public void indicateUnmodifiedDocument(Document document)
MDIComponent
indicateUnmodifiedDocument in interface MDIComponentdocument - the unmodified document.public Document getActiveDocument()
MDIComponent
getActiveDocument in interface MDIComponentpublic void removeActiveDocument()
MDIComponent
removeActiveDocument in interface MDIComponent
public void renameDocument(Document document,
java.lang.String name)
MDIComponent
renameDocument in interface MDIComponentdocument - the document to rename.name - the new name for the document.public void postValidate()
MDIComponent
postValidate in interface MDIComponent
public static final void findSlidePanelsInComponentTree(java.awt.Component component,
java.util.ArrayList slidepanels)
public java.util.List getDocuments()
MDIComponentList containing all active documents.
getDocuments in interface MDIComponentpublic int getDocumentCount()
MDIComponent
getDocumentCount in interface MDIComponentpublic Observable getObservable()
MDIComponent
getObservable in interface MDIComponentpublic void addObserver(Observer o)
Observable
addObserver in interface Observableo - the observer to add to the internal list.public void deleteObserver(Observer o)
Observable
deleteObserver in interface Observableo - the observer to delete from the internal list.public void notifyObservers()
Observable
notifyObservers in interface ObservableObservable.setChanged()public void notifyObservers(java.lang.Object arg)
Observable
notifyObservers in interface Observablearg - additional argument to pass to the observers.Observable.setChanged()public void setObservable(Observable observable)
MDIComponent
setObservable in interface MDIComponentobservable - the observable to set for the mdi component.public void setChanged()
Observable
setChanged in interface Observablepublic void clearChanged()
Observable
clearChanged in interface Observablepublic java.util.Collection getObservers()
Observable
getObservers in interface Observablepublic void deleteObservers()
Observable
deleteObservers in interface Observablepublic void applyEvList()
EvaluableUIItemEvaluationList.
applyEvList in interface Evaluablepublic void installEvList()
Evaluable
installEvList in interface Evaluablepublic void fireDocumentDataChanged(Document document)
MDIComponent
fireDocumentDataChanged in interface MDIComponentdocument - the document whose data has changed.public void setWindowMenu(MenuTool tool)
MenuTool reference to use.
tool - the MenuTool reference to set.public void cascadeFrames()
public void tileFrames()
public void updateUI()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||