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, defaultTextShiftOffset
ICON_RESOURCE
ATTRIBUTE_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, uninstallListeners
contains, getAccessibleChild, getAccessibleChildrenCount, update
public 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 BasicButtonUI
protected 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 BasicButtonUI
public void uninstallUI(JComponent c)
uninstallUI
in class BasicButtonUI
protected void installKeyboardActions(AbstractButton b)
installKeyboardActions
in class BasicButtonUI
protected BasicButtonListener createButtonListener(AbstractButton b)
createButtonListener
in class BasicButtonUI
public 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 IFlexViewComponentUI
public void setCreationParameters(PropertySet creationParameters)
setCreationParameters
in interface IFlexViewComponentUI
public void initializeCreationParameters()
initializeCreationParameters
in interface IFlexViewComponentUI