public class PMITreeView extends AbstractVisionScrollPane implements javax.swing.event.TreeSelectionListener, DesignerInitializable, EnabledEx
Modifier and Type | Class and Description |
---|---|
static class |
PMITreeView.TreeViewItemConfig |
javax.swing.JScrollPane.AccessibleJScrollPane, javax.swing.JScrollPane.ScrollBar
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static int |
ANGLED |
static java.lang.Class<?>[] |
COLUMN_CLASSES |
static java.lang.String[] |
COLUMN_NAMES |
static int |
HORIZONTAL |
static java.lang.String[] |
LINE_STYLES |
static int |
NONE |
static java.lang.Class<?>[] |
REAL_COLUMN_CLASSES |
antialias, context, cursorCode
columnHeader, horizontalScrollBar, horizontalScrollBarPolicy, lowerLeft, lowerRight, rowHeader, upperLeft, upperRight, verticalScrollBar, verticalScrollBarPolicy, viewport
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
DISABLED_BY_PERMISSIONS
RESERVED_SET_KEY
COMPONENT_LOCKED, COMPONENT_PERMISSIONS, COMPONENT_SECURITY, COMPONENT_TRANSLATIONS
COMPONENT_RUNNING
COLUMN_HEADER, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_ALWAYS, HORIZONTAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_NEVER, HORIZONTAL_SCROLLBAR_POLICY, LOWER_LEADING_CORNER, LOWER_LEFT_CORNER, LOWER_RIGHT_CORNER, LOWER_TRAILING_CORNER, ROW_HEADER, UPPER_LEADING_CORNER, UPPER_LEFT_CORNER, UPPER_RIGHT_CORNER, UPPER_TRAILING_CORNER, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_ALWAYS, VERTICAL_SCROLLBAR_AS_NEEDED, VERTICAL_SCROLLBAR_NEVER, VERTICAL_SCROLLBAR_POLICY, VIEWPORT
Constructor and Description |
---|
PMITreeView() |
Modifier and Type | Method and Description |
---|---|
void |
clearSelection() |
void |
collapseAll() |
void |
evaluateEnabled() |
void |
expandAll() |
void |
expandNode(javax.swing.tree.TreeNode node,
boolean expand) |
void |
expandNodeForLevel(javax.swing.tree.TreeNode rootNode,
int levelsToExpand) |
int |
getAutoExpansionLevel() |
java.awt.Color |
getBackground() |
Dataset |
getData() |
java.awt.Color |
getDefaultBackground() |
javax.swing.border.Border |
getDefaultBorder() |
javax.swing.Icon |
getDefaultClosedIcon() |
java.lang.String |
getDefaultClosedIconPath() |
java.awt.Color |
getDefaultForeground() |
javax.swing.Icon |
getDefaultLeafIcon() |
java.lang.String |
getDefaultLeafIconPath() |
javax.swing.Icon |
getDefaultOpenIcon() |
java.lang.String |
getDefaultOpenIconPath() |
java.awt.Color |
getDefaultSelectedBackground() |
javax.swing.border.Border |
getDefaultSelectedBorder() |
java.awt.Color |
getDefaultSelectedForeground() |
java.lang.Object |
getDefaultValue(java.lang.String col,
int row) |
int |
getLineStyle() |
javax.swing.tree.TreeModel |
getModel() |
int |
getRowHeight() |
int |
getSelectedItem()
Returns the index of the most recently selected node, or -1 if no node is selected
|
int[] |
getSelectedItems() |
java.lang.String |
getSelectedPath() |
java.lang.String[] |
getSelectedPaths() |
int |
getSelectionMode() |
java.lang.String |
getSeparationCharacter() |
void |
initialize() |
boolean |
isAutoExpand() |
boolean |
isAutoSort() |
boolean |
isComponentEnabled() |
boolean |
isShowRootHandles() |
protected void |
onStartup()
Subclasses should override this to provide startup logic.
|
void |
setAutoExpand(boolean autoExpand) |
void |
setAutoExpansionLevel(int startupExpansionLevel) |
void |
setAutoSort(boolean autoSort) |
void |
setBackground(java.awt.Color bg) |
void |
setComponentEnabled(boolean componentEnabled) |
void |
setData(Dataset ds) |
void |
setDefaultBackground(java.awt.Color defaultBackground) |
void |
setDefaultBorder(javax.swing.border.Border defaultBorder) |
void |
setDefaultClosedIconPath(java.lang.String path) |
void |
setDefaultForeground(java.awt.Color defaultForeground) |
void |
setDefaultLeafIconPath(java.lang.String path) |
void |
setDefaultOpenIconPath(java.lang.String path) |
void |
setDefaultSelectedBackground(java.awt.Color defaultSelectedBackground) |
void |
setDefaultSelectedBorder(javax.swing.border.Border defaultSelectedBorder) |
void |
setDefaultSelectedForeground(java.awt.Color defaultSelectedForeground) |
void |
setFont(java.awt.Font font) |
void |
setLineStyle(int lineStyle) |
void |
setRowHeight(int rowHeight) |
void |
setSelectedItem(int selectedItem) |
void |
setSelectedItemImpl(int selectedItem,
boolean alterSelection) |
void |
setSelectedPath(java.lang.String selectedPath) |
void |
setSelectionMode(int mode) |
void |
setSeparationCharacter(java.lang.String separationCharacter) |
void |
setShowRootHandles(boolean showRootHandles) |
void |
valueChanged(javax.swing.event.TreeSelectionEvent e)
Listens to the tree selection change events in order to update the "selectedItem" property
|
getAppContext, getCursorCode, getDataQuality, getDynamicProps, getProperties, getPropertyValue, getStyles, getToolTipText, initStyleListener, isAntialias, isComponentRunning, isPropertyDefined, localeChanged, onShutdown, paintChildren, paintComponent, setAntialias, setCursorCode, setDataQuality, setDynamicProps, setName, setPropertyValue, setStyles, setToolTipText, setVisible, shutdownComponent, startupComponent, updateQuality
createHorizontalScrollBar, createVerticalScrollBar, createViewport, getAccessibleContext, getColumnHeader, getCorner, getHorizontalScrollBar, getHorizontalScrollBarPolicy, getRowHeader, getUI, getUIClassID, getVerticalScrollBar, getVerticalScrollBarPolicy, getViewport, getViewportBorder, getViewportBorderBounds, isValidateRoot, isWheelScrollingEnabled, paramString, setColumnHeader, setColumnHeaderView, setComponentOrientation, setCorner, setHorizontalScrollBar, setHorizontalScrollBarPolicy, setLayout, setRowHeader, setRowHeaderView, setUI, setVerticalScrollBar, setVerticalScrollBarPolicy, setViewport, setViewportBorder, setViewportView, setWheelScrollingEnabled, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, 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, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, paint, paintBorder, 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, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
add, 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, transferFocusDownCycle, validate, validateTree
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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, 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, 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, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final java.lang.String[] COLUMN_NAMES
public static final java.lang.Class<?>[] REAL_COLUMN_CLASSES
public static final java.lang.Class<?>[] COLUMN_CLASSES
public static final java.lang.String[] LINE_STYLES
public static final int ANGLED
public static final int HORIZONTAL
public static final int NONE
public javax.swing.tree.TreeModel getModel()
public java.lang.Object getDefaultValue(java.lang.String col, int row)
public void expandAll()
public void collapseAll()
public void expandNode(javax.swing.tree.TreeNode node, boolean expand)
public void expandNodeForLevel(javax.swing.tree.TreeNode rootNode, int levelsToExpand)
public Dataset getData()
public void setData(Dataset ds)
public int getSelectedItem()
public void setSelectedItem(int selectedItem)
public java.lang.String getSelectedPath()
public void setSelectedPath(java.lang.String selectedPath)
public void setSelectedItemImpl(int selectedItem, boolean alterSelection)
public int[] getSelectedItems()
public java.lang.String[] getSelectedPaths()
public void clearSelection()
public int getRowHeight()
public void setRowHeight(int rowHeight)
public int getLineStyle()
public void setLineStyle(int lineStyle)
public int getSelectionMode()
public void setSelectionMode(int mode)
public boolean isAutoSort()
public void setAutoSort(boolean autoSort)
public boolean isAutoExpand()
public void setAutoExpand(boolean autoExpand)
public int getAutoExpansionLevel()
public void setAutoExpansionLevel(int startupExpansionLevel)
public boolean isShowRootHandles()
public void setShowRootHandles(boolean showRootHandles)
public java.lang.String getSeparationCharacter()
public void setSeparationCharacter(java.lang.String separationCharacter)
public java.awt.Color getDefaultBackground()
public void setDefaultBackground(java.awt.Color defaultBackground)
public java.awt.Color getDefaultForeground()
public void setDefaultForeground(java.awt.Color defaultForeground)
public javax.swing.border.Border getDefaultBorder()
public void setDefaultBorder(javax.swing.border.Border defaultBorder)
public java.awt.Color getDefaultSelectedBackground()
public void setDefaultSelectedBackground(java.awt.Color defaultSelectedBackground)
public java.awt.Color getDefaultSelectedForeground()
public void setDefaultSelectedForeground(java.awt.Color defaultSelectedForeground)
public javax.swing.border.Border getDefaultSelectedBorder()
public void setDefaultSelectedBorder(javax.swing.border.Border defaultSelectedBorder)
public javax.swing.Icon getDefaultClosedIcon()
public javax.swing.Icon getDefaultLeafIcon()
public javax.swing.Icon getDefaultOpenIcon()
public java.lang.String getDefaultLeafIconPath()
public void setDefaultLeafIconPath(java.lang.String path)
public java.lang.String getDefaultOpenIconPath()
public void setDefaultOpenIconPath(java.lang.String path)
public java.lang.String getDefaultClosedIconPath()
public void setDefaultClosedIconPath(java.lang.String path)
public void valueChanged(javax.swing.event.TreeSelectionEvent e)
valueChanged
in interface javax.swing.event.TreeSelectionListener
public void initialize()
initialize
in interface DesignerInitializable
protected void onStartup()
AbstractVisionScrollPane
onStartup
in class AbstractVisionScrollPane
public void setBackground(java.awt.Color bg)
setBackground
in class javax.swing.JComponent
public java.awt.Color getBackground()
getBackground
in class java.awt.Component
public void setFont(java.awt.Font font)
setFont
in class javax.swing.JComponent
public boolean isComponentEnabled()
isComponentEnabled
in interface EnabledEx
public void setComponentEnabled(boolean componentEnabled)
setComponentEnabled
in interface EnabledEx
public void evaluateEnabled()
evaluateEnabled
in interface EnabledEx