|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.uif.AbstractView
com.jgoodies.skeleton.view.editor.AbstractEditor
com.jgoodies.skeleton.view.editor.FlangeEditor
public final class FlangeEditor
An implementation of Editor
that displays instances of
class Flange
.
This class uses a FormLayout
to lay out the panel and a
DefaultFormBuilder
to add components. Columns are specified
before the panel is filled with components, rows are added
dynamically. The builder is used to update a cursor, to add rows dynamically,
and to fill components. The builder's convenience methods are used to add
labels and separators.
This panel building style is recommended unless you have a more
powerful builder or don't want to add rows dynamically.
See the SegmentEditor
for an implementation that specifies
rows before the panel is filled with components. For learning purposes
you may check out the other Editor
implementations too.
Flange
,
DescriptionEditor
,
ShaftEditor
,
SegmentEditor
Constructor Summary | |
---|---|
FlangeEditor()
Constructs a FlangeEditor . |
Method Summary | |
---|---|
protected JComponent |
buildPanel()
Builds and returns this editor's panel. |
void |
updateModel(Object model)
Writes the editor contents to the given model. |
void |
updateView(Object model)
Reads the editor contents from the given model. |
Methods inherited from class com.jgoodies.skeleton.view.editor.AbstractEditor |
---|
activate, deactivate, getIcon, getTitle, getToolBar, setTitleSuffix |
Methods inherited from class com.jgoodies.uif.AbstractView |
---|
getPanel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jgoodies.skeleton.view.editor.Editor |
---|
getPanel |
Constructor Detail |
---|
public FlangeEditor()
FlangeEditor
.
Method Detail |
---|
public void updateModel(Object model)
model
- the object to write this view's values topublic void updateView(Object model)
model
- the object to read the values fromprotected JComponent buildPanel()
DefaultFormBuilder
.The builder combines a step that is done again and again: add a label, proceed to the next data column and add a component.
buildPanel
in class com.jgoodies.uif.AbstractView
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |