Java Doc for STree.java in  » Swing-Library » wings3 » org » wings » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Swing Library » wings3 » org.wings 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.wings.SComponent
      org.wings.STree

STree
public class STree extends SComponent implements Scrollable,LowLevelEventListener(Code)
Swing-like tree widget.
author:
   Armin Haaf

Inner Class :protected class TreeModelHandler implements TreeModelListener

Field Summary
final public static  intCONTIGUOUS_TREE_SELECTION
     Tree selection model.
final public static  intDISCONTIGUOUS_TREE_SELECTION
     Tree selection model.
final public static  intSINGLE_TREE_SELECTION
     Tree selection model.
protected  booleanepochCheckEnabled
    
protected  TreeModelmodel
    
protected  STreeCellRendererrenderer
    
final protected  ArrayListrequestedExpansionPaths
     store here expansion paths that will be processed after procession the request.
protected  STreeSelectionModelselectionModel
    
protected transient  TreeModelListenertreeModelListener
    
protected transient  AbstractLayoutCachetreeState
    
protected  Rectangleviewport
     Implementation of the Scrollable interface.

Constructor Summary
public  STree(TreeModel model)
    
public  STree()
    

Method Summary
protected  voidaddDelayedExpansionEvent(TreeExpansionEvent e, boolean expansion)
    
final public  voidaddMouseListener(SMouseListener l)
     Adds the specified mouse listener to receive mouse events from this component.
public  voidaddSelectionPath(TreePath path)
     Adds the node identified by the specified TreePath to the current selection.
public  voidaddSelectionPaths(TreePath[] paths)
     Adds each path in the array of paths to the current selection.
public  voidaddSelectionRow(int row)
     Adds the path at the specified row to the current selection.
public  voidaddSelectionRows(int[] rows)
     Adds the paths at each of the specified rows to the current selection.
public  voidaddTreeExpansionListener(TreeExpansionListener tel)
    
public  voidaddTreeSelectionListener(TreeSelectionListener tsl)
    
public  voidaddTreeWillExpandListener(TreeWillExpandListener tel)
     Adds a listener for TreeWillExpand events.
public  voidaddViewportChangeListener(SViewportChangeListener l)
     Adds the given SViewportChangeListener to the scrollable.
public  voidcollapsePath(TreePath p)
    
public  voidcollapseRow(TreePath p)
     Collapse this tree row.
public  voidcollapseRow(int row)
    
protected  TreeModelListenercreateTreeModelListener()
     Creates an instance of TreeModelHandler.
public  voidexpandPath(TreePath p)
     Expand this tree row.
public  voidexpandRow(TreePath p)
     Expand this tree row.
public  voidexpandRow(int row)
    
protected  intfillPathForAbsoluteRow(int row, Object node, ArrayList path)
    
protected  voidfireDelayedExpansionEvents()
    
public  voidfireFinalEvents()
    
public  voidfireIntermediateEvents()
    
protected  voidfireMouseClickedEvent(SMouseEvent event)
     Reports a mouse click event.
public  voidfireTreeCollapsed(TreePath path)
     Notify all listeners that have registered interest for notification on this event type.
public  voidfireTreeExpanded(TreePath path)
     Notify all listeners that have registered interest for notification on this event type.
protected  voidfireTreeExpansionEvent(TreeExpansionEvent e, boolean expansion)
    
protected  voidfireTreeSelectionEvent(TreeSelectionEvent e)
    
public  voidfireTreeWillExpand(TreePath path, boolean expand)
     Notifies all listeners that have registered interest for notification on this event type.
protected  voidfireViewportChanged(boolean horizontal)
     Notifies all listeners that have registered interest for notification on changes to this scrollable's viewport in the specified direction.
public  STreeCellRenderergetCellRenderer()
    
public  SCellRendererPanegetCellRendererPane()
    
protected static  TreeModelgetDefaultTreeModel()
     Creates and returns a sample TreeModel.
public  StringgetExpansionParameter(int row, boolean absolute)
    
public  ObjectgetLastSelectedPathComponent()
     Returns the last path component in the first node of the current selection.
public  TreePathgetLeadSelectionPath()
     Returns the path of the last node added to the selection.
public  intgetLeadSelectionRow()
     Returns the row index of the last node added to the selection.
public  intgetMaxSelectionRow()
     Gets the last selected row.
public  intgetMaximumExpandedDepth()
    
public  intgetMinSelectionRow()
     Gets the first selected row.
public  TreeModelgetModel()
    
public  intgetNodeIndentDepth()
    
protected  TreePath[]getPathBetweenRows(int index0, int index1)
     Returns JTreePath instances representing the path between index0 and index1 (including index1).
public  TreePathgetPathForAbsoluteRow(int row)
    
public  TreePathgetPathForRow(int row)
    
public  intgetRowCount()
    
public  intgetRowForLocation(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  intgetRowForPath(TreePath path)
    
public  RectanglegetScrollableViewportSize()
     The size of the component in respect to scrollable units.
public  intgetSelectionCount()
     Returns the number of nodes selected.
public  STreeSelectionModelgetSelectionModel()
     Returns the model for selections.
public  StringgetSelectionParameter(int row, boolean absolute)
    
public  TreePathgetSelectionPath()
     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  RectanglegetViewportSize()
     Returns the actual visible part of a scrollable.
public  booleanisEpochCheckEnabled()
    
public  booleanisExpanded(TreePath path)
    
public  booleanisPathSelected(TreePath path)
     Returns true if the item identified by the path is currently selected.
public  booleanisRootVisible()
    
public  booleanisRowSelected(int row)
     Returns true if the node identitifed by row is selected.
public  booleanisVisible(TreePath path)
    
public  voidprocessLowLevelEvent(String action, String[] values)
    
protected  voidprocessRequestedExpansionPaths()
    
final public  voidremoveMouseListener(SMouseListener l)
     Removes the specified mouse listener so that it no longer receives mouse events from this component.
public  voidremoveSelectionInterval(int index0, int index1)
     Removes the nodes between index0 and index1, inclusive, from the selection.
public  voidremoveSelectionPath(TreePath path)
     Removes the node identified by the specified path from the current selection.
public  voidremoveSelectionPaths(TreePath[] paths)
     Removes the nodes identified by the specified paths from the current selection.
public  voidremoveSelectionRow(int row)
     Removes the path at the index row from the current selection.
public  voidremoveSelectionRows(int[] rows)
    
public  voidremoveTreeExpansionListener(TreeExpansionListener tel)
    
public  voidremoveTreeSelectionListener(TreeSelectionListener tsl)
    
public  voidremoveTreeWillExpandListener(TreeWillExpandListener tel)
     Removes a listener for TreeWillExpand events.
public  voidremoveViewportChangeListener(SViewportChangeListener l)
     Removes the given SViewportChangeListener from the scrollable.
public  introwAtPoint(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  voidsetCG(TreeCG cg)
    
public  voidsetCellRenderer(STreeCellRenderer x)
    
public  voidsetEpochCheckEnabled(boolean epochCheckEnabled)
    
public  voidsetModel(TreeModel m)
    
public  voidsetNodeIndentDepth(int depth)
     Set the indent depth in pixel between two nodes of a different level.
public  voidsetParent(SContainer p)
    
protected  voidsetParentFrame(SFrame f)
    
public  voidsetRootVisible(boolean rootVisible)
    
public  voidsetSelectionModel(STreeSelectionModel selectionModel)
     Sets the tree's selection model.
public  voidsetSelectionPath(TreePath path)
     Selects the node identified by the specified path.
public  voidsetSelectionPaths(TreePath[] paths)
     Selects the nodes identified by the specified array of paths.
public  voidsetSelectionRow(int row)
     Selects the node at the specified row in the display.
public  voidsetSelectionRows(int[] rows)
     Selects the nodes corresponding to each of the specified rows in the display.
public  voidsetViewportSize(Rectangle newViewport)
     Sets the actual visible part of a scrollable.
protected  voidtogglePathExpansion(TreePath path)
    
protected  voidtogglePathSelection(TreePath path)
    

Field Detail
CONTIGUOUS_TREE_SELECTION
final public static int CONTIGUOUS_TREE_SELECTION(Code)
Tree selection model.
See Also:   STreeSelectionModel.setSelectionMode(int)
See Also:   TreeSelectionModel.CONTIGUOUS_TREE_SELECTION



DISCONTIGUOUS_TREE_SELECTION
final public static int DISCONTIGUOUS_TREE_SELECTION(Code)
Tree selection model.
See Also:   STreeSelectionModel.setSelectionMode(int)
See Also:   TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION



SINGLE_TREE_SELECTION
final public static int SINGLE_TREE_SELECTION(Code)
Tree selection model.
See Also:   STreeSelectionModel.setSelectionMode(int)
See Also:   TreeSelectionModel.SINGLE_TREE_SELECTION



epochCheckEnabled
protected boolean epochCheckEnabled(Code)

See Also:   LowLevelEventListener.isEpochCheckEnabled
See Also:   



model
protected TreeModel model(Code)



renderer
protected STreeCellRenderer renderer(Code)



requestedExpansionPaths
final protected ArrayList requestedExpansionPaths(Code)
store here expansion paths that will be processed after procession the request.



selectionModel
protected STreeSelectionModel selectionModel(Code)



treeModelListener
protected transient TreeModelListener treeModelListener(Code)



treeState
protected transient AbstractLayoutCache treeState(Code)



viewport
protected Rectangle viewport(Code)
Implementation of the Scrollable interface.




Constructor Detail
STree
public STree(TreeModel model)(Code)



STree
public STree()(Code)




Method Detail
addDelayedExpansionEvent
protected void addDelayedExpansionEvent(TreeExpansionEvent e, boolean expansion)(Code)



addMouseListener
final public void addMouseListener(SMouseListener l)(Code)
Adds the specified mouse listener to receive mouse events from this component. If l is null, no exception is thrown and no action is performed.
Parameters:
  l - the component listener.
See Also:   org.wings.event.SMouseEvent
See Also:   org.wings.event.SMouseListener
See Also:   org.wings.STable.removeMouseListener



addSelectionPath
public void addSelectionPath(TreePath path)(Code)
Adds the node identified by the specified TreePath to the current selection. If any component of the path isn't visible, it is made visible.
Parameters:
  path - the TreePath to add



addSelectionPaths
public void addSelectionPaths(TreePath[] paths)(Code)
Adds each path in the array of paths to the current selection. If any component of any of the paths isn't visible, it is made visible.
Parameters:
  paths - an array of TreePath objects that specifies the nodesto add



addSelectionRow
public void addSelectionRow(int row)(Code)
Adds the path at the specified row to the current selection.
Parameters:
  row - an int specifying the row of the node to add,where 0 is the first row in the display



addSelectionRows
public void addSelectionRows(int[] rows)(Code)
Adds the paths at each of the specified rows to the current selection.
Parameters:
  rows - an array of ints specifying the rows to add,where 0 indicates the first row in the display



addTreeExpansionListener
public void addTreeExpansionListener(TreeExpansionListener tel)(Code)



addTreeSelectionListener
public void addTreeSelectionListener(TreeSelectionListener tsl)(Code)



addTreeWillExpandListener
public void addTreeWillExpandListener(TreeWillExpandListener tel)(Code)
Adds a listener for TreeWillExpand events.
Parameters:
  tel - a TreeWillExpandListener that will be notifiedwhen a tree node will be expanded or collapsed (a "negativeexpansion")



addViewportChangeListener
public void addViewportChangeListener(SViewportChangeListener l)(Code)
Adds the given SViewportChangeListener to the scrollable.
Parameters:
  l - the listener to be added



collapsePath
public void collapsePath(TreePath p)(Code)



collapseRow
public void collapseRow(TreePath p)(Code)
Collapse this tree row. If tree is inside a SScrollPane try to adjust pane, so that as much as possible new nodes are visible.
Parameters:
  p - the TreePath to expand



collapseRow
public void collapseRow(int row)(Code)



createTreeModelListener
protected TreeModelListener createTreeModelListener()(Code)
Creates an instance of TreeModelHandler.



expandPath
public void expandPath(TreePath p)(Code)
Expand this tree row. If tree is inside a SScrollPane try to adjust pane, so that as much as possible new nodes are visible.
Parameters:
  p - the TreePath to expand



expandRow
public void expandRow(TreePath p)(Code)
Expand this tree row. If tree is inside a SScrollPane try to adjust pane, so that as much as possible new nodes are visible.
Parameters:
  p - the TreePath to expand



expandRow
public void expandRow(int row)(Code)



fillPathForAbsoluteRow
protected int fillPathForAbsoluteRow(int row, Object node, ArrayList path)(Code)



fireDelayedExpansionEvents
protected void fireDelayedExpansionEvents()(Code)



fireFinalEvents
public void fireFinalEvents()(Code)



fireIntermediateEvents
public void fireIntermediateEvents()(Code)



fireMouseClickedEvent
protected void fireMouseClickedEvent(SMouseEvent event)(Code)
Reports a mouse click event.
Parameters:
  event - report this event to all listeners
See Also:   org.wings.event.SMouseListener



fireTreeCollapsed
public void fireTreeCollapsed(TreePath path)(Code)
Notify all listeners that have registered interest for notification on this event type. The event instance is lazily created using the parameters passed into the fire method.
Parameters:
  path - the TreePath indicating the node that was collapsed
See Also:   EventListenerList



fireTreeExpanded
public void fireTreeExpanded(TreePath path)(Code)
Notify all listeners that have registered interest for notification on this event type. The event instance is lazily created using the parameters passed into the fire method.
Parameters:
  path - the TreePath indicating the node that was expanded
See Also:   EventListenerList



fireTreeExpansionEvent
protected void fireTreeExpansionEvent(TreeExpansionEvent e, boolean expansion)(Code)



fireTreeSelectionEvent
protected void fireTreeSelectionEvent(TreeSelectionEvent e)(Code)



fireTreeWillExpand
public void fireTreeWillExpand(TreePath path, boolean expand) throws ExpandVetoException(Code)
Notifies all listeners that have registered interest for notification on this event type. The event instance is lazily created using the path parameter.
Parameters:
  path - the TreePath indicating the node that wasexpanded
See Also:   EventListenerList



fireViewportChanged
protected void fireViewportChanged(boolean horizontal)(Code)
Notifies all listeners that have registered interest for notification on changes to this scrollable's viewport in the specified direction.
See Also:   EventListenerList



getCellRenderer
public STreeCellRenderer getCellRenderer()(Code)



getCellRendererPane
public SCellRendererPane getCellRendererPane()(Code)



getDefaultTreeModel
protected static TreeModel getDefaultTreeModel()(Code)
Creates and returns a sample TreeModel. Used primarily for beanbuilders. to show something interesting. the default TreeModel



getExpansionParameter
public String getExpansionParameter(int row, boolean absolute)(Code)
This is for plafs only! With this parameter the tree expands the given node



getLastSelectedPathComponent
public Object getLastSelectedPathComponent()(Code)
Returns the last path component in the first node of the current selection. the last Object in the first selected node's TreePath,or null if nothing is selected
See Also:   TreePath.getLastPathComponent



getLeadSelectionPath
public TreePath getLeadSelectionPath()(Code)
Returns the path of the last node added to the selection. the TreePath of the last node added to the selection.



getLeadSelectionRow
public int getLeadSelectionRow()(Code)
Returns the row index of the last node added to the selection. an int giving the row index of the last node added to theselection, where 0 is the first row in the display



getMaxSelectionRow
public int getMaxSelectionRow()(Code)
Gets the last selected row. an int designating the last selected row, where 0 is thefirst row in the display



getMaximumExpandedDepth
public int getMaximumExpandedDepth()(Code)



getMinSelectionRow
public int getMinSelectionRow()(Code)
Gets the first selected row. an int designating the first selected row, where 0 is thefirst row in the display



getModel
public TreeModel getModel()(Code)



getNodeIndentDepth
public int getNodeIndentDepth()(Code)



getPathBetweenRows
protected TreePath[] getPathBetweenRows(int index0, int index1)(Code)
Returns JTreePath instances representing the path between index0 and index1 (including index1).
Parameters:
  index0 - an int specifying a display row, where 0 is thefirst row in the display
Parameters:
  index1 - an int specifying a second display row an array of TreePath objects, one for each node betweenindex0 and index1, inclusive



getPathForAbsoluteRow
public TreePath getPathForAbsoluteRow(int row)(Code)



getPathForRow
public TreePath getPathForRow(int row)(Code)



getRowCount
public int getRowCount()(Code)



getRowForLocation
public int getRowForLocation(SPoint point)(Code)
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. The tree row index



getRowForPath
public int getRowForPath(TreePath path)(Code)



getScrollableViewportSize
public Rectangle getScrollableViewportSize()(Code)
The size of the component in respect to scrollable units.



getSelectionCount
public int getSelectionCount()(Code)
Returns the number of nodes selected. the number of nodes selected



getSelectionModel
public STreeSelectionModel getSelectionModel()(Code)
Returns the model for selections. This should always return a non-null value. If you don't want to allow anything to be selected set the selection model to null, which forces an empty selection model to be used.
See Also:   STree.setSelectionModel



getSelectionParameter
public String getSelectionParameter(int row, boolean absolute)(Code)
This is for plafs only! With this parameter the tree selects the given node



getSelectionPath
public TreePath getSelectionPath()(Code)
Returns the path to the first selected node. the TreePath for the first selected node, or null ifnothing is currently selected



getSelectionPaths
public TreePath[] getSelectionPaths()(Code)
Returns the paths of all selected values. an array of TreePath objects indicating the selectednodes, or null if nothing is currently selected.



getSelectionRows
public int[] getSelectionRows()(Code)
Returns all of the currently selected rows. an array of ints that identifies all currently selected rowswhere 0 is the first row in the display



getViewportSize
public Rectangle getViewportSize()(Code)
Returns the actual visible part of a scrollable.



isEpochCheckEnabled
public boolean isEpochCheckEnabled()(Code)

See Also:   LowLevelEventListener.isEpochCheckEnabled
See Also:   



isExpanded
public boolean isExpanded(TreePath path)(Code)



isPathSelected
public boolean isPathSelected(TreePath path)(Code)
Returns true if the item identified by the path is currently selected.
Parameters:
  path - a TreePath identifying a node true if the node is selected



isRootVisible
public boolean isRootVisible()(Code)



isRowSelected
public boolean isRowSelected(int row)(Code)
Returns true if the node identitifed by row is selected.
Parameters:
  row - an int specifying a display row, where 0 is the firstrow in the display true if the node is selected



isVisible
public boolean isVisible(TreePath path)(Code)



processLowLevelEvent
public void processLowLevelEvent(String action, String[] values)(Code)



processRequestedExpansionPaths
protected void processRequestedExpansionPaths()(Code)



removeMouseListener
final public void removeMouseListener(SMouseListener l)(Code)
Removes the specified mouse listener so that it no longer receives mouse events from this component. This method performs no function, nor does it throw an exception, if the listener specified by the argument was not previously added to this component. If l is null, no exception is thrown and no action is performed.
Parameters:
  l - the component listener.
See Also:   org.wings.event.SMouseEvent
See Also:   org.wings.event.SMouseListener
See Also:   org.wings.STable.addMouseListener



removeSelectionInterval
public void removeSelectionInterval(int index0, int index1)(Code)
Removes the nodes between index0 and index1, inclusive, from the selection.
Parameters:
  index0 - an int specifying a display row, where 0 is thefirst row in the display
Parameters:
  index1 - an int specifying a second display row



removeSelectionPath
public void removeSelectionPath(TreePath path)(Code)
Removes the node identified by the specified path from the current selection.
Parameters:
  path - the TreePath identifying a node



removeSelectionPaths
public void removeSelectionPaths(TreePath[] paths)(Code)
Removes the nodes identified by the specified paths from the current selection.
Parameters:
  paths - an array of TreePath objects that specifies the nodesto remove



removeSelectionRow
public void removeSelectionRow(int row)(Code)
Removes the path at the index row from the current selection.
Parameters:
  row - the row identifying the node to remove



removeSelectionRows
public void removeSelectionRows(int[] rows)(Code)



removeTreeExpansionListener
public void removeTreeExpansionListener(TreeExpansionListener tel)(Code)



removeTreeSelectionListener
public void removeTreeSelectionListener(TreeSelectionListener tsl)(Code)



removeTreeWillExpandListener
public void removeTreeWillExpandListener(TreeWillExpandListener tel)(Code)
Removes a listener for TreeWillExpand events.
Parameters:
  tel - the TreeWillExpandListener to remove



removeViewportChangeListener
public void removeViewportChangeListener(SViewportChangeListener l)(Code)
Removes the given SViewportChangeListener from the scrollable.
Parameters:
  l - the listener to be removed



rowAtPoint
public int rowAtPoint(SPoint point)(Code)
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. The row index



setCG
public void setCG(TreeCG cg)(Code)



setCellRenderer
public void setCellRenderer(STreeCellRenderer x)(Code)



setEpochCheckEnabled
public void setEpochCheckEnabled(boolean epochCheckEnabled)(Code)

See Also:   LowLevelEventListener.isEpochCheckEnabled
See Also:   



setModel
public void setModel(TreeModel m)(Code)



setNodeIndentDepth
public void setNodeIndentDepth(int depth)(Code)
Set the indent depth in pixel between two nodes of a different level. Note: only positive values apply, negative values are cut off at 0.
Parameters:
  depth - the depth to set



setParent
public void setParent(SContainer p)(Code)



setParentFrame
protected void setParentFrame(SFrame f)(Code)



setRootVisible
public void setRootVisible(boolean rootVisible)(Code)



setSelectionModel
public void setSelectionModel(STreeSelectionModel selectionModel)(Code)
Sets the tree's selection model. When a null value is specified an empty electionModel is used, which does not allow selections.
Parameters:
  selectionModel - the TreeSelectionModel to use, or null todisable selections
See Also:   TreeSelectionModel



setSelectionPath
public void setSelectionPath(TreePath path)(Code)
Selects the node identified by the specified path. If any component of the path is hidden (under a collapsed node), it is exposed (made viewable).
Parameters:
  path - the TreePath specifying the node to select



setSelectionPaths
public void setSelectionPaths(TreePath[] paths)(Code)
Selects the nodes identified by the specified array of paths. If any component in any of the paths is hidden (under a collapsed node), it is exposed (made viewable).
Parameters:
  paths - an array of TreePath objects that specifies the nodesto select



setSelectionRow
public void setSelectionRow(int row)(Code)
Selects the node at the specified row in the display.
Parameters:
  row - the row to select, where 0 is the first row inthe display



setSelectionRows
public void setSelectionRows(int[] rows)(Code)
Selects the nodes corresponding to each of the specified rows in the display.
Parameters:
  rows - an array of ints specifying the rows to select,where 0 indicates the first row in the display



setViewportSize
public void setViewportSize(Rectangle newViewport)(Code)
Sets the actual visible part of a scrollable.



togglePathExpansion
protected void togglePathExpansion(TreePath path) throws ExpandVetoException(Code)



togglePathSelection
protected void togglePathSelection(TreePath path)(Code)



Fields inherited from org.wings.SComponent
final public static int DONE_RENDERING(Code)(Java Doc)
final public static Selector SELECTOR_ALL(Code)(Java Doc)
final public static int START_RENDERING(Code)(Java Doc)
final public static int WHEN_FOCUSED_OR_ANCESTOR_OF_FOCUSED_COMPONENT(Code)(Java Doc)
final public static int WHEN_IN_FOCUSED_FRAME(Code)(Java Doc)
protected Map<Selector, Style> dynamicStyles(Code)(Java Doc)
protected boolean enabled(Code)(Java Doc)
protected boolean visible(Code)(Java Doc)

Methods inherited from org.wings.SComponent
final public void addComponentListener(SComponentListener l)(Code)(Java Doc)
public void addDynamicStyle(Style style)(Code)(Java Doc)
final protected void addEventListener(Class<T> type, T listener)(Code)(Java Doc)
public void addNotify()(Code)(Java Doc)
final public void addParentFrameListener(SParentFrameListener l)(Code)(Java Doc)
final public void addRenderListener(SRenderListener renderListener)(Code)(Java Doc)
final public void addScriptListener(ScriptListener listener)(Code)(Java Doc)
public void addStyle(String additionalCssClassName)(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
protected void fireComponentChangeEvent(SComponentEvent aEvent)(Code)(Java Doc)
public void fireFinalEvents()(Code)(Java Doc)
protected void fireKeyEvents()(Code)(Java Doc)
final public void fireRenderEvent(int type)(Code)(Java Doc)
public ActionMap getActionMap()(Code)(Java Doc)
public Color getBackground()(Code)(Java Doc)
public SBorder getBorder()(Code)(Java Doc)
public ComponentCG getCG()(Code)(Java Doc)
final public Object getClientProperty(Object key)(Code)(Java Doc)
public SPopupMenu getComponentPopupMenu()(Code)(Java Doc)
public Style getDynamicStyle(Selector selector)(Code)(Java Doc)
public Collection getDynamicStyles()(Code)(Java Doc)
public int getFocusTraversalIndex()(Code)(Java Doc)
public SFont getFont()(Code)(Java Doc)
public Color getForeground()(Code)(Java Doc)
public int getHorizontalAlignment()(Code)(Java Doc)
public InputMap getInputMap()(Code)(Java Doc)
public InputMap getInputMap(int condition)(Code)(Java Doc)
final protected int getListenerCount(Class type)(Code)(Java Doc)
final protected Object[] getListenerList()(Code)(Java Doc)
final public EventListener[] getListeners(Class<? extends EventListener> type)(Code)(Java Doc)
public String getLowLevelEventId()(Code)(Java Doc)
final public String getName()(Code)(Java Doc)
final public SContainer getParent()(Code)(Java Doc)
public SFrame getParentFrame()(Code)(Java Doc)
public SDimension getPreferredSize()(Code)(Java Doc)
public RequestURL getRequestURL()(Code)(Java Doc)
public boolean getResidesInForm()(Code)(Java Doc)
public List<ScriptListener> getScriptListenerList()(Code)(Java Doc)
public ScriptListener[] getScriptListeners()(Code)(Java Doc)
final public Session getSession()(Code)(Java Doc)
public boolean getShowAsFormComponent()(Code)(Java Doc)
public String getStyle()(Code)(Java Doc)
public String getToolTipText()(Code)(Java Doc)
public int getVerticalAlignment()(Code)(Java Doc)
public void invite(ComponentVisitor visitor) throws Exception(Code)(Java Doc)
protected static boolean isDifferent(Object oldObject, Object newObject)(Code)(Java Doc)
public boolean isEnabled()(Code)(Java Doc)
public boolean isFocusOwner()(Code)(Java Doc)
public boolean isRecursivelyVisible()(Code)(Java Doc)
public boolean isReloadForced()(Code)(Java Doc)
protected boolean isUpdatePossible()(Code)(Java Doc)
public boolean isVisible()(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
protected void processComponentEvent(SComponentListener listener, SComponentEvent e)(Code)(Java Doc)
protected boolean processKeyEvents(String[] values)(Code)(Java Doc)
protected void processLowLevelEvent(String name, String[] values)(Code)(Java Doc)
final public void putClientProperty(Object key, Object value)(Code)(Java Doc)
final void register()(Code)(Java Doc)
public void reload()(Code)(Java Doc)
final protected void reloadIfChange(Object oldVal, Object newVal)(Code)(Java Doc)
final protected void reloadIfChange(int oldVal, int newVal)(Code)(Java Doc)
final protected void reloadIfChange(boolean oldVal, boolean newVal)(Code)(Java Doc)
final protected void reloadIfChange(byte oldVal, byte newVal)(Code)(Java Doc)
final protected void reloadIfChange(short oldVal, short newVal)(Code)(Java Doc)
final protected void reloadIfChange(long oldVal, long newVal)(Code)(Java Doc)
final protected void reloadIfChange(float oldVal, float newVal)(Code)(Java Doc)
final protected void reloadIfChange(double oldVal, double newVal)(Code)(Java Doc)
final protected void reloadIfChange(char oldVal, char newVal)(Code)(Java Doc)
final public void removeComponentListener(SComponentListener l)(Code)(Java Doc)
public void removeDynamicStyle(Selector selector)(Code)(Java Doc)
final protected void removeEventListener(Class<T> type, T listener)(Code)(Java Doc)
public void removeNotify()(Code)(Java Doc)
final public void removeParentFrameListener(SParentFrameListener l)(Code)(Java Doc)
final public void removeRenderListener(SRenderListener renderListener)(Code)(Java Doc)
final public void removeScriptListener(ScriptListener listener)(Code)(Java Doc)
public void removeStyle(String cssStyleClassName)(Code)(Java Doc)
public void requestFocus()(Code)(Java Doc)
public void scrollRectToVisible(Rectangle aRect)(Code)(Java Doc)
public void setActionMap(ActionMap actionMap)(Code)(Java Doc)
public void setAttribute(String cssPropertyName, String value)(Code)(Java Doc)
public void setAttribute(CSSProperty property, String propertyValue)(Code)(Java Doc)
public void setAttribute(Selector selector, CSSProperty property, String propertyValue)(Code)(Java Doc)
public void setAttribute(Selector selector, CSSProperty property, SIcon icon)(Code)(Java Doc)
public void setAttribute(Selector selector, CSSProperty property, Color color)(Code)(Java Doc)
public void setAttributes(Selector selector, CSSAttributeSet attributes)(Code)(Java Doc)
public void setBackground(Color color)(Code)(Java Doc)
public void setBorder(SBorder border)(Code)(Java Doc)
public void setCG(ComponentCG newCG)(Code)(Java Doc)
public void setComponentPopupMenu(SPopupMenu popupMenu)(Code)(Java Doc)
public void setDynamicStyles(Collection dynamicStyles)(Code)(Java Doc)
public void setEnabled(boolean enabled)(Code)(Java Doc)
public void setFocusTraversalIndex(int index)(Code)(Java Doc)
public void setFont(SFont font)(Code)(Java Doc)
public void setForeground(Color color)(Code)(Java Doc)
public void setHorizontalAlignment(int alignment)(Code)(Java Doc)
public void setInputMap(InputMap inputMap)(Code)(Java Doc)
public void setInputMap(int condition, InputMap inputMap)(Code)(Java Doc)
public void setName(String uniqueName)(Code)(Java Doc)
public void setNameRaw(String uncheckedName)(Code)(Java Doc)
public void setParent(SContainer parent)(Code)(Java Doc)
protected void setParentFrame(SFrame parentFrame)(Code)(Java Doc)
public void setPreferredSize(SDimension preferredSize)(Code)(Java Doc)
public void setReloadForced(boolean forced)(Code)(Java Doc)
public void setShowAsFormComponent(boolean showAsFormComponent)(Code)(Java Doc)
public void setStyle(String cssClassName)(Code)(Java Doc)
public void setToolTipText(String t)(Code)(Java Doc)
public void setVerticalAlignment(int alignment)(Code)(Java Doc)
public void setVisible(boolean visible)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final void unregister()(Code)(Java Doc)
public void update(Update update)(Code)(Java Doc)
public void updateCG()(Code)(Java Doc)
public void write(Device s) throws IOException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.