public class OdsxSelectorPanel extends FwkPanel implements OdsxChangeListenerInterface, OdsxSelectorPanelInterface, FwkPropertyChangeListenerInterface
| Interface | Description |
|---|---|
| OdsxSelectorMultiItemMenuInterface | Classes that implements that interface controling the popup menu of the tree when more thatn one instances are selected. |
,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
protected class |
OdsxSelectorPanel.DeleteMultiInstanceCommand
The multi selection delete commands.
|
class |
OdsxSelectorPanel.ExpandListener |
class |
OdsxSelectorPanel.TreeMouseListener |
protected class |
OdsxSelectorPanel.UpdateTreeCommand |
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
protected int |
BASEELEMENTMAP_PROP |
protected int |
DELETE_PROP |
protected static FwkDescriptionInterface |
descriptor |
protected com.highqsoft.odsx.OdsxSelectorPanel.DNDSupport |
dnd
The drag and drop support.
|
protected int |
ENABLEAPPLICATIONELEMENT_PROP |
protected int |
ENABLED_PROP |
protected int |
ENABLEINSTANCEELEMENT_PROP |
protected int |
FILTER_PROP |
protected OdsxFilterInterface |
odsFilter
The filter of ASAM-ODS elements.
|
protected OdsxSelectorInterface |
odsSelector
The selector.
|
protected OdsxSessionInterface |
odsSession
The Odsx session for this selector.
|
protected java.util.HashMap<javax.swing.tree.TreePath,javax.swing.tree.TreePath> |
openNodes
The open nodes of the tree.
|
protected static java.util.HashMap<java.lang.String,java.lang.Integer> |
propNames
The propertyName to react on.
|
protected java.lang.String |
rootTitleName
The label of the root selection tree.
|
protected javax.swing.JScrollPane |
scrollPane
The scroll pane.
|
protected java.util.Vector<javax.swing.tree.TreePath> |
selectedPath
The selected path.
|
protected int |
TRANSLATEDNAME_PROP |
protected javax.swing.JTree |
tree
The tree object.
|
protected javax.swing.tree.DefaultTreeModel |
treeModel
The tree model.
|
protected OdsxFilteredTreeNode |
treeRoot
The root of the selection tree.
|
static java.lang.String |
version |
bgImage, controller, fwkItem, imgHeight, imgWidth, lineAppearance, newHeight, newWidth, pageFormat, readingDOM, text, textAppearance, xalign, yalignaccessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTBOTTOM, CENTER, LEFT, RIGHT, TOPINFOBUS_SOURCEAUTHOR, BUILDNR, COMPANY, COPYRIGHT, DATE_FORMAT, DEFAULT_ICON, DESCRIPTION, INTERNET, LARGE_ICON, LARGE_KEY_EXT, LARGE_OPAQUE_ICON, LARGE_OPAQUE_KEY_EXT, OPAQUE_ICON, OPAQUE_KEY_EXT, RCS_DATE_FORMAT, SUPPORT_EMAIL, TITLE_NAME| Constructor and Description |
|---|
OdsxSelectorPanel(OdsxSelectorInterface selector)
The constructor receiving the OdsxSelector.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTreeMouseListener(java.awt.event.MouseListener listener)
Add a tree mouse listener.
|
void |
addTreeMouseMotionListener(java.awt.event.MouseMotionListener listener)
Add a tree mouse motion listener.
|
FwkCommandInterface |
getCommandObject()
Get the command object.
|
FwkCommandInterface[] |
getCommands()
Get the commands for multi selection mode.
|
static FwkDescriptionInterface |
getDescriptor() |
OdsxFilterInterface |
getFilter()
Get the filter of this selector.
|
OdsxSelectorTreeNodeInterface |
getNodeByAsamPath(java.lang.String asamPath)
Get a treenode by the given AsamPath.
|
java.lang.String |
getRootTitleName()
Get the name of the root title.
|
OdsxSelectorInterface |
getSelector()
Get the selector.
|
OdsxSessionInterface |
getSession()
Get the session of this selector.
|
javax.swing.JTree |
getTree()
Returns the tree.
|
OdsxFilteredTreeNode |
getTreeRoot()
Returns the tree root object.
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
void |
odsChanged(OdsxChangeEventInterface ev)
The callback whenever ODS change events occurred.
|
void |
propertyChange(java.beans.PropertyChangeEvent ev)
Invoked when a property changed.
|
void |
setFilter(OdsxFilterInterface odsFilter,
boolean recursive)
Set the filter of this selector.
|
void |
setRootTitleName(java.lang.String rootTitleName)
Set the name of the root title.
|
void |
setSelectedAsamPath(java.lang.String asamPath)
Set the current selection to the given AsamPath.
|
void |
setSelectedAsamPath(java.lang.String asamPath,
boolean setAsRoot,
boolean open)
Set the current selection to the given AsamPath.
|
void |
setSelector(OdsxSelectorInterface odsSelector)
Set the selector.
|
void |
setSession(OdsxSessionInterface odsSession,
OdsxSelectorInterface odsSelector)
Set the session of this selector.
|
void |
updateTree()
Update the tree.
|
addCommand, addCommand, addPropertyChangeListener, addPropertyChangeListener, addToGroup, addToGroup, addVetoableChangeListener, addVetoableChangeListener, clearCommands, commandsAvailable, compareTo, deleteGroup, destroyController, fireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getAuthor, getBuild, getClassName, getCommand, getCommands, getCompany, getCompanyInternetAddress, getController, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getGroup, getIcon, getIcon, getIconKey, getIconKey, getInstanceDescriptor, getName, getNumberOfPages, getPageFormat, getPersistentObjectNames, getPresentationString, getPresentationString, getPrintable, getPrintJobName, getProperty, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, getPropertyGroup, getSource, getSupportEMail, getTitle, getTitleName, getTransferData, getTransferDataFlavors, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, groupExists, isDataFlavorSupported, isPropertyChangeEventSuspended, lostOwnership, paintComponent, print, printPanel, readConstructor, readFromDOM, readingDOM, readingDOM, refresh, release, removeCommand, removeFromGroup, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener, setAuthor, setBackgroundImage, setBuild, setClassName, setCommands, setCompany, setCompanyInternetAddress, setController, setCopyright, setCreationDate, setCreationDate, setDateFormatString, setDescription, setDescriptor, setDescriptor, setIcon, setIcon, setIconKey, setIconKey, setLineAppearance, setName, setPageFormat, setProperty, setPropertyGroup, setSource, setSupportEMail, setText, setTextAlignment, setTextAppearance, setTitleName, suspendChangeManager, suspendPropertyChangeEvents, writeConstructor, writeToDOM, writeToXMLgetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, 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, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, 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, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddMouseListener, addMouseMotionListeneradd, getTitle, getTitleName, printPanel, refresh, setTitleNamegetController, setControllergetCompany, readConstructor, readFromDOM, readingDOM, readingDOM, writeConstructor, writeToDOM, writeToXMLgetPrintJobName, setPageFormatfireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getProperty, getPropertyGroup, setProperty, setPropertyGroup, suspendChangeManagergetCommands, getPersistentObjectNamesdestroyControlleraddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSource, suspendPropertyChangeEventsaddVetoableChangeListener, addVetoableChangeListener, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, removeVetoableChangeListener, removeVetoableChangeListenergetAuthor, getBuild, getClassName, getCompanyInternetAddress, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getIcon, getIcon, getIconKey, getIconKey, getName, getPresentationString, getPresentationString, getSupportEMail, setAuthor, setBuild, setClassName, setCompany, setCompanyInternetAddress, setCopyright, setCreationDate, setCreationDate, setDateFormatString, setDescription, setDescriptor, setIcon, setIcon, setIconKey, setIconKey, setName, setSupportEMailgetTransferData, getTransferDataFlavors, isDataFlavorSupportedaddCommand, addCommand, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getCommand, getGroup, groupExists, removeCommand, removeFromGroup, setCommandsgetPresentationString, getPresentationStringreleaseprotected final int DELETE_PROP
protected final int TRANSLATEDNAME_PROP
protected final int BASEELEMENTMAP_PROP
protected final int ENABLED_PROP
protected final int FILTER_PROP
protected final int ENABLEINSTANCEELEMENT_PROP
protected final int ENABLEAPPLICATIONELEMENT_PROP
public static final java.lang.String version
protected static final FwkDescriptionInterface descriptor
protected OdsxSessionInterface odsSession
protected OdsxFilterInterface odsFilter
protected OdsxFilteredTreeNode treeRoot
protected javax.swing.tree.DefaultTreeModel treeModel
protected java.util.HashMap<javax.swing.tree.TreePath,javax.swing.tree.TreePath> openNodes
protected static java.util.HashMap<java.lang.String,java.lang.Integer> propNames
protected java.util.Vector<javax.swing.tree.TreePath> selectedPath
protected java.lang.String rootTitleName
protected javax.swing.JScrollPane scrollPane
protected javax.swing.JTree tree
protected OdsxSelectorInterface odsSelector
protected com.highqsoft.odsx.OdsxSelectorPanel.DNDSupport dnd
public OdsxSelectorPanel(OdsxSelectorInterface selector)
selector - The selector that belongs to that panel.public java.lang.String getVersion()
FwkInterfacegetVersion in interface FwkInterfacegetVersion in class FwkPanelpublic static FwkDescriptionInterface getDescriptor()
public void setSelector(OdsxSelectorInterface odsSelector)
setSelector in interface OdsxSelectorPanelInterfaceodsSelector - The selector.public OdsxSelectorInterface getSelector()
getSelector in interface OdsxSelectorPanelInterfacepublic void setRootTitleName(java.lang.String rootTitleName)
setRootTitleName in interface OdsxSelectorPanelInterfacerootTitleName - The name of the root title..public java.lang.String getRootTitleName()
getRootTitleName in interface OdsxSelectorPanelInterfacepublic OdsxFilteredTreeNode getTreeRoot()
public javax.swing.JTree getTree()
public OdsxFilterInterface getFilter()
getFilter in interface OdsxSelectorPanelInterfacepublic OdsxSessionInterface getSession()
getSession in interface OdsxSelectorPanelInterfacepublic void setFilter(OdsxFilterInterface odsFilter, boolean recursive)
setFilter in interface OdsxSelectorPanelInterfaceodsFilter - The filter of this selector.recursive - Recursively set the filters in all nodes.public void setSession(OdsxSessionInterface odsSession, OdsxSelectorInterface odsSelector)
setSession in interface OdsxSelectorPanelInterfaceodsSession - The session for this selector.public void setSelectedAsamPath(java.lang.String asamPath)
throws AoException
setSelectedAsamPath in interface OdsxSelectorPanelInterfaceasamPath - The asam path to the new selection.AoExceptionpublic void setSelectedAsamPath(java.lang.String asamPath,
boolean setAsRoot,
boolean open)
throws AoException
setSelectedAsamPath in interface OdsxSelectorPanelInterfaceasamPath - The asam path to the new selection.setAsRoot - Make the selected element the tree root.open - if true the found node will be opened.AoExceptionpublic OdsxSelectorTreeNodeInterface getNodeByAsamPath(java.lang.String asamPath) throws AoException
asamPath - The asam path to the new selection.AoExceptionpublic void addTreeMouseListener(java.awt.event.MouseListener listener)
addTreeMouseListener in interface OdsxSelectorPanelInterfacelistener - The mouse listener.public void addTreeMouseMotionListener(java.awt.event.MouseMotionListener listener)
addTreeMouseMotionListener in interface OdsxSelectorPanelInterfacelistener - The mouse motion listener.public void propertyChange(java.beans.PropertyChangeEvent ev)
propertyChange in interface java.beans.PropertyChangeListenerev - The property change event.public void updateTree()
public FwkCommandInterface[] getCommands()
getCommands in interface FwkInstructionInterfacegetCommands in class FwkPanelpublic void odsChanged(OdsxChangeEventInterface ev)
odsChanged in interface OdsxChangeListenerInterfacepublic FwkCommandInterface getCommandObject()
getCommandObject in interface OdsxSelectorPanelInterface