|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
bibliothek.extension.gui.dock.PreferenceTable
public class PreferenceTable
A Component that shows the entries of a PreferenceModel, the user
can edit those entries. Each preference is shown in a PreferenceEditor, this
table uses a map of PreferenceEditorFactorys to create them.
| 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 | |
|---|---|
PreferenceTable()
Creates a new table |
|
PreferenceTable(PreferenceModel model)
Creates a new table |
|
| Method Summary | ||
|---|---|---|
void |
addOperation(PreferenceOperation operation)
Adds a new operation at the end of the set of operations. |
|
protected
|
createEditor(Path type)
Creates a new editor for type. |
|
|
getEditorFactory(Path type)
Gets the factory which is responsible to create editors for type-objects. |
|
PreferenceModel |
getModel()
Gets the model that is used on this table. |
|
void |
insertOperation(int index,
PreferenceOperation operation)
Insert an operation at the given index. |
|
boolean |
isReverseOrder()
Tells in which order the operations are shown. |
|
void |
setEditorFactory(Path type,
PreferenceEditorFactory<?> factory)
Sets the factory that should be used to create an editor for some type of object. |
|
void |
setModel(PreferenceModel model)
Changes the model of this table. |
|
void |
setReverseOrder(boolean reverseOrder)
Sets the order in which the operations should be shown. |
|
| 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 PreferenceTable()
public PreferenceTable(PreferenceModel model)
model - the model shown on this table| Method Detail |
|---|
public void setReverseOrder(boolean reverseOrder)
true
which means right to left.
reverseOrder - how to display the operationspublic boolean isReverseOrder()
setReverseOrder(boolean)public void addOperation(PreferenceOperation operation)
operation - a new operation
public void insertOperation(int index,
PreferenceOperation operation)
index - the index of the new operationoperation - the new operationpublic PreferenceModel getModel()
public void setModel(PreferenceModel model)
model - the new model, can be null
public void setEditorFactory(Path type,
PreferenceEditorFactory<?> factory)
type - a path describing the type that will be edited, most
times the path is just the name of some class. There is a set of
standard paths defined in Pathfactory - the new factory or null to delete a factorypublic <V> PreferenceEditorFactory<V> getEditorFactory(Path type)
type-objects.
V - the kind of objects that get editedtype - the kind of objects that get edited
type or nullprotected <V> PreferenceEditor<V> createEditor(Path type)
type.
V - the kind of value that gets editedtype - the kind of value that gets edited
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||