bibliothek.gui.dock
Enum FlapDockStation.ButtonContent

java.lang.Object
  extended by java.lang.Enum<FlapDockStation.ButtonContent>
      extended by bibliothek.gui.dock.FlapDockStation.ButtonContent
All Implemented Interfaces:
Serializable, Comparable<FlapDockStation.ButtonContent>
Enclosing class:
FlapDockStation

public static enum FlapDockStation.ButtonContent
extends Enum<FlapDockStation.ButtonContent>

What kind of information should be displayed on the buttons.


Enum Constant Summary
ICON_ACTIONS
           
ICON_AND_TEXT_ACTIONS
           
ICON_AND_TEXT_ONLY
           
ICON_ONLY
           
ICON_THEN_TEXT_ACTIONS
           
ICON_THEN_TEXT_ONLY
           
TEXT_ACTIONS
           
TEXT_ONLY
           
TEXT_THEN_ICON_ACTIONS
           
TEXT_THEN_ICON_ONLY
           
THEME_DEPENDENT
           
 
Method Summary
 boolean showActions(boolean theme)
          Tells whether actions should be shown on the button of a FlapDockStation or not.
 boolean showIcon(boolean text, boolean theme)
          Tells whether an icon should be shown.
 boolean showText(boolean icon, boolean theme)
          Tells whether text should be shown.
static FlapDockStation.ButtonContent valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FlapDockStation.ButtonContent[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

THEME_DEPENDENT

public static final FlapDockStation.ButtonContent THEME_DEPENDENT

ICON_ONLY

public static final FlapDockStation.ButtonContent ICON_ONLY

TEXT_ONLY

public static final FlapDockStation.ButtonContent TEXT_ONLY

ICON_AND_TEXT_ONLY

public static final FlapDockStation.ButtonContent ICON_AND_TEXT_ONLY

ICON_THEN_TEXT_ONLY

public static final FlapDockStation.ButtonContent ICON_THEN_TEXT_ONLY

TEXT_THEN_ICON_ONLY

public static final FlapDockStation.ButtonContent TEXT_THEN_ICON_ONLY

ICON_ACTIONS

public static final FlapDockStation.ButtonContent ICON_ACTIONS

TEXT_ACTIONS

public static final FlapDockStation.ButtonContent TEXT_ACTIONS

ICON_AND_TEXT_ACTIONS

public static final FlapDockStation.ButtonContent ICON_AND_TEXT_ACTIONS

ICON_THEN_TEXT_ACTIONS

public static final FlapDockStation.ButtonContent ICON_THEN_TEXT_ACTIONS

TEXT_THEN_ICON_ACTIONS

public static final FlapDockStation.ButtonContent TEXT_THEN_ICON_ACTIONS
Method Detail

values

public static final FlapDockStation.ButtonContent[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(FlapDockStation.ButtonContent c : FlapDockStation.ButtonContent.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static FlapDockStation.ButtonContent valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name

showActions

public boolean showActions(boolean theme)
Tells whether actions should be shown on the button of a FlapDockStation or not.

Parameters:
theme - what the theme would do
Returns:
true if the actions should be shown

showIcon

public boolean showIcon(boolean text,
                        boolean theme)
Tells whether an icon should be shown.

Parameters:
text - whether text is present or not.
theme - what the theme would decide.
Returns:
true if icons should be shown

showText

public boolean showText(boolean icon,
                        boolean theme)
Tells whether text should be shown.

Parameters:
icon - whether an icon is present or not
theme - what the theme would decide.
Returns:
true if text should be shown