Method Summary |
|
protected void | addDelayedExpansionEvent(TreeExpansionEvent e, boolean expansion) |
final public void | addMouseListener(SMouseListener l) Adds the specified mouse listener to receive mouse events from
this component. |
public void | addSelectionPath(TreePath path) Adds the node identified by the specified TreePath to the current
selection. |
public void | addSelectionPaths(TreePath[] paths) Adds each path in the array of paths to the current selection. |
public void | addSelectionRow(int row) Adds the path at the specified row to the current selection. |
public void | addSelectionRows(int[] rows) Adds the paths at each of the specified rows to the current selection. |
public void | addTreeExpansionListener(TreeExpansionListener tel) |
public void | addTreeSelectionListener(TreeSelectionListener tsl) |
public void | addTreeWillExpandListener(TreeWillExpandListener tel) Adds a listener for TreeWillExpand events. |
public void | addViewportChangeListener(SViewportChangeListener l) Adds the given SViewportChangeListener to the scrollable. |
public void | collapsePath(TreePath p) |
public void | collapseRow(TreePath p) Collapse this tree row. |
public void | collapseRow(int row) |
protected TreeModelListener | createTreeModelListener() Creates an instance of TreeModelHandler. |
public void | expandPath(TreePath p) Expand this tree row. |
public void | expandRow(TreePath p) Expand this tree row. |
public void | expandRow(int row) |
protected int | fillPathForAbsoluteRow(int row, Object node, ArrayList path) |
protected void | fireDelayedExpansionEvents() |
public void | fireFinalEvents() |
public void | fireIntermediateEvents() |
protected void | fireMouseClickedEvent(SMouseEvent event) Reports a mouse click event. |
public void | fireTreeCollapsed(TreePath path) Notify all listeners that have registered interest for
notification on this event type. |
public void | fireTreeExpanded(TreePath path) Notify all listeners that have registered interest for
notification on this event type. |
protected void | fireTreeExpansionEvent(TreeExpansionEvent e, boolean expansion) |
protected void | fireTreeSelectionEvent(TreeSelectionEvent e) |
public void | fireTreeWillExpand(TreePath path, boolean expand) Notifies all listeners that have registered interest for
notification on this event type. |
protected void | fireViewportChanged(boolean horizontal) Notifies all listeners that have registered interest for notification
on changes to this scrollable's viewport in the specified direction. |
public STreeCellRenderer | getCellRenderer() |
public SCellRendererPane | getCellRendererPane() |
protected static TreeModel | getDefaultTreeModel() Creates and returns a sample TreeModel. |
public String | getExpansionParameter(int row, boolean absolute) |
public Object | getLastSelectedPathComponent() Returns the last path component in the first node of the current
selection. |
public TreePath | getLeadSelectionPath() Returns the path of the last node added to the selection. |
public int | getLeadSelectionRow() Returns the row index of the last node added to the selection. |
public int | getMaxSelectionRow() Gets the last selected row. |
public int | getMaximumExpandedDepth() |
public int | getMinSelectionRow() Gets the first selected row. |
public TreeModel | getModel() |
public int | getNodeIndentDepth() |
protected TreePath[] | getPathBetweenRows(int index0, int index1) Returns JTreePath instances representing the path between index0
and index1 (including index1). |
public TreePath | getPathForAbsoluteRow(int row) |
public TreePath | getPathForRow(int row) |
public int | getRowCount() |
public int | getRowForLocation(SPoint point) Returns the tree row for the passed SPoint .
instance received via
STree.addMouseListener(org.wings.event.SMouseListener) .
Parameters: point - The pointed returned by the mouse event. |
public int | getRowForPath(TreePath path) |
public Rectangle | getScrollableViewportSize() The size of the component in respect to scrollable units. |
public int | getSelectionCount() Returns the number of nodes selected. |
public STreeSelectionModel | getSelectionModel() Returns the model for selections. |
public String | getSelectionParameter(int row, boolean absolute) |
public TreePath | getSelectionPath() Returns the path to the first selected node. |
public TreePath[] | getSelectionPaths() Returns the paths of all selected values. |
public int[] | getSelectionRows() Returns all of the currently selected rows. |
public Rectangle | getViewportSize() Returns the actual visible part of a scrollable. |
public boolean | isEpochCheckEnabled() |
public boolean | isExpanded(TreePath path) |
public boolean | isPathSelected(TreePath path) Returns true if the item identified by the path is currently selected. |
public boolean | isRootVisible() |
public boolean | isRowSelected(int row) Returns true if the node identitifed by row is selected. |
public boolean | isVisible(TreePath path) |
public void | processLowLevelEvent(String action, String[] values) |
protected void | processRequestedExpansionPaths() |
final public void | removeMouseListener(SMouseListener l) Removes the specified mouse listener so that it no longer
receives mouse events from this component. |
public void | removeSelectionInterval(int index0, int index1) Removes the nodes between index0 and index1, inclusive, from the
selection. |
public void | removeSelectionPath(TreePath path) Removes the node identified by the specified path from the current
selection. |
public void | removeSelectionPaths(TreePath[] paths) Removes the nodes identified by the specified paths from the
current selection. |
public void | removeSelectionRow(int row) Removes the path at the index row from the current
selection. |
public void | removeSelectionRows(int[] rows) |
public void | removeTreeExpansionListener(TreeExpansionListener tel) |
public void | removeTreeSelectionListener(TreeSelectionListener tsl) |
public void | removeTreeWillExpandListener(TreeWillExpandListener tel) Removes a listener for TreeWillExpand events. |
public void | removeViewportChangeListener(SViewportChangeListener l) Removes the given SViewportChangeListener from the scrollable. |
public int | rowAtPoint(SPoint point) Returns the table row for the passed SPoint
instance received via
STree.addMouseListener(org.wings.event.SMouseListener) .
Parameters: point - The pointed retuned by the mouse event. |
public void | setCG(TreeCG cg) |
public void | setCellRenderer(STreeCellRenderer x) |
public void | setEpochCheckEnabled(boolean epochCheckEnabled) |
public void | setModel(TreeModel m) |
public void | setNodeIndentDepth(int depth) Set the indent depth in pixel between two nodes of a different level. |
public void | setParent(SContainer p) |
protected void | setParentFrame(SFrame f) |
public void | setRootVisible(boolean rootVisible) |
public void | setSelectionModel(STreeSelectionModel selectionModel) Sets the tree's selection model. |
public void | setSelectionPath(TreePath path) Selects the node identified by the specified path. |
public void | setSelectionPaths(TreePath[] paths) Selects the nodes identified by the specified array of paths. |
public void | setSelectionRow(int row) Selects the node at the specified row in the display. |
public void | setSelectionRows(int[] rows) Selects the nodes corresponding to each of the specified rows
in the display. |
public void | setViewportSize(Rectangle newViewport) Sets the actual visible part of a scrollable. |
protected void | togglePathExpansion(TreePath path) |
protected void | togglePathSelection(TreePath path) |