com.alee.laf.spinner
Class WebSpinnerUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.SpinnerUI
javax.swing.plaf.basic.BasicSpinnerUI
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
Fields inherited from class javax.swing.plaf.basic.BasicSpinnerUI |
spinner |
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 |
WebSpinnerUI
public WebSpinnerUI()
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)