API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.plaf.basic. BasicSpinnerUI View Source
Author(s)
Hans Muller
Since
1.4
Version
1.28 04/10/06
Serial
Hierarchy
 Object
      ComponentUI
          SpinnerUI
              BasicSpinnerUI
Implements
Subclasses
Description
public class BasicSpinnerUI
  The default Spinner UI delegate.
See also:   
Constructors
public BasicSpinnerUI ()
Methods
Hide/Show inherited methods
public boolean contains (JComponent c, int x, int y) [Inherited From ComponentUI]
  Returns true if the specified x,y location is contained within the look and feel's defined shape of the specified component.
protected JComponent createEditor ()
  This method is called by installUI to get the editor component of the JSpinner.
protected LayoutManager createLayout ()
  Create a LayoutManager that manages the editor, nextButton, and previousButton children of the JSpinner.
protected Component createNextButton ()
  Create a component that will replace the spinner models value with the object returned by spinner.getNextValue.
protected Component createPreviousButton ()
  Create a component that will replace the spinner models value with the object returned by spinner.getPreviousValue.
protected PropertyChangeListener createPropertyChangeListener ()
  Create a PropertyChangeListener that can be added to the JSpinner itself.
publicstatic ComponentUI createUI (JComponent c) [Overrides ComponentUI]
  Returns a new instance of BasicSpinnerUI.
public Accessible getAccessibleChild (JComponent c, int i) [Inherited From ComponentUI]
  Returns the ith Accessible child of the object.
public int getAccessibleChildrenCount (JComponent c) [Inherited From ComponentUI]
  Returns the number of accessible children in the object.
public int getBaseline (JComponent c, int width, int height) [Overrides ComponentUI]
  Returns the baseline.
public BaselineResizeBehavior getBaselineResizeBehavior (JComponent c) [Overrides ComponentUI]
  Returns an enum indicating how the baseline of the component changes as the size changes.
public Dimension getMaximumSize (JComponent c) [Inherited From ComponentUI]
  Returns the specified component's maximum size appropriate for the look and feel.
public Dimension getMinimumSize (JComponent c) [Inherited From ComponentUI]
  Returns the specified component's minimum size appropriate for the look and feel.
public Dimension getPreferredSize (JComponent c) [Inherited From ComponentUI]
  Returns the specified component's preferred size appropriate for the look and feel.
protected void installDefaults ()
  Initialize the JSpinner border, foreground, and background, properties based on the corresponding "Spinner.*" properties from defaults table.
protected void installKeyboardActions ()
  Installs the keyboard Actions onto the JSpinner.
protected void installListeners ()
  Initializes PropertyChangeListener with a shared object that delegates interesting PropertyChangeEvents to protected methods.
protected void installNextButtonListeners (Component c)
  Installs the necessary listeners on the next button, c, to update the JSpinner in response to a user gesture.
protected void installPreviousButtonListeners (Component c)
  Installs the necessary listeners on the previous button, c, to update the JSpinner in response to a user gesture.
public void installUI (JComponent c) [Overrides ComponentUI]
  Calls installDefaults, installListeners, and then adds the components returned by createNextButton, createPreviousButton, and createEditor.
pack-privatestatic void loadActionMap (LazyActionMap map)
public void paint (Graphics g, JComponent c) [Inherited From ComponentUI]
  Paints the specified component appropriate for the look and feel.
protected void replaceEditor (JComponent oldEditor, JComponent newEditor)
  Called by the PropertyChangeListener when the JSpinner editor property changes.
protected void uninstallDefaults ()
  Sets the JSpinner's layout manager to null.
protected void uninstallListeners ()
  Removes the PropertyChangeListener added by installListeners.
public void uninstallUI (JComponent c) [Overrides ComponentUI]
  Calls uninstallDefaults, uninstallListeners, and then removes all of the spinners children.
public void update (Graphics g, JComponent c) [Inherited From ComponentUI]
  Notifies this UI delegate that it's time to paint the specified component.
Fields
Hide/Show inherited fields
protected JSpinner spinner
  The spinner that we're a UI delegate for.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar