|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.alchemist.configbuilder.AbstractConfigElementEditor
public abstract class AbstractConfigElementEditor
A ConfigElementEditor implementation with customizable
editor component.
The main editor component is a JPanel instance. The layout used by main
editor component is defined in getMainLayout().
Component creation is done in addComponents().
To perform custom initialization, override initialize() method.
| Field Summary | |
|---|---|
protected ConfigElement |
element
the element being edited |
protected javax.swing.JPanel |
mainPanel
the main editor component |
| Constructor Summary | |
|---|---|
AbstractConfigElementEditor()
|
|
| Method Summary | |
|---|---|
protected abstract void |
addComponents()
Creates and adds components for mainPanel |
java.awt.Component |
getEditorComponent(ConfigElement value)
Sets an initial value for the editor. |
ConfigElement |
getEditorValue()
Returns the ConfigElement contained in the editor |
protected abstract java.awt.LayoutManager |
getMainLayout()
Returns a LayoutManager instance for mainPanel |
protected javax.swing.JPanel |
getMainPanel()
Creates a mainPanel instance (if not initialized)
sets layout, and calls addComponents |
protected javax.swing.JLabel |
getTitle(java.lang.String text)
Returns a customized JLabel for title |
protected void |
initialize()
Initializes and sets editor components to represent element |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.swing.JPanel mainPanel
protected ConfigElement element
| Constructor Detail |
|---|
public AbstractConfigElementEditor()
| Method Detail |
|---|
protected javax.swing.JLabel getTitle(java.lang.String text)
JLabel for title
text - is the title text
JLabelpublic java.awt.Component getEditorComponent(ConfigElement value)
ConfigElementEditorvalue for the editor.
Returns the component that should be added to the client's
Component hierarchy. Once installed in the client's
hierarchy this component will then be able to draw and receive
user input.
getEditorComponent in interface ConfigElementEditorvalue - is the initial value being set
public ConfigElement getEditorValue()
ConfigElementEditorConfigElement contained in the editor
getEditorValue in interface ConfigElementEditorConfigElement contained in the editorprotected void initialize()
element
protected abstract java.awt.LayoutManager getMainLayout()
LayoutManager instance for mainPanel
LayoutManager instance for mainPanelprotected javax.swing.JPanel getMainPanel()
mainPanel instance (if not initialized)
sets layout, and calls addComponents
mainPanelgetMainLayout(),
addComponents()protected abstract void addComponents()
mainPanel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||