com.alee.utils.laf
Interface Styleable

All Known Implementing Classes:
AlignPanel, BorderPanel, CenterPanel, ComponentTransition, DictionariesTreeRenderer, DoubleColorField, EmptyPanel, FlowPanel, GridPanel, GroupPanel, HotkeyTipLabel, IconProgress, LanguageEditor, LanguageExample.MyLabel, LineColorChooser, MultiComponentTransition, NinePatchEditorPanel, PaletteColorChooser, PopupLayer, ResizablePanel, SampleTreeCellRenderer, ShadeLayer, SingleAlignPanel, SourceViewer, TwoSidesPanel, VerticalPanel, WebAccordion, WebAsyncTreeCellRenderer, WebBreadcrumb, WebBreadcrumbLabel, WebBreadcrumbPanel, WebButtonGroup, WebButtonPopup, WebCalendar, WebCheckBoxTreeCellRenderer, WebClock, WebCollapsiblePane, WebColorChooserPanel, WebComboBoxElement, WebComponentPanel, WebComponentPanel.WebSelectablePanel, WebCursorTracker, WebDateRenderer, WebDirectoryChooserPanel, WebDockableFrame, WebDockablePane, WebDocumentPane, WebDoubleRenderer, WebDynamicMenu, WebFileBreadcrumb, WebFileChooserField, WebFileChooserField.FilePlate, WebFileChooserPanel, WebFileDrop, WebFileListCellRenderer, WebFilePlate, WebFileTableCellRenderer, WebFileTreeCellRenderer, WebGlassPane, WebHeavyWeightPopup, WebHotkeyLabel, WebIconRenderer, WebLabel, WebLabelUI, WebLinkLabel, WebListCellRenderer, WebListCellRenderer.UIResource, WebListElement, WebMemoryBar, WebNotificationPopup, WebNumberRenderer, WebOverlay, WebPanel, WebPanelUI, WebPathField, WebPopOver, WebPopup, WebPopupMenu, WebPopupMenuUI, WebProgressOverlay, WebRootPaneUI.TitleLabel, WebScrollBar, WebScrollBarUI, WebStatusLabel, WebStepLabel, WebSwitch, WebSwitchGripper, WebSwitchPane, WebTableCellRenderer, WebTableCellRenderer.UIResource, WebTableHeaderCellRenderer, WebTableHeaderCellRenderer.UIResource, WebTitledPanel, WebToolBarCorner, WebTreeCellRenderer, WebTreeElement, WebVerticalLabel, WebVerticalLabelUI, WrapPanel

public interface Styleable

This interface must be implemented by components and UIs which support styling through WebLaF skins. It provides only two methods to allow default component style ID modifications.

Author:
Mikle Garin
See Also:
StyleManager, WebLafSkin

Method Summary
 java.lang.String getStyleId()
          Returns component style ID.
 void setStyleId(java.lang.String id)
          Sets custom component style ID.
 

Method Detail

getStyleId

java.lang.String getStyleId()
Returns component style ID. Custom ID can be specified to override default component style using "setStyleId" method. If style for such custom ID is not found in skin descriptor then default style for that component is used.

Returns:
component style ID

setStyleId

void setStyleId(java.lang.String id)
Sets custom component style ID. If style for such custom ID is not found in skin descriptor default style will be used for that component. This method forces component to instantly use component style with the specified ID.

Parameters:
id - custom component style ID