com.alee.examples.content
Class DefaultExampleGroup

java.lang.Object
  extended by com.alee.examples.content.DefaultExampleGroup
All Implemented Interfaces:
ExampleGroup
Direct Known Subclasses:
AndroidStylingGroup, BreadcrumbsGroup, ButtonsGroup, CheckBoxesGroup, CollapsiblePanesGroup, ColorChoosersGroup, ComboBoxesGroup, ComplexGroup, DateChoosersGroup, DesktopPaneGroup, DocumentPaneGroup, DynamicMenuGroup, FieldsGroup, FileChoosersGroup, FocusTrackingGroup, FuturicoStylingGroup, GalleryGroup, ImagesGroup, LabelsGroup, LanguageGroup, ListsGroup, MenuBarsGroup, NinePatchEditorGroup, NotificationsGroup, OptionPanesGroup, OverlayGroup, PaintersGroup, PanelsGroup, PopOverGroup, PopupsGroup, ProgressBarsGroup, ProgressGroup, ScrollPaneGroup, SlidersGroup, SplitPanesGroup, StatusBarsGroup, TabbedPanesGroup, TablesGroup, TextAreasGroup, ToolbarsGroup, TooltipsGroup, TransitionsGroup, TreesGroup, WindowsGroup

public abstract class DefaultExampleGroup
extends java.lang.Object
implements ExampleGroup

This abstract class provides additional methods for WebLaF demo example groups.

Author:
Mikle Garin

Constructor Summary
DefaultExampleGroup()
           
 
Method Summary
 double getContentPartSize()
          Returns 50% content width by default.
 FeatureState getFeatureGroupState()
          Returns release feature state by default.
 java.awt.Color getPreferredForeground()
          Returns black foreground by default.
 java.net.URL getResource(java.lang.String path)
          Returns resource url.
 boolean isShowWatermark()
          Returns true by default.
 boolean isSingleExample()
          Returns false by default.
 javax.swing.ImageIcon loadGroupIcon(java.lang.String path)
          Returns group image icon loaded from group icons package.
 javax.swing.ImageIcon loadIcon(java.lang.String path)
          Returns image icon loaded from group icons package.
 void modifyExampleTab(int tabIndex, WebTabbedPane tabbedPane)
          Does not modify example group tab by default.
 WebSeparator modifySeparator(WebSeparator separator)
          Does not modify example separator by default.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.alee.examples.content.ExampleGroup
getGroupDescription, getGroupExamples, getGroupIcon, getGroupName
 

Constructor Detail

DefaultExampleGroup

public DefaultExampleGroup()
Method Detail

isSingleExample

public boolean isSingleExample()
Returns false by default.

Specified by:
isSingleExample in interface ExampleGroup
Returns:
false

isShowWatermark

public boolean isShowWatermark()
Returns true by default.

Specified by:
isShowWatermark in interface ExampleGroup
Returns:
true

getFeatureGroupState

public FeatureState getFeatureGroupState()
Returns release feature state by default.

Specified by:
getFeatureGroupState in interface ExampleGroup
Returns:
release feature state

modifyExampleTab

public void modifyExampleTab(int tabIndex,
                             WebTabbedPane tabbedPane)
Does not modify example group tab by default.

Specified by:
modifyExampleTab in interface ExampleGroup
Parameters:
tabIndex - index of example group tab
tabbedPane - tabbed pane that contains example group tab

modifySeparator

public WebSeparator modifySeparator(WebSeparator separator)
Does not modify example separator by default.

Specified by:
modifySeparator in interface ExampleGroup
Parameters:
separator - examples separator
Returns:
examples separator

getPreferredForeground

public java.awt.Color getPreferredForeground()
Returns black foreground by default.

Specified by:
getPreferredForeground in interface ExampleGroup
Returns:
black foreground

getContentPartSize

public double getContentPartSize()
Returns 50% content width by default.

Specified by:
getContentPartSize in interface ExampleGroup
Returns:
50% content width

loadGroupIcon

public javax.swing.ImageIcon loadGroupIcon(java.lang.String path)
Returns group image icon loaded from group icons package.

Parameters:
path - path to icon inside group icons package
Returns:
group image icon

loadIcon

public javax.swing.ImageIcon loadIcon(java.lang.String path)
Returns image icon loaded from group icons package.

Parameters:
path - path to icon inside group icons package
Returns:
image icon

getResource

public java.net.URL getResource(java.lang.String path)
Returns resource url.

Parameters:
path - path to resource inside group resources package
Returns:
resource url