Methods Summary |
---|
protected java.awt.Component | createNextButton()
if (XPStyle.getXP() != null) {
JButton xpButton = new XPStyle.GlyphButton(spinner, Part.SPNP_UP);
Dimension size = UIManager.getDimension("Spinner.arrowButtonSize");
xpButton.setPreferredSize(size);
xpButton.setRequestFocusEnabled(false);
installNextButtonListeners(xpButton);
return xpButton;
}
return super.createNextButton();
|
protected java.awt.Component | createPreviousButton()
if (XPStyle.getXP() != null) {
JButton xpButton = new XPStyle.GlyphButton(spinner, Part.SPNP_DOWN);
Dimension size = UIManager.getDimension("Spinner.arrowButtonSize");
xpButton.setPreferredSize(size);
xpButton.setRequestFocusEnabled(false);
installPreviousButtonListeners(xpButton);
return xpButton;
}
return super.createPreviousButton();
|
public static javax.swing.plaf.ComponentUI | createUI(javax.swing.JComponent c)
return new WindowsSpinnerUI();
|
private javax.swing.plaf.UIResource | getUIResource(java.lang.Object[] listeners)
for (int counter = 0; counter < listeners.length; counter++) {
if (listeners[counter] instanceof UIResource) {
return (UIResource)listeners[counter];
}
}
return null;
|
private com.sun.java.swing.plaf.windows.TMSchema.State | getXPState(javax.swing.JComponent c)
State state = State.NORMAL;
if (!c.isEnabled()) {
state = State.DISABLED;
}
return state;
|
public void | paint(java.awt.Graphics g, javax.swing.JComponent c){@inheritDoc}
if (XPStyle.getXP() != null) {
paintXPBackground(g, c);
}
super.paint(g,c);
|
private void | paintXPBackground(java.awt.Graphics g, javax.swing.JComponent c)
XPStyle xp = XPStyle.getXP();
Skin skin = xp.getSkin(c, Part.EP_EDIT);
State state = getXPState(c);
skin.paintSkin(g, 0, 0, c.getWidth(), c.getHeight(), state);
|