public class ButtonUI extends javax.swing.plaf.basic.BasicButtonUI implements IFlexViewComponentUI
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ButtonUI.ButtonListener |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BORDER |
static java.lang.String |
BORDER_ACTIVE |
static java.lang.String |
BORDER_ACTIVE_HOVER |
static java.lang.String |
BORDER_HOVER |
static java.lang.String |
BORDER_PRESSED |
protected javax.swing.border.Border |
borderActive |
protected javax.swing.border.Border |
borderActiveHover |
protected javax.swing.border.Border |
borderDefault |
protected javax.swing.border.Border |
borderDefaultHover |
protected javax.swing.border.Border |
borderPressed |
protected PropertySet |
creationParameters |
defaultTextIconGap, defaultTextShiftOffsetICON_RESOURCEATTRIBUTE_KEY, CLASSNAME_KEY, CONSTRUCTOR_KEY, DESC_KEY, EXTENDS_KEY, HANDLER_KEY, INHERITS_KEY, NAME_KEY, OVERRIDDEN_KEY, PROP_HANDLER_KEY, PROPERTY_KEY, REFERENCE_KEY, VALUE_KEY| Constructor and Description |
|---|
ButtonUI() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.swing.plaf.basic.BasicButtonListener |
createButtonListener(javax.swing.AbstractButton b) |
protected javax.swing.Icon |
getActionIcon(javax.swing.AbstractButton button,
boolean pressed,
boolean active,
boolean hover) |
protected javax.swing.border.Border |
getBorder(javax.swing.AbstractButton button) |
PropertySet |
getCreationParameters() |
protected javax.swing.border.Border |
getDefaultBorder(javax.swing.AbstractButton button,
boolean active) |
protected javax.swing.Icon |
getDefaultIcon(javax.swing.AbstractButton button,
boolean active) |
protected javax.swing.Icon |
getDisabledIcon(javax.swing.AbstractButton button,
boolean active) |
protected javax.swing.border.Border |
getHoverBorder(javax.swing.AbstractButton button,
boolean active) |
protected javax.swing.Icon |
getHoverIcon(javax.swing.AbstractButton button,
boolean active) |
protected javax.swing.Icon |
getIcon(javax.swing.AbstractButton button) |
protected javax.swing.border.Border |
getPressedBorder(javax.swing.AbstractButton button) |
protected javax.swing.Icon |
getPressedIcon(javax.swing.AbstractButton button) |
void |
initializeCreationParameters() |
protected void |
installKeyboardActions(javax.swing.AbstractButton b) |
void |
installUI(javax.swing.JComponent c) |
protected boolean |
isParentActive(javax.swing.AbstractButton button) |
protected boolean |
isPressed(javax.swing.AbstractButton button) |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
protected void |
paintBackground(java.awt.Graphics g,
javax.swing.AbstractButton b,
boolean active,
boolean hover,
boolean pressed) |
protected void |
paintBorder(java.awt.Graphics g,
javax.swing.AbstractButton b) |
protected void |
paintIcon(java.awt.Graphics g,
javax.swing.AbstractButton b) |
void |
setBorderActive(javax.swing.border.Border borderActive) |
void |
setBorderActiveHover(javax.swing.border.Border borderActiveHover) |
void |
setBorderDefault(javax.swing.border.Border borderDefault) |
void |
setBorderDefaultHover(javax.swing.border.Border borderDefaultHover) |
void |
setBorderPressed(javax.swing.border.Border borderPressed) |
void |
setCreationParameters(PropertySet creationParameters) |
void |
uninstallUI(javax.swing.JComponent c) |
clearTextShiftOffset, createUI, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyPrefix, getTextShiftOffset, installDefaults, installListeners, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallDefaults, uninstallKeyboardActions, uninstallListenerspublic static final java.lang.String BORDER
public static final java.lang.String BORDER_HOVER
public static final java.lang.String BORDER_ACTIVE
public static final java.lang.String BORDER_ACTIVE_HOVER
public static final java.lang.String BORDER_PRESSED
protected PropertySet creationParameters
protected javax.swing.border.Border borderDefault
protected javax.swing.border.Border borderDefaultHover
protected javax.swing.border.Border borderActive
protected javax.swing.border.Border borderActiveHover
protected javax.swing.border.Border borderPressed
public void paint(java.awt.Graphics g,
javax.swing.JComponent c)
paint in class javax.swing.plaf.basic.BasicButtonUIprotected void paintBackground(java.awt.Graphics g,
javax.swing.AbstractButton b,
boolean active,
boolean hover,
boolean pressed)
protected void paintBorder(java.awt.Graphics g,
javax.swing.AbstractButton b)
protected javax.swing.border.Border getBorder(javax.swing.AbstractButton button)
protected javax.swing.border.Border getPressedBorder(javax.swing.AbstractButton button)
protected javax.swing.border.Border getHoverBorder(javax.swing.AbstractButton button,
boolean active)
protected javax.swing.border.Border getDefaultBorder(javax.swing.AbstractButton button,
boolean active)
protected void paintIcon(java.awt.Graphics g,
javax.swing.AbstractButton b)
protected javax.swing.Icon getIcon(javax.swing.AbstractButton button)
protected javax.swing.Icon getDisabledIcon(javax.swing.AbstractButton button,
boolean active)
protected javax.swing.Icon getPressedIcon(javax.swing.AbstractButton button)
protected javax.swing.Icon getHoverIcon(javax.swing.AbstractButton button,
boolean active)
protected javax.swing.Icon getDefaultIcon(javax.swing.AbstractButton button,
boolean active)
protected javax.swing.Icon getActionIcon(javax.swing.AbstractButton button,
boolean pressed,
boolean active,
boolean hover)
protected boolean isPressed(javax.swing.AbstractButton button)
protected boolean isParentActive(javax.swing.AbstractButton button)
public void installUI(javax.swing.JComponent c)
installUI in class javax.swing.plaf.basic.BasicButtonUIpublic void uninstallUI(javax.swing.JComponent c)
uninstallUI in class javax.swing.plaf.basic.BasicButtonUIprotected void installKeyboardActions(javax.swing.AbstractButton b)
installKeyboardActions in class javax.swing.plaf.basic.BasicButtonUIprotected javax.swing.plaf.basic.BasicButtonListener createButtonListener(javax.swing.AbstractButton b)
createButtonListener in class javax.swing.plaf.basic.BasicButtonUIpublic void setBorderActive(javax.swing.border.Border borderActive)
public void setBorderActiveHover(javax.swing.border.Border borderActiveHover)
public void setBorderDefault(javax.swing.border.Border borderDefault)
public void setBorderDefaultHover(javax.swing.border.Border borderDefaultHover)
public void setBorderPressed(javax.swing.border.Border borderPressed)
public PropertySet getCreationParameters()
getCreationParameters in interface IFlexViewComponentUIpublic void setCreationParameters(PropertySet creationParameters)
setCreationParameters in interface IFlexViewComponentUIpublic void initializeCreationParameters()
initializeCreationParameters in interface IFlexViewComponentUI