|
||||||||||
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
public abstract class AbstractEditor
The abstract superclass of all Editor
implementations.
Constructor Summary | |
---|---|
AbstractEditor(Icon icon)
Constructs an AbstractEditor with the specified icon. |
|
AbstractEditor(Icon icon,
String titlePrefix)
Constructs an AbstractEditor with the specified icon and title prefix. |
|
AbstractEditor(String titlePrefix)
Constructs an AbstractEditor with the specified title prefix. |
Method Summary | |
---|---|
void |
activate()
Activates this editor. |
void |
deactivate()
Deactivates the editor. |
Icon |
getIcon()
Returns this editor's icon. |
String |
getTitle()
Returns this editor's title. |
JToolBar |
getToolBar()
Returns this editor's tool bar. |
protected void |
setTitleSuffix(String newSuffix)
Sets a new title suffix that is used to compose this editor's title. |
Methods inherited from class com.jgoodies.uif.AbstractView |
---|
buildPanel, 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, updateModel, updateView |
Constructor Detail |
---|
public AbstractEditor(Icon icon)
icon
- the icon to be used for this editorpublic AbstractEditor(Icon icon, String titlePrefix)
icon
- the icon to be used for this editortitlePrefix
- the prefix used by this editor, e.g. "Flange"public AbstractEditor(String titlePrefix)
titlePrefix
- the prefix used by this editor, e.g. "Flange"Method Detail |
---|
public Icon getIcon()
getIcon
in interface Editor
Editor.getIcon()
public String getTitle()
getTitle
in interface Editor
public JToolBar getToolBar()
getToolBar
in interface Editor
public void activate()
This implementation assumes that only editors change domain objects. In other words, we can assume that a domain object is unchanged since its last edit. If the domain objects can be changed by third parties, you may need to update the view if an editor becomes active.
Sublcasses may also need to perform additional actions on activation. For example, scroll a list or table to make the current selection visible.
activate
in interface Editor
public void deactivate()
This default implementation does nothing. Subclasses my change the presentation.
deactivate
in interface Editor
protected final void setTitleSuffix(String newSuffix)
#updateView
.
newSuffix
- the suffix to be usedgetTitle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |