public class SubstanceSpinnerUI extends BasicSpinnerUI
| Modifier and Type | Class | Description |
|---|---|---|
protected class |
SubstanceSpinnerUI.SpinnerLayoutManager |
Layout manager for the spinner.
|
| Modifier and Type | Field | Description |
|---|---|---|
protected SubstanceSpinnerButton |
nextButton |
The next (increment) button.
|
protected SubstanceSpinnerButton |
prevButton |
The previous (decrement) button.
|
protected PropertyChangeListener |
substancePropertyChangeListener |
Tracks changes to editor, removing the border as necessary.
|
spinner| Constructor | Description |
|---|---|
SubstanceSpinnerUI() |
| Modifier and Type | Method | Description |
|---|---|---|
protected LayoutManager |
createLayout() |
|
protected Component |
createNextButton() |
|
protected Component |
createPreviousButton() |
|
static ComponentUI |
createUI(JComponent comp) |
|
Dimension |
getPreferredSize(JComponent c) |
|
protected void |
installDefaults() |
|
protected void |
installListeners() |
|
void |
installUI(JComponent c) |
|
void |
paint(Graphics g,
JComponent c) |
|
protected void |
uninstallListeners() |
|
void |
uninstallUI(JComponent c) |
|
void |
update(Graphics g,
JComponent c) |
createEditor, createPropertyChangeListener, getBaseline, getBaselineResizeBehavior, installKeyboardActions, installNextButtonListeners, installPreviousButtonListeners, replaceEditor, uninstallDefaultscontains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSizeprotected PropertyChangeListener substancePropertyChangeListener
protected SubstanceSpinnerButton nextButton
protected SubstanceSpinnerButton prevButton
public static ComponentUI createUI(JComponent comp)
public void installUI(JComponent c)
installUI in class BasicSpinnerUIpublic void uninstallUI(JComponent c)
uninstallUI in class BasicSpinnerUIprotected Component createNextButton()
createNextButton in class BasicSpinnerUIprotected Component createPreviousButton()
createPreviousButton in class BasicSpinnerUIprotected void installDefaults()
installDefaults in class BasicSpinnerUIprotected void installListeners()
installListeners in class BasicSpinnerUIprotected void uninstallListeners()
uninstallListeners in class BasicSpinnerUIpublic void paint(Graphics g, JComponent c)
paint in class ComponentUIpublic Dimension getPreferredSize(JComponent c)
getPreferredSize in class ComponentUIpublic void update(Graphics g, JComponent c)
update in class ComponentUIprotected LayoutManager createLayout()
createLayout in class BasicSpinnerUI