public class LNumericSetting extends LUserSetting<java.lang.Integer>
LUserSetting.UpdateCaretHandler, LUserSetting.UpdateChangeHandler, LUserSetting.UpdateHandler
LHelpComponent.HelpActionHandler, LHelpComponent.HelpFocusHandler, LHelpComponent.HelpMouseHandler
Modifier and Type | Field and Description |
---|---|
protected LSpinner |
setting |
titleLabel
followPos, help, helpPrefix, helpYoffset, save, saveTie, title
Constructor and Description |
---|
LNumericSetting(java.lang.String text,
java.awt.Font font,
java.awt.Color c,
int min,
java.lang.Integer max,
int step) |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener c) |
void |
addFocusListener(java.awt.event.FocusListener arg0) |
protected void |
addHelpHandler(boolean hoverListener)
Adds a help handler to each GUI component that should trigger the help
panel to update.
|
protected void |
addUpdateHandlers()
Abstract function that should add appropriate update handlers to the
appropriate components.
|
void |
clearHighlight()
Abstract function that should clear any GUI components of their highlighted state.
|
java.lang.Integer |
getValue() |
void |
highlightChanged()
Abstract function that should change some GUI component to symbolize
it is highlighted.
|
void |
linkTo(java.lang.Enum s,
LSaveFile save,
LHelpPanel help_,
boolean hoverListener)
Sets the target help panel, and sets the help info to the setting's
helpInfo in the savefile.
|
boolean |
revertTo(java.util.Map<java.lang.Enum,Setting> m)
Reverts the GUI component to to SaveFile instance specified.
|
void |
setColor(java.awt.Color c) |
void |
setLocation(int x,
int y) |
void |
setLocation(java.awt.Point p) |
void |
setValue(double d) |
void |
setValue(int i) |
void |
setValue(java.lang.String s) |
void |
tie(java.lang.Enum s,
LSaveFile save_)
Ties this GUI component to a setting in a savefile.
|
void |
tie(java.lang.Enum s,
LSaveFile save_,
LHelpPanel help_,
boolean hoverHandler)
Ties this GUI component to a setting in a savefile.
|
getName, isTied, update
addHelpPrefix, getHelp, hasHelp, isFollowingPosition, setFollowPosition, updateHelp
Add, centerIn, centerOn, centerOn, getBottom, getCenter, getRight, putUnder
add, add, add, add, add, addContainerListener, addImpl, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, isValidateRoot, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, validate, validateTree
action, add, addComponentListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected LSpinner setting
public LNumericSetting(java.lang.String text, java.awt.Font font, java.awt.Color c, int min, java.lang.Integer max, int step)
text
- font
- c
- min
- max
- step
- public void setValue(java.lang.String s)
s
- public void setValue(int i)
i
- public void setValue(double d)
d
- public final void tie(java.lang.Enum s, LSaveFile save_, LHelpPanel help_, boolean hoverHandler)
LUserSetting
tie
in class LUserSetting<java.lang.Integer>
s
- Setting to tie tosave_
- SaveFile to tie tohelp_
- HelpPanel to updatehoverHandler
- Whether to update help panel on hoverpublic void linkTo(java.lang.Enum s, LSaveFile save, LHelpPanel help_, boolean hoverListener)
LHelpComponent
linkTo
in class LHelpComponent
s
- save
- help_
- hoverListener
- public void tie(java.lang.Enum s, LSaveFile save_)
LUserSetting
tie
in class LUserSetting<java.lang.Integer>
s
- Setting to tie tosave_
- SaveFile to tie topublic java.lang.Integer getValue()
getValue
in class LUserSetting<java.lang.Integer>
public void addFocusListener(java.awt.event.FocusListener arg0)
addFocusListener
in class java.awt.Component
public void addChangeListener(javax.swing.event.ChangeListener c)
c
- public void setColor(java.awt.Color c)
c
- public void highlightChanged()
LUserSetting
highlightChanged
in class LUserSetting<java.lang.Integer>
public void clearHighlight()
LUserSetting
clearHighlight
in class LUserSetting<java.lang.Integer>
protected void addUpdateHandlers()
LUserSetting
addUpdateHandlers
in class LUserSetting<java.lang.Integer>
public boolean revertTo(java.util.Map<java.lang.Enum,Setting> m)
LUserSetting
revertTo
in class LUserSetting<java.lang.Integer>
protected void addHelpHandler(boolean hoverListener)
LHelpComponent
addHelpHandler
in class LHelpComponent
hoverListener
- public final void setLocation(int x, int y)
setLocation
in class java.awt.Component
public final void setLocation(java.awt.Point p)
setLocation
in class java.awt.Component