|
|
|||||||||
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
jpicedt.graphic.toolkit.AbstractCustomizer
public abstract class AbstractCustomizer
An abstract superclass that alleviates the burden of creating a customizer panel, by providing a common set of behaviours where storing/retrieving value to/from a Properties object (or any storage class) is concerned. In particular, the hosting panel should provide UI commands to load default values, reload previously stored values, and store value to the approriate stream (choice of which is being left to concrete implementation of related abstract methods).
CustomizerDialog
,
Serialized FormNested 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.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 | |
---|---|
AbstractCustomizer()
Construct a new preferences-panel with BorderLayout as the default layout. |
Method Summary | |
---|---|
protected void |
activated()
called when this component gets activated ; may be used to request focus this implementation does nothing |
void |
componentHidden(ComponentEvent e)
public as an implementation side effect |
void |
componentMoved(ComponentEvent e)
public as an implementation side effect |
void |
componentResized(ComponentEvent e)
public as an implementation side effect |
void |
componentShown(ComponentEvent e)
calls "activated" |
Icon |
getIcon()
Returns the Icon associated with this panel, used e.g. |
String |
getTitle()
Returns the panel title, used e.g. |
String |
getTooltip()
Returns the tooltip string associated with this panel ; default implementation returns an empty string. |
abstract void |
load()
Loads widgets display content, presumably from a "preferences" file or a dedicated storage class |
void |
loadDefault()
Loads widgets display content with a default value, presumably from a "default preferences" file or a dedicated storage class. |
abstract void |
store()
Stores current widgets value, presumably to a file or to a dedicated storage class |
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 AbstractCustomizer()
Method Detail |
---|
public void loadDefault()
public abstract void load()
public abstract void store()
public String getTitle()
public Icon getIcon()
public String getTooltip()
protected void activated()
public void componentHidden(ComponentEvent e)
componentHidden
in interface ComponentListener
public void componentMoved(ComponentEvent e)
componentMoved
in interface ComponentListener
public void componentResized(ComponentEvent e)
componentResized
in interface ComponentListener
public void componentShown(ComponentEvent e)
componentShown
in interface ComponentListener
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |