|
||||||||||
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.JPanel bibliothek.extension.gui.dock.PreferenceTreePanel
public class PreferenceTreePanel
A panel that shows a JTree
and a PreferenceTable
. The tree
is filled by a PreferenceTreeModel
, and the selected node of the
tree is shown in the table.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
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 | |
---|---|
PreferenceTreePanel()
Creates a new panel. |
|
PreferenceTreePanel(PreferenceTreeModel model)
Creates a new panel. |
Method Summary | |
---|---|
void |
addOperation(PreferenceOperation operation)
Adds an operation to this panel. |
PreferenceTreeModel |
getModel()
Gets the model which is shown on this panel. |
Dimension |
getPreferredSize()
|
PreferenceTable |
getTable()
Access to the PreferenceTable which shows the currently
selected PreferenceModel . |
JTree |
getTree()
Access to the JTree which shows the PreferenceTreeModel . |
void |
setEditorFactory(Path type,
PreferenceEditorFactory<?> factory)
Sets an editor for some type. |
void |
setModel(PreferenceTreeModel model)
Sets the model of this panel. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PreferenceTreePanel()
public PreferenceTreePanel(PreferenceTreeModel model)
model
- the contents of this panel, might be null
Method Detail |
---|
public void addOperation(PreferenceOperation operation)
operation
- the new operationPreferenceTable.addOperation(PreferenceOperation)
public void setEditorFactory(Path type, PreferenceEditorFactory<?> factory)
type
- the type for which the editor will be usedfactory
- the factory for new editorsPreferenceTable.setEditorFactory(Path, PreferenceEditorFactory)
public JTree getTree()
JTree
which shows the PreferenceTreeModel
.
Clients should not change the TreeModel
of the tree. But
they can customize the tree, for example by setting a new
TreeCellRenderer
.
public PreferenceTable getTable()
PreferenceTable
which shows the currently
selected PreferenceModel
. Clients should not change the
model of the table. But they can customize the table, for example
by adding a new PreferenceEditorFactory
.
public Dimension getPreferredSize()
getPreferredSize
in class JComponent
public void setModel(PreferenceTreeModel model)
model
- the new model, can be null
public PreferenceTreeModel getModel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |