org.flexdock.plaf.theme
public class ButtonUI extends BasicButtonUI implements IFlexViewComponentUI
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ButtonUI.ButtonListener |
| Modifier and Type | Field and Description |
|---|---|
static String |
BORDER |
static String |
BORDER_ACTIVE |
static String |
BORDER_ACTIVE_HOVER |
static String |
BORDER_HOVER |
static String |
BORDER_PRESSED |
protected Border |
borderActive |
protected Border |
borderActiveHover |
protected Border |
borderDefault |
protected Border |
borderDefaultHover |
protected 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() |
clearTextShiftOffset, createUI, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyPrefix, getTextShiftOffset, installDefaults, installListeners, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallDefaults, uninstallKeyboardActions, uninstallListenerscontains, getAccessibleChild, getAccessibleChildrenCount, updatepublic static final String BORDER
public static final String BORDER_HOVER
public static final String BORDER_ACTIVE
public static final String BORDER_ACTIVE_HOVER
public static final String BORDER_PRESSED
protected PropertySet creationParameters
protected Border borderDefault
protected Border borderDefaultHover
protected Border borderActive
protected Border borderActiveHover
protected Border borderPressed
public void paint(Graphics g, JComponent c)
paint in class BasicButtonUIprotected void paintBackground(Graphics g, AbstractButton b, boolean active, boolean hover, boolean pressed)
protected void paintBorder(Graphics g, AbstractButton b)
protected Border getBorder(AbstractButton button)
protected Border getPressedBorder(AbstractButton button)
protected Border getHoverBorder(AbstractButton button, boolean active)
protected Border getDefaultBorder(AbstractButton button, boolean active)
protected void paintIcon(Graphics g, AbstractButton b)
protected Icon getIcon(AbstractButton button)
protected Icon getDisabledIcon(AbstractButton button, boolean active)
protected Icon getPressedIcon(AbstractButton button)
protected Icon getHoverIcon(AbstractButton button, boolean active)
protected Icon getDefaultIcon(AbstractButton button, boolean active)
protected Icon getActionIcon(AbstractButton button, boolean pressed, boolean active, boolean hover)
protected boolean isPressed(AbstractButton button)
protected boolean isParentActive(AbstractButton button)
public void installUI(JComponent c)
installUI in class BasicButtonUIpublic void uninstallUI(JComponent c)
uninstallUI in class BasicButtonUIprotected void installKeyboardActions(AbstractButton b)
installKeyboardActions in class BasicButtonUIprotected BasicButtonListener createButtonListener(AbstractButton b)
createButtonListener in class BasicButtonUIpublic void setBorderActive(Border borderActive)
public void setBorderActiveHover(Border borderActiveHover)
public void setBorderDefault(Border borderDefault)
public void setBorderDefaultHover(Border borderDefaultHover)
public void setBorderPressed(Border borderPressed)
public PropertySet getCreationParameters()
getCreationParameters in interface IFlexViewComponentUIpublic void setCreationParameters(PropertySet creationParameters)
setCreationParameters in interface IFlexViewComponentUIpublic void initializeCreationParameters()
initializeCreationParameters in interface IFlexViewComponentUI