|
|||||||||||
| 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.JPanel
com.tensegrity.skeleton.container.AbstractSwingToolContainer
com.tensegrity.skeleton.container.swing.SwingAttributeTreeContainer
The swing based container for the attributeTable.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
| 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 |
| Fields inherited from class com.tensegrity.skeleton.container.AbstractSwingToolContainer |
defaultBorder, isSelected, selectedBorder |
| 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 com.tensegrity.gui.component.AttributeEditor |
hiddenPrefix, SORT_ASCENDING, SORT_DESCENDING, SORT_NONE |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
SwingAttributeTreeContainer(ApplicationFrame applicationFrame)
Creates the SwingAttributeTableContainer for the given
ApplicationFrame and the hardwired helpID "attributetree". |
|
SwingAttributeTreeContainer(ApplicationFrame applicationFrame,
JPopupMenuSource popupMenuSource)
Creates the SwingAttributeTableContainer for the given
ApplicationFrame and the hardwired helpID "attributetree". |
|
SwingAttributeTreeContainer(ApplicationFrame applicationFrame,
java.lang.String keyTitle)
Creates the SwingAttributeTableContainer for the given
ApplicationFrame and the hardwired helpID "attributetree". |
|
SwingAttributeTreeContainer(ApplicationFrame applicationFrame,
java.lang.String keyTitle,
JPopupMenuSource popupMenuSource)
Creates the SwingAttributeTableContainer for the given
ApplicationFrame and the hardwired helpID "attributetree". |
|
SwingAttributeTreeContainer(ApplicationFrame applicationFrame,
java.lang.String keyTitle,
JPopupMenuSource popupMenuSource,
java.lang.String attributeEditorPropertiesFilename)
Creates the SwingAttributeTableContainer for the given
ApplicationFrame and the hardwired helpID "attributetree". |
|
SwingAttributeTreeContainer(ApplicationFrame applicationFrame,
java.lang.String keyTitle,
java.lang.String attributeEditorPropertiesFilename)
Creates the SwingAttributeTableContainer for the given
ApplicationFrame and the hardwired helpID "attributetree". |
|
| Method Summary | |
void |
cancelEditing()
Cancels editing and discards changes. |
AttributableOnSet |
getAttributableOnSet()
Returns the current AttributableOnSet. |
AttributeEditor |
getAttributeEditor()
Each AttributeTableContainer should be based on a AttributeEditor
implementation. |
AttributeTree |
getAttributeTree()
Each AttributeTreeContainer should be based on a AttributeTree
implementation. |
AttributeSet |
getCurrentAttributeSet()
Returns the currently active AttributeSet. |
AttributeEditorProperties |
getEditorProperties()
This method returns an instance of the currently used AttributeTableProperties instance. |
java.lang.String |
getName()
A container has a name. |
void |
hideAttribute(java.lang.String name)
Hides the attribute identified by the given name. |
void |
init()
Subclasses implement this method to start their initialization code. |
void |
init(java.lang.String titleResourceKey,
JPopupMenuSource popupMenuSource)
Initializes this container by creating a new AttributeTree (based on the SwingAttributeTree implementation. |
void |
init(java.lang.String titleResourceKey,
JPopupMenuSource popupMenuSource,
java.lang.String attributeEditorPropertiesFilename)
Initializes this container by creating a new AttributeTree (based on the SwingAttributeTree implementation. |
boolean |
isTree()
Returns true, if this editor is displaying an AttributeTree and will
call get/setAttributesTree() instead of get/setAttributes(). |
void |
propertiesChanged()
Called from the AttributeEditorProperties when a setting
changed. |
void |
rehash()
Reloads the AttributeSet from the
AttributableOnSet and refreshes the view. |
void |
setAttributableOnSet(AttributableOnSet attributable)
Sets the AttributableOnSet that should be shown in the
editor. |
AttributeEditorProperties |
setEditorProperties(AttributeEditorProperties editorProperties)
This method sets an instance of the AttributeTableProperties to be used. |
void |
showAttribute(java.lang.String name)
Toggles the hidden flag for an attribute identified by the given name. |
boolean |
stopEditing()
Stops the editing of an Attribute and saves the current value. |
| Methods inherited from class com.tensegrity.skeleton.container.AbstractSwingToolContainer |
add, add, getApplicationFrame, getContainerAction, getSlideByTitle, getSlides, getUiManager, manageVerticalScrollbarPolicy, remove, remove, setBorder, setScrollbarIncrement, setSelected, setUiManager, updateUI |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI |
| 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, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, 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, 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, addContainerListener, addImpl, 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, 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, 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 com.tensegrity.gui.container.Container |
getApplicationFrame, setName, setSelected |
| Methods inherited from interface com.tensegrity.skeleton.container.ToolContainer |
getHeight, getWidth, repaint |
| Constructor Detail |
public SwingAttributeTreeContainer(ApplicationFrame applicationFrame)
SwingAttributeTableContainer for the given
ApplicationFrame and the hardwired helpID "attributetree".
applicationFrame - the Application context of this Container.
public SwingAttributeTreeContainer(ApplicationFrame applicationFrame,
JPopupMenuSource popupMenuSource)
SwingAttributeTableContainer for the given
ApplicationFrame and the hardwired helpID "attributetree".
applicationFrame - the Application context of this Container.popupMenuSource - The popupMenuSource to use for the root
SlideTitle
public SwingAttributeTreeContainer(ApplicationFrame applicationFrame,
java.lang.String keyTitle)
SwingAttributeTableContainer for the given
ApplicationFrame and the hardwired helpID "attributetree".
applicationFrame - the Application context of this Container.keyTitle - the resource id for the title of this container.
public SwingAttributeTreeContainer(ApplicationFrame applicationFrame,
java.lang.String keyTitle,
JPopupMenuSource popupMenuSource)
SwingAttributeTableContainer for the given
ApplicationFrame and the hardwired helpID "attributetree".
applicationFrame - the Application context of this Container.keyTitle - the resource id for the title of this container.popupMenuSource - The popupMenuSource to use for the root
SlideTitle
public SwingAttributeTreeContainer(ApplicationFrame applicationFrame,
java.lang.String keyTitle,
java.lang.String attributeEditorPropertiesFilename)
SwingAttributeTableContainer for the given
ApplicationFrame and the hardwired helpID "attributetree".
applicationFrame - the Application context of this Container.keyTitle - the resource id for the title of this container.attributeEditorPropertiesFilename - the file name for the
properties file holding the attribute editor settings.
This parameter can be null to disable persistence or can
be AttributeEditorProperties.DEFAULT_FILENAME to
use the default for the main attribute editor.
public SwingAttributeTreeContainer(ApplicationFrame applicationFrame,
java.lang.String keyTitle,
JPopupMenuSource popupMenuSource,
java.lang.String attributeEditorPropertiesFilename)
SwingAttributeTableContainer for the given
ApplicationFrame and the hardwired helpID "attributetree".
applicationFrame - the Application context of this Container.keyTitle - the resource id for the title of this container.popupMenuSource - The popupMenuSource to use for the root
SlideTitleattributeEditorPropertiesFilename - the file name for the
properties file holding the attribute editor settings
This parameter can be null to disable persistence or can
be AttributeEditorProperties.DEFAULT_FILENAME to
use the default for the main attribute editor.| Method Detail |
public void init()
AbstractSwingToolContainer
init in class AbstractSwingToolContainer
public void init(java.lang.String titleResourceKey,
JPopupMenuSource popupMenuSource)
SwingAttributeTree implementation. This Tree will be
encapsulated in a SlidePanel.
titleResourceKey - the id to be used to retrieve the localized version
of the title of this container.popupMenuSource - The popupMenuSource to use for the root
SlideTitle
public void init(java.lang.String titleResourceKey,
JPopupMenuSource popupMenuSource,
java.lang.String attributeEditorPropertiesFilename)
SwingAttributeTree implementation. This Tree will be
encapsulated in a SlidePanel.
titleResourceKey - the id to be used to retrieve the localized version
of the title of this container.popupMenuSource - The popupMenuSource to use for the root
SlideTitleattributeEditorPropertiesFilename - the file name for the
properties file holding the attribute editor settings
This parameter can be null to disable persistence or can
be AttributeEditorProperties.DEFAULT_FILENAME to
use the default for the main attribute editor.public void setAttributableOnSet(AttributableOnSet attributable)
AttributeEditorAttributableOnSet that should be shown in the
editor. The parameter may be null in which case the editor will be empty.
setAttributableOnSet in interface AttributeEditorattributable - the AttributableOnSet to set.public AttributableOnSet getAttributableOnSet()
AttributeEditorAttributableOnSet. This might be null.
getAttributableOnSet in interface AttributeEditorAttributableOnSet or null, if the editor
is empty.public AttributeSet getCurrentAttributeSet()
AttributeEditorAttributeSet. This set is the
instance that is currently shown in the editor, while retrieving the
AttributableOnSet and calling
AttributableOnSet.getAttributes() or
AttributableOnSet.getAttributesTree() might return a clone of
the AttributeSet.
Note: Changes to the AttributeSet will not have an effect
on the AttributableOnSet and changes in the structure will
not be visible in the editor. Changes will be discarded when an event
occurrs that requires reloading the AttributeSet from the
AttributableOnSet.
getCurrentAttributeSet in interface AttributeEditorAttributeSet that is currently
shown in the editor.public boolean stopEditing()
AttributeEditorAttribute and saves the current value.
stopEditing in interface AttributeEditorpublic void cancelEditing()
AttributeEditor
cancelEditing in interface AttributeEditorpublic void hideAttribute(java.lang.String name)
AttributeEditorGEOMETRY.X or COMPOSITE.name.
This method will just forward the call to
AttributeEditorProperties.setVisible(String, boolean)
hideAttribute in interface AttributeEditorname - the full name of the attribute.public void showAttribute(java.lang.String name)
AttributeEditorhideAttribute(String), this
name describes the full path to the attribute.
This method will just forward the call to
AttributeEditorProperties.setVisible(String, boolean)
showAttribute in interface AttributeEditorname - the full name of the attribute.public AttributeEditor getAttributeEditor()
AttributeEditorContainerAttributeEditor
implementation. Thus this instance is returned by this method.
getAttributeEditor in interface AttributeEditorContainerpublic AttributeTree getAttributeTree()
AttributeTreeContainerAttributeTree
implementation. Thus this instance is returned by this method.
getAttributeTree in interface AttributeTreeContainerpublic AttributeEditorProperties getEditorProperties()
AttributeEditorAttributeTableProperties instance.
getEditorProperties in interface AttributeEditorpublic AttributeEditorProperties setEditorProperties(AttributeEditorProperties editorProperties)
AttributeEditorAttributeTableProperties to be used.
setEditorProperties in interface AttributeEditoreditorProperties - The properties instance that should
be used by this editor
public void rehash()
AttributeEditorAttributeSet from the
AttributableOnSet and refreshes the view.
rehash in interface AttributeEditorpublic void propertiesChanged()
AttributeEditorAttributeEditorProperties when a setting
changed. The editor implementation should rehash the attributes whenever
this method is called.
propertiesChanged in interface AttributeEditorpublic boolean isTree()
AttributeEditorAttributeTree and will
call get/setAttributesTree() instead of get/setAttributes().
isTree in interface AttributeEditorAttributeTreepublic java.lang.String getName()
Container
getName in interface Container
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||