|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.uif_lite.AbstractView
com.jgoodies.skeleton.view.editor.AbstractEditor
com.jgoodies.skeleton.view.editor.SegmentEditor
public final class SegmentEditor
An implementation of Editor
that displays instances of
Segment
.
This class uses a FormLayout
to lay out the panel
and a DefaultFormBuilder
to add components.
Columns and rows are specified before the panel is filled with components.
The builder is used to update a cursor and to fill components.
The builder's convenience methods are used to add labels and separators.
This panel building style is intended for learning purposes only.
The recommended style is demonstrated in the FlangeEditor
.
For learning purposes you may check out the other Editor
implementations too.
Segment
,
DescriptionEditor
,
ShaftEditor
,
FlangeEditor
Constructor Summary | |
---|---|
SegmentEditor()
Constructs a SegmentEditor . |
Method Summary | |
---|---|
protected JComponent |
buildPanel()
Builds and returns this editor's panel. |
void |
updateModel(Object model)
Writes view contents to the given model. |
void |
updateView(Object model)
Reads view 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_lite.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 SegmentEditor()
SegmentEditor
.
Method Detail |
---|
public void updateModel(Object model)
model
- the object to write this editor's value topublic void updateView(Object model)
model
- the object to read the values fromprotected JComponent buildPanel()
buildPanel
in class com.jgoodies.uif_lite.AbstractView
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |