|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.limegroup.gnutella.gui.statistics.panes.AbstractOptionPaneItem
This class provides a skeletal implementation of the PaneItem interface.
It provides the basic implementation for displaying one statistic within a larger window of statistics. Each AbstractPaneItem has a titled border and a label describing the statistic. 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 applyStatistics() method for storing statistics to disk.
Constructor Summary | |
protected |
AbstractOptionPaneItem(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. |
void |
componentResized(java.awt.event.ComponentEvent e,
java.awt.Component comp)
Notifies the StatisticsPane that the component has been resized. |
java.awt.Container |
getContainer()
Returns the Container for this set of statistics. |
protected java.awt.Component |
getHorizontalSeparator()
Returns a Component standardly sized for horizontal separators. |
javax.swing.JComponent |
getStatsComponent()
Accessor for the component that displays the statistic -- without the label or associated components. |
protected java.awt.Component |
getVerticalSeparator()
Returns a Component standardly sized for vertical separators. |
void |
refresh()
Called when a UI refresh event has occurred. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected AbstractOptionPaneItem(java.lang.String key)
key
- the key for obtaining the locale-specific values for
displayed stringsMethod Detail |
public javax.swing.JComponent getStatsComponent()
PaneItem
getStatsComponent
in interface PaneItem
public java.awt.Container getContainer()
PaneItem
getContainer
in interface PaneItem
protected final void add(java.awt.Component comp)
comp
- the Component to addprotected final java.awt.Component getHorizontalSeparator()
protected final java.awt.Component getVerticalSeparator()
public void refresh()
RefreshListener
refresh
in interface RefreshListener
public void componentResized(java.awt.event.ComponentEvent e, java.awt.Component comp)
PaneItem
componentResized
in interface PaneItem
e
- the ComponentEvent that generated the resizecomp
- the pane Component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |