|
||||||||||
| 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
net.sf.taverna.zaria.ZPane
net.sf.taverna.zaria.ZBasePane
public abstract class ZBasePane
A base ZPane implementation, this is always the root of the ZTreeNode heirarchy (or should be for sane uses). We need an additional layer here as the swap component method relies on having a parent, without the extra 'invisible' parent here we couldn't swap out the user visible top level UI component.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, 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 | |
|---|---|
ZBasePane()
Construct a new ZBasePane, inserting a default ZBlankComponent as the solitary child |
|
| Method Summary | |
|---|---|
void |
configure(org.jdom.Element e)
Automatically intializes the repository with any named components that aren't already there. |
java.util.List<javax.swing.Action> |
getActions()
No actions, the ZBasePane is effectively invisible |
abstract javax.swing.JComponent |
getComponent(java.lang.Class theClass)
Given a Class object from an SPI construct a JComponent. |
org.jdom.Element |
getElement()
Build current state of this node in the form of a JDOM element |
java.lang.String[] |
getKnownSPINames()
Get known SPIs to be used with the ZRavenComponent |
abstract javax.swing.JMenuItem |
getMenuItem(java.lang.Class theClass)
Given a Class object from an SPI produce an appropriate JMenuItem. |
java.util.List<ZRavenComponent> |
getRavenComponents()
Enumerate all visible ZRavenComponent panes within the current layout |
SpiRegistry |
getRegistryFor(java.lang.String spiName)
Create or return a cached reference to an SpiRegistry for the specified SPI name |
Repository |
getRepository()
Get the Raven repository associated with this ZBasePane |
javax.swing.Action |
getToggleEditAction()
Get an Action object which can toggle the editable state of the ZBasePane |
java.util.List<ZTreeNode> |
getZChildren()
Single element list consiting only of the child item |
void |
lockFrame()
Lock the parent frame, showing an infinite progress display message |
void |
setEditable(boolean b)
Call setEditable on the single child |
void |
setKnownSPINames(java.lang.String[] spis)
Set the array of known SPIs |
void |
setRepository(Repository r)
Set the Raven Repository object used to discover SPI implementations for the ZRavenComponent instances within the layout |
void |
swap(ZTreeNode oldComponent,
ZTreeNode newComponent)
Only a single child so always swap it out and replace with the new component |
void |
unlockFrame()
Unlock the parent frame |
| Methods inherited from class net.sf.taverna.zaria.ZPane |
|---|
getFrame, getRoot, getToolbarComponents, getZChildCount, getZParent, isEditable, isZLeaf, isZRoot |
| Methods inherited from class javax.swing.JComponent |
|---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, 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 |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.sf.taverna.zaria.ZTreeNode |
|---|
discard |
| Constructor Detail |
|---|
public ZBasePane()
| Method Detail |
|---|
public void configure(org.jdom.Element e)
public java.util.List<javax.swing.Action> getActions()
public abstract javax.swing.JComponent getComponent(java.lang.Class theClass)
public org.jdom.Element getElement()
ZTreeNode
public java.lang.String[] getKnownSPINames()
public abstract javax.swing.JMenuItem getMenuItem(java.lang.Class theClass)
public java.util.List<ZRavenComponent> getRavenComponents()
public SpiRegistry getRegistryFor(java.lang.String spiName)
public Repository getRepository()
public javax.swing.Action getToggleEditAction()
public java.util.List<ZTreeNode> getZChildren()
public void lockFrame()
public void setEditable(boolean b)
setEditable in interface ZTreeNodesetEditable in class ZPanepublic void setKnownSPINames(java.lang.String[] spis)
public void setRepository(Repository r)
r -
public void swap(ZTreeNode oldComponent,
ZTreeNode newComponent)
oldComponent - the ZTreeNode to remove as a childnewComponent - the ZTreeNode to insert in its placepublic void unlockFrame()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||