com.alee.laf.spinner
Class WebSpinnerUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.SpinnerUI
          extended by javax.swing.plaf.basic.BasicSpinnerUI
              extended by com.alee.laf.spinner.WebSpinnerUI
All Implemented Interfaces:
ShapeProvider, BorderMethods, SwingMethods

public class WebSpinnerUI
extends javax.swing.plaf.basic.BasicSpinnerUI
implements ShapeProvider, BorderMethods

User: mgarin Date: 25.07.11 Time: 17:10


Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicSpinnerUI
spinner
 
Constructor Summary
WebSpinnerUI()
           
 
Method Summary
protected  javax.swing.JComponent createEditor()
           
protected  java.awt.Component createNextButton()
           
protected  java.awt.Component createPreviousButton()
           
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
 int getRound()
           
 int getShadeWidth()
           
static void installFieldUI(javax.swing.JFormattedTextField field, javax.swing.JSpinner spinner)
           
 void installUI(javax.swing.JComponent c)
           
 boolean isDrawBorder()
           
 boolean isDrawFocus()
           
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
           
 java.awt.Shape provideShape()
          Returns component shape.
 void setDrawBorder(boolean drawBorder)
           
 void setDrawFocus(boolean drawFocus)
           
 void setRound(int round)
           
 void setShadeWidth(int shadeWidth)
           
 void updateBorder()
          Updates custom WebLaF border.
 
Methods inherited from class javax.swing.plaf.basic.BasicSpinnerUI
createLayout, createPropertyChangeListener, getBaseline, getBaselineResizeBehavior, installDefaults, installKeyboardActions, installListeners, installNextButtonListeners, installPreviousButtonListeners, replaceEditor, uninstallDefaults, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebSpinnerUI

public WebSpinnerUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

installUI

public void installUI(javax.swing.JComponent c)
Overrides:
installUI in class javax.swing.plaf.basic.BasicSpinnerUI

provideShape

public java.awt.Shape provideShape()
Description copied from interface: ShapeProvider
Returns component shape.

Specified by:
provideShape in interface ShapeProvider
Returns:
component shape

updateBorder

public void updateBorder()
Description copied from interface: BorderMethods
Updates custom WebLaF border.

Specified by:
updateBorder in interface BorderMethods

getShadeWidth

public int getShadeWidth()

setShadeWidth

public void setShadeWidth(int shadeWidth)

getRound

public int getRound()

setRound

public void setRound(int round)

isDrawBorder

public boolean isDrawBorder()

setDrawBorder

public void setDrawBorder(boolean drawBorder)

isDrawFocus

public boolean isDrawFocus()

setDrawFocus

public void setDrawFocus(boolean drawFocus)

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Overrides:
paint in class javax.swing.plaf.ComponentUI

createNextButton

protected java.awt.Component createNextButton()
Overrides:
createNextButton in class javax.swing.plaf.basic.BasicSpinnerUI

createPreviousButton

protected java.awt.Component createPreviousButton()
Overrides:
createPreviousButton in class javax.swing.plaf.basic.BasicSpinnerUI

createEditor

protected javax.swing.JComponent createEditor()
Overrides:
createEditor in class javax.swing.plaf.basic.BasicSpinnerUI

installFieldUI

public static void installFieldUI(javax.swing.JFormattedTextField field,
                                  javax.swing.JSpinner spinner)