|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.limegroup.gnutella.gui.options.panes.AbstractPaneItem
This class provides a skeletal implementation of the PaneItem interface.
It provides the basic implementation for displaying one option within a larger window of options. Each AbstractPaneItem has a titled border and a label describing the option. The label is followed by standardized spacing.
It includes several convenience methods that subclasses may us to simplify panel construction.
Subclasses only need to override the applyOptions() method for storing options to disk.
Field Summary | |
protected static OptionsMediator |
MEDIATOR
Handle to the mediator class for use of constants and for necessary notifications of changes to other classes. |
Constructor Summary | |
protected |
AbstractPaneItem(java.lang.String key)
This sole constructor overrides the the public accessibility of the default constructor and is usually called implicitly. |
Method Summary | |
protected void |
add(java.awt.Component comp)
Adds the specified Component to the enclosed Container instance. |
abstract void |
applyOptions()
Implements the PaneItem interface. |
java.awt.Container |
getContainer()
Implements the PaneItem interface. |
protected java.awt.Component |
getHorizontalSeparator()
Returns a Component standardly sized for horizontal separators. |
protected java.awt.Component |
getVerticalSeparator()
Returns a Component standardly sized for vertical separators. |
abstract void |
initOptions()
Implements the PaneItem interface. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final OptionsMediator MEDIATOR
Constructor Detail |
protected AbstractPaneItem(java.lang.String key)
key
- the key for obtaining the locale-specific values for
displayed stringsMethod Detail |
public java.awt.Container getContainer()
Returns the Container for this set of options.
getContainer
in interface PaneItem
public abstract void initOptions()
Sets the options for the fields in this PaneItem when the window is shown. Subclasses must define this method to set their initial options when the options window is shown.
initOptions
in interface PaneItem
public abstract void applyOptions() throws java.io.IOException
Applies the options currently set in this PaneItem.
Subclasses must define this method to apply their specific options.
applyOptions
in interface PaneItem
java.io.IOException
- if the options could not be fully appliedprotected final void add(java.awt.Component comp)
comp
- the Component to addprotected final java.awt.Component getHorizontalSeparator()
protected final java.awt.Component getVerticalSeparator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |