|
||||||||||
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.preference.AbstractPreferenceDialog<PreferenceTreeModel> bibliothek.extension.gui.dock.preference.PreferenceTreeDialog
public class PreferenceTreeDialog
A simple dialog showing a PreferenceTreeModel
on a PreferenceTreePanel
.
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.BaselineResizeBehavior, 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 | |
---|---|
PreferenceTreeDialog(boolean destroyOnClose)
Creates a new dialog without model. |
|
PreferenceTreeDialog(PreferenceTreeModel model,
boolean destroyOnClose)
Creates a new dialog. |
Method Summary | |
---|---|
protected JComponent |
getContent()
Gets the component which will show the model
of this dialog. |
PreferenceTreePanel |
getPanel()
Access to the PreferenceTreePanel which is shown on this
dialog. |
static void |
openDialog(PreferenceTreeModel model,
Component owner)
Shows a modal dialog on which the user can change the preferences of controller . |
void |
setEditorFactory(Path type,
PreferenceEditorFactory<?> factory)
Sets an editor for some type of values. |
protected void |
setModelForContent(PreferenceTreeModel model)
Informs subclasses that the model has changed and that they might setup the content again. |
Methods inherited from class bibliothek.extension.gui.dock.preference.AbstractPreferenceDialog |
---|
close, destroy, doApply, doCancel, doOk, doReset, getModel, init, isDestroyOnClose, openDialog, setDestroyOnClose, setModel |
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 PreferenceTreeDialog(boolean destroyOnClose)
destroyOnClose
- if set to true
, then AbstractPreferenceDialog.destroy()
is automatically called
if AbstractPreferenceDialog.close()
is called. Clients have to call AbstractPreferenceDialog.destroy()
manually if they are not
using AbstractPreferenceDialog.openDialog(Component, boolean)
.public PreferenceTreeDialog(PreferenceTreeModel model, boolean destroyOnClose)
model
- the model to show on the dialogdestroyOnClose
- if set to true
, then AbstractPreferenceDialog.destroy()
is automatically called
if AbstractPreferenceDialog.close()
is called. Clients have to call AbstractPreferenceDialog.destroy()
manually if they are not
using AbstractPreferenceDialog.openDialog(Component, boolean)
.Method Detail |
---|
public static void openDialog(PreferenceTreeModel model, Component owner)
controller
. This method will call PreferenceModel.read()
and
PreferenceModel.write()
to reset or to apply the changes of the user.
model
- the model to show on the dialogowner
- the owner of the dialogpublic void setEditorFactory(Path type, PreferenceEditorFactory<?> factory)
type
- the typefactory
- the factory for the new editorsPreferenceTable.setEditorFactory(Path, PreferenceEditorFactory)
public PreferenceTreePanel getPanel()
PreferenceTreePanel
which is shown on this
dialog. Clients should not change the PreferenceTreeModel
of
that panel. But they are allowed to customize the panel, for example
to change the TreeCellRenderer
.
protected JComponent getContent()
AbstractPreferenceDialog
model
of this dialog.
getContent
in class AbstractPreferenceDialog<PreferenceTreeModel>
protected void setModelForContent(PreferenceTreeModel model)
AbstractPreferenceDialog
content
again.
setModelForContent
in class AbstractPreferenceDialog<PreferenceTreeModel>
model
- the new model, can be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |