T
- public abstract class LUserSetting<T> extends LHelpComponent
Modifier and Type | Class and Description |
---|---|
class |
LUserSetting.UpdateCaretHandler
Handler that will update the savefile to the GUI's value
|
class |
LUserSetting.UpdateChangeHandler
Handler that will update the savefile to the GUI's value
|
class |
LUserSetting.UpdateHandler
Handler that will update the savefile to the GUI's value
|
LHelpComponent.HelpActionHandler, LHelpComponent.HelpFocusHandler, LHelpComponent.HelpMouseHandler
Modifier and Type | Field and Description |
---|---|
protected LLabel |
titleLabel |
followPos, help, helpPrefix, helpYoffset, save, saveTie, title
Constructor and Description |
---|
LUserSetting(java.lang.String text)
Creates a user setting component that doesn't use the label.
|
LUserSetting(java.lang.String text,
java.awt.Font label,
java.awt.Color shade)
Creates a user setting component that uses the label.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addUpdateHandlers()
Abstract function that should add appropriate update handlers to the
appropriate components.
|
abstract void |
clearHighlight()
Abstract function that should clear any GUI components of their highlighted state.
|
java.lang.String |
getName() |
abstract T |
getValue() |
abstract void |
highlightChanged()
Abstract function that should change some GUI component to symbolize
it is highlighted.
|
java.lang.Boolean |
isTied() |
abstract boolean |
revertTo(java.util.Map<java.lang.Enum,Setting> m)
Reverts the GUI component to to SaveFile instance specified.
|
void |
tie(java.lang.Enum setting,
LSaveFile saveFile)
Ties this GUI component to a setting in a savefile.
|
void |
tie(java.lang.Enum setting,
LSaveFile saveFile,
LHelpPanel help_,
boolean hoverListener)
Ties this GUI component to a setting in a savefile.
|
void |
update()
Updates the savefile to the GUI's value.
|
addHelpHandler, addHelpPrefix, getHelp, hasHelp, isFollowingPosition, linkTo, 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, addFocusListener, 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, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected LLabel titleLabel
public LUserSetting(java.lang.String text)
text
- public LUserSetting(java.lang.String text, java.awt.Font label, java.awt.Color shade)
text
- label
- shade
- public void tie(java.lang.Enum setting, LSaveFile saveFile, LHelpPanel help_, boolean hoverListener)
setting
- Setting to tie tosaveFile
- SaveFile to tie tohelp_
- HelpPanel to updatehoverListener
- Whether to update help panel on hoverpublic void tie(java.lang.Enum setting, LSaveFile saveFile)
setting
- Setting to tie tosaveFile
- SaveFile to tie toprotected abstract void addUpdateHandlers()
public abstract boolean revertTo(java.util.Map<java.lang.Enum,Setting> m)
m
- public java.lang.Boolean isTied()
public abstract T getValue()
public void update()
public abstract void highlightChanged()
public abstract void clearHighlight()
public java.lang.String getName()
getName
in class java.awt.Component