|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JSplitPane | +--com.klg.jclass.swing.JCTreeExplorer
A component that gives a visual representation of the hierarchical
nature of its data, presenting a tree view in its left-hand pane and
a table view in its right-hand pane.
See
The Java 2 API
to compare this component to JTree
and JTable
.
Nested Class Summary | |
protected class |
JCTreeExplorer.ClickListener
|
protected class |
JCTreeExplorer.FirstColumnEditor
Class that wraps the tree editor to use it to edit the first column of the table. |
protected class |
JCTreeExplorer.FirstColumnRenderer
Class that wraps the tree renderer to use it to render the first column of the table. |
protected class |
JCTreeExplorer.SelectionListener
Class that listens for selections on the tree component and changes the source of the TableModel . |
protected class |
JCTreeExplorer.TreeEditor
|
protected class |
JCTreeExplorer.TreeIconRenderTable
Inner class that extends JCSortableTable and adds a modification
of the render/editors, which allows overiding of column 1 to store the icon
render/editor functionality. |
protected class |
JCTreeExplorer.TreeIconRenderTree
PENDING Inner class that extends JTree and adds modification of
the JTree ; this allows overides to the default render and
editor to enable "plug-in" of a JCTreeIconRenderer to the
JTree . |
protected class |
JCTreeExplorer.TreeRenderer
|
protected class |
JCTreeExplorer.WhiteOutContainer
Class that wraps a component and makes sure that it draws everything. |
Nested classes inherited from class javax.swing.JSplitPane |
JSplitPane.AccessibleJSplitPane |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected int |
cellHeight
|
protected Icon |
closedIcon
|
protected TableCellEditor |
firstColumnEditor
|
protected TableCellRenderer |
firstColumnRenderer
|
protected int |
iconGap
|
protected com.klg.jclass.util.treetable.JCTreeIconRenderer |
iconRenderer
|
protected int |
iconWidth
|
protected Icon |
leafIcon
|
protected Icon |
openIcon
|
protected com.klg.jclass.util.swing.JCSortableTable |
table
|
protected Color |
tableBackground
|
protected com.klg.jclass.util.treetable.NodeChildrenTable |
tableModel
|
protected JTree |
tree
|
protected TreeModel |
treeModel
|
protected com.klg.jclass.util.treetable.JCTreeTableModel |
treetableModel
|
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 java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
JCTreeExplorer()
|
|
JCTreeExplorer(com.klg.jclass.util.treetable.JCTreeTableModel treetable_model)
|
|
JCTreeExplorer(com.klg.jclass.util.treetable.JCTreeTableModel treetable_model,
Dimension intercellSpacing)
|
Method Summary | |
String |
getAbout()
Returns vendor information. |
com.klg.jclass.util.treetable.JCTreeTableModel |
getModel()
|
Dimension |
getPreferredSize()
|
TreePath |
getSelectionPath()
Returns the TreePath of the first selected row inside the table
view or, if no rows are selected, the selected node within the tree view. |
TreePath[] |
getSelectionPaths()
Returns the TreePath 's of the selected rows inside the table view. |
JTable |
getTable()
Returns the JTable component used. |
JTree |
getTree()
Returns the JTree component used. |
com.klg.jclass.util.treetable.JCTreeIconRenderer |
getTreeIconRenderer()
Returns the icon renderer being used. |
void |
inferLookAndFeel()
|
protected void |
inferLookAndFeelSetupControls()
|
protected void |
inferLookAndFeelSetVars()
|
void |
setAbout(String s)
Provided for Beans property editors - has no effect. |
void |
setModel(com.klg.jclass.util.treetable.JCTreeTableModel treetable_model)
|
void |
setTreeIconRenderer(com.klg.jclass.util.treetable.JCTreeIconRenderer renderer)
Sets the icon renderer. |
void |
setUI(TableUI ui)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected com.klg.jclass.util.treetable.JCTreeTableModel treetableModel
protected TreeModel treeModel
protected com.klg.jclass.util.treetable.NodeChildrenTable tableModel
protected JTree tree
protected com.klg.jclass.util.swing.JCSortableTable table
protected TableCellRenderer firstColumnRenderer
protected TableCellEditor firstColumnEditor
protected com.klg.jclass.util.treetable.JCTreeIconRenderer iconRenderer
protected Icon openIcon
protected Icon closedIcon
protected Icon leafIcon
protected int iconGap
protected int iconWidth
protected int cellHeight
protected Color tableBackground
Constructor Detail |
public JCTreeExplorer()
public JCTreeExplorer(com.klg.jclass.util.treetable.JCTreeTableModel treetable_model, Dimension intercellSpacing)
public JCTreeExplorer(com.klg.jclass.util.treetable.JCTreeTableModel treetable_model)
Method Detail |
public com.klg.jclass.util.treetable.JCTreeTableModel getModel()
public void setModel(com.klg.jclass.util.treetable.JCTreeTableModel treetable_model)
public Dimension getPreferredSize()
getPreferredSize
in class JComponent
public TreePath getSelectionPath()
TreePath
of the first selected row inside the table
view or, if no rows are selected, the selected node within the tree view.
TreePath
of the first selected row inside the table
view or, if no rows are selected, the selected node within the tree viewpublic TreePath[] getSelectionPaths()
TreePath
's of the selected rows inside the table view.
TreePath
's of the selected rowspublic void setAbout(String s)
s
- public String getAbout()
public JTree getTree()
JTree
component used.
JTree
component usedpublic JTable getTable()
JTable
component used. JCSortableTable
, and you can access the sortable
table functionality with an appropriate cast.
JTable
component usedJCSortableTable
public void inferLookAndFeel()
protected void inferLookAndFeelSetVars()
protected void inferLookAndFeelSetupControls()
public void setUI(TableUI ui)
public void setTreeIconRenderer(com.klg.jclass.util.treetable.JCTreeIconRenderer renderer)
renderer
- public com.klg.jclass.util.treetable.JCTreeIconRenderer getTreeIconRenderer()
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |