public enum StyleableComponent extends java.lang.Enum<StyleableComponent> implements com.alee.api.IconSupport, com.alee.api.TitleSupport
StyleManager,
WebLookAndFeel| Enum Constant and Description |
|---|
button
Button-related components.
|
checkbox |
checkboxmenuitem |
colorchooser
Chooser components.
|
combobox |
datefield
Chooser components.
|
desktopicon |
desktoppane
Desktop-pane-related components.
|
editorpane |
filechooser |
formattedtextfield |
internalframe |
label
Label-related components.
|
list |
menu |
menubar
Menu-related components.
|
menuitem |
optionpane
Option pane component.
|
panel
Container-related components.
|
passwordfield |
popupmenu |
popupmenuseparator |
progressbar
Custom data-related components.
|
radiobutton |
radiobuttonmenuitem |
rootpane |
scrollbar
Scroll-related components.
|
scrollpane |
separator
Separator component.
|
slider |
spinner |
splitbutton |
splitpane |
statusbar
Statusbar-related components.
|
styledlabel |
tabbedpane |
table |
tableheader
Table-related components.
|
textarea |
textfield
Text-related components.
|
textpane |
togglebutton |
toolbar
Toolbar-related components.
|
toolbarseparator |
tooltip |
tree |
tristatecheckbox |
viewport |
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class<? extends javax.swing.JComponent> |
componentClass
Styleable component class.
|
protected StyleId |
defaultStyleId
Styleable component default style ID.
|
protected java.lang.String |
defaultUIClass
Styleable component default UI class canonical name.
|
protected java.lang.String |
uiClassID
Styleable component UI class ID.
|
| Modifier and Type | Method and Description |
|---|---|
static StyleableComponent |
get(java.lang.Class<? extends javax.swing.plaf.ComponentUI> uiClass)
Returns supported component type by component UI class.
|
static StyleableComponent |
get(javax.swing.plaf.ComponentUI ui)
Returns supported component type by component UI.
|
static StyleableComponent |
get(javax.swing.JComponent component)
Returns supported component type by component.
|
static StyleableComponent |
get(java.lang.String uiClassID)
Returns supported component type by UI class ID.
|
java.lang.Class<? extends javax.swing.JComponent> |
getComponentClass()
Returns component class for this component type.
|
StyleId |
getDefaultStyleId()
Returns default style ID for this component type.
|
java.lang.String |
getDefaultUIClass()
Returns default UI class canonical name.
|
javax.swing.ImageIcon |
getIcon()
Returns component type icon.
|
java.lang.String |
getTitle()
Returns component title.
|
java.lang.Class<? extends javax.swing.plaf.ComponentUI> |
getUIClass()
Returns UI class for this component type.
|
java.lang.String |
getUIClassID()
Returns UI class ID used by LookAndFeel to store various settings.
|
static boolean |
isSupported(java.lang.Class<? extends javax.swing.plaf.ComponentUI> uiClass)
Returns whether or not component with the specified UI class is supported.
|
static boolean |
isSupported(java.awt.Component component)
Returns whether or not specified component is supported.
|
static boolean |
isSupported(javax.swing.plaf.ComponentUI ui)
Returns whether or not component with the specified UI is supported.
|
static boolean |
isSupported(java.lang.String uiClassID)
Returns whether or not component with the specified UI class ID is supported.
|
static java.util.List<StyleableComponent> |
list()
Returns list of component types which supports painters.
|
static StyleableComponent |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StyleableComponent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StyleableComponent label
public static final StyleableComponent styledlabel
public static final StyleableComponent tooltip
public static final StyleableComponent button
public static final StyleableComponent splitbutton
public static final StyleableComponent togglebutton
public static final StyleableComponent checkbox
public static final StyleableComponent tristatecheckbox
public static final StyleableComponent radiobutton
public static final StyleableComponent separator
public static final StyleableComponent menubar
public static final StyleableComponent menu
public static final StyleableComponent popupmenu
public static final StyleableComponent menuitem
public static final StyleableComponent checkboxmenuitem
public static final StyleableComponent radiobuttonmenuitem
public static final StyleableComponent popupmenuseparator
public static final StyleableComponent panel
public static final StyleableComponent rootpane
public static final StyleableComponent tabbedpane
public static final StyleableComponent splitpane
public static final StyleableComponent toolbar
public static final StyleableComponent toolbarseparator
public static final StyleableComponent statusbar
public static final StyleableComponent scrollbar
public static final StyleableComponent scrollpane
public static final StyleableComponent viewport
public static final StyleableComponent textfield
public static final StyleableComponent passwordfield
public static final StyleableComponent formattedtextfield
public static final StyleableComponent textarea
public static final StyleableComponent editorpane
public static final StyleableComponent textpane
public static final StyleableComponent tableheader
public static final StyleableComponent table
public static final StyleableComponent progressbar
public static final StyleableComponent slider
public static final StyleableComponent spinner
public static final StyleableComponent combobox
public static final StyleableComponent list
public static final StyleableComponent tree
public static final StyleableComponent colorchooser
public static final StyleableComponent filechooser
public static final StyleableComponent desktoppane
public static final StyleableComponent desktopicon
public static final StyleableComponent internalframe
public static final StyleableComponent optionpane
public static final StyleableComponent datefield
protected final java.lang.Class<? extends javax.swing.JComponent> componentClass
protected final java.lang.String uiClassID
protected final java.lang.String defaultUIClass
WebLookAndFeel class constants.public static StyleableComponent[] values()
for (StyleableComponent c : StyleableComponent.values()) System.out.println(c);
public static StyleableComponent valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.Class<? extends javax.swing.JComponent> getComponentClass()
public java.lang.String getUIClassID()
public java.lang.String getDefaultUIClass()
public java.lang.Class<? extends javax.swing.plaf.ComponentUI> getUIClass()
public StyleId getDefaultStyleId()
public javax.swing.ImageIcon getIcon()
getIcon in interface com.alee.api.IconSupportpublic java.lang.String getTitle()
getTitle in interface com.alee.api.TitleSupportpublic static boolean isSupported(java.awt.Component component)
component - component to determine type forpublic static boolean isSupported(java.lang.String uiClassID)
uiClassID - component UI class IDpublic static boolean isSupported(javax.swing.plaf.ComponentUI ui)
ui - component UIpublic static boolean isSupported(java.lang.Class<? extends javax.swing.plaf.ComponentUI> uiClass)
uiClass - UI classpublic static StyleableComponent get(javax.swing.JComponent component)
component - component to determine type forStyleException - in case component is not supportedpublic static StyleableComponent get(java.lang.String uiClassID)
uiClassID - component UI class IDStyleException - in case component is not supportedpublic static StyleableComponent get(javax.swing.plaf.ComponentUI ui)
ui - component UIpublic static StyleableComponent get(java.lang.Class<? extends javax.swing.plaf.ComponentUI> uiClass)
uiClass - UI classStyleException - in case component is not supportedpublic static java.util.List<StyleableComponent> list()