BasicCommandToggleButtonUI, SubstanceCommandButtonUIpublic abstract class BasicCommandButtonUI extends CommandButtonUI
JCommandButton.| Modifier and Type | Field | Description |
|---|---|---|
protected BasicCommandButtonListener |
basicPopupButtonListener |
Tracks user interaction with the command button (including keyboard and mouse).
|
protected AbstractCommandButton |
commandButton |
The associated command button.
|
protected java.awt.event.ActionListener |
disposePopupsActionListener |
This listener disposes all popup panels when button's action is activated.
|
static java.lang.String |
DONT_DISPOSE_POPUPS |
Client property to mark the command button to not dispose the popups on activation.
|
static java.lang.String |
EMULATE_SQUARE_BUTTON |
Client property to mark the command button to have square corners.
|
protected CommandButtonLayoutManager.CommandButtonLayoutInfo |
layoutInfo |
Layout information.
|
protected CommandButtonLayoutManager |
layoutManager |
|
protected org.pushingpixels.neon.icon.ResizableIcon |
popupActionIcon |
The "expand" action icon.
|
protected PopupActionListener |
popupActionListener |
Action listener on the popup area.
|
protected java.beans.PropertyChangeListener |
propertyChangeListener |
Property change listener.
|
| Constructor | Description |
|---|---|
BasicCommandButtonUI() |
Creates a new UI delegate.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected BasicCommandButtonListener |
createButtonListener(AbstractCommandButton b) |
Creates the button listener for the specified command button.
|
protected org.pushingpixels.neon.icon.ResizableIcon |
createPopupActionIcon() |
Creates the icon for the popup area.
|
protected PopupActionListener |
createPopupActionListener() |
Creates the popup action listener for this command button.
|
protected javax.swing.Icon |
getIconToPaint() |
Returns the current icon.
|
java.awt.Point |
getKeyTipAnchorCenterPoint() |
|
protected int |
getLayoutGap() |
Returns the layout gap for the visuals of the associated command button.
|
CommandButtonLayoutManager.CommandButtonLayoutInfo |
getLayoutInfo() |
Returns the layout information for the associated button.
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c) |
|
protected void |
installComponents() |
Installs subcomponents on the associated command button.
|
protected void |
installDefaults() |
Installs defaults on the associated command button.
|
protected void |
installKeyboardActions() |
Installs the keyboard actions on the associated command button.
|
protected void |
installListeners() |
Installs listeners on the associated command button.
|
void |
installUI(javax.swing.JComponent c) |
|
protected boolean |
isPaintingBackground() |
Returns indication whether the button background is painted.
|
protected boolean |
isPaintingSeparators() |
Returns indication whether the action-popup areas separator is painted.
|
protected void |
processPopupAction() |
|
protected void |
syncDisabledIcon() |
|
protected void |
syncIconDimension() |
|
protected boolean |
toUseDisabledIcon() |
|
protected void |
uninstallComponents() |
Uninstalls subcomponents from the associated command button.
|
protected void |
uninstallDefaults() |
Uninstalls defaults from the associated command button.
|
protected void |
uninstallKeyboardActions() |
Uninstalls the keyboard actions from the associated command button.
|
protected void |
uninstallListeners() |
Uninstalls listeners from the associated command button.
|
void |
uninstallUI(javax.swing.JComponent c) |
|
void |
update(java.awt.Graphics g,
javax.swing.JComponent c) |
|
protected void |
updateBorder() |
|
protected void |
updateCustomDimension() |
Updates the custom dimension.
|
protected void |
updatePopupActionIcon() |
Updates the popup action icon.
|
protected AbstractCommandButton commandButton
protected java.beans.PropertyChangeListener propertyChangeListener
protected BasicCommandButtonListener basicPopupButtonListener
protected CommandButtonLayoutManager.CommandButtonLayoutInfo layoutInfo
public static final java.lang.String EMULATE_SQUARE_BUTTON
public static final java.lang.String DONT_DISPOSE_POPUPS
disposePopupsActionListener,
Constant Field Valuesprotected java.awt.event.ActionListener disposePopupsActionListener
DONT_DISPOSE_POPUPSprotected PopupActionListener popupActionListener
protected org.pushingpixels.neon.icon.ResizableIcon popupActionIcon
protected CommandButtonLayoutManager layoutManager
public void installUI(javax.swing.JComponent c)
installUI in class javax.swing.plaf.ComponentUIpublic void uninstallUI(javax.swing.JComponent c)
uninstallUI in class javax.swing.plaf.ComponentUIprotected void installDefaults()
protected void updateBorder()
protected void installComponents()
protected void installListeners()
protected org.pushingpixels.neon.icon.ResizableIcon createPopupActionIcon()
protected BasicCommandButtonListener createButtonListener(AbstractCommandButton b)
b - Command button.protected void installKeyboardActions()
protected void uninstallDefaults()
protected void uninstallComponents()
protected void uninstallListeners()
protected void uninstallKeyboardActions()
public void update(java.awt.Graphics g,
javax.swing.JComponent c)
update in class javax.swing.plaf.ComponentUIprotected javax.swing.Icon getIconToPaint()
protected boolean toUseDisabledIcon()
protected void updateCustomDimension()
protected void updatePopupActionIcon()
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize in class javax.swing.plaf.ComponentUIpublic CommandButtonLayoutManager.CommandButtonLayoutInfo getLayoutInfo()
CommandButtonUIgetLayoutInfo in class CommandButtonUIprotected int getLayoutGap()
protected boolean isPaintingSeparators()
true if the action-popup areas separator is painted.protected boolean isPaintingBackground()
true if the button background is painted.protected PopupActionListener createPopupActionListener()
protected void processPopupAction()
protected void syncDisabledIcon()
protected void syncIconDimension()
public java.awt.Point getKeyTipAnchorCenterPoint()
getKeyTipAnchorCenterPoint in class CommandButtonUI