bibliothek.extension.gui.dock.theme.eclipse
Enum EclipseTabDockActionLocation

java.lang.Object
  extended by java.lang.Enum<EclipseTabDockActionLocation>
      extended by bibliothek.extension.gui.dock.theme.eclipse.EclipseTabDockActionLocation
All Implemented Interfaces:
Serializable, Comparable<EclipseTabDockActionLocation>

public enum EclipseTabDockActionLocation
extends Enum<EclipseTabDockActionLocation>

Can be used for an EclipseTabDockAction to fine tune the behavior.

Author:
Benjamin Sigg

Enum Constant Summary
BOTH
          the action is shown both on the tab and on the side
HIDDEN
          the action is not shown at all (it will appear in the drop down menu)
SIDE
          the action is shown on the side
TAB
          the action is shown on the tab
 
Method Summary
 boolean isSide()
          Tells whether this location points to the side.
 boolean isTab()
          Tells whether this location points to a tab.
static EclipseTabDockActionLocation valueOf(String name)
          Returns the enum constant of this type with the specified name.
static EclipseTabDockActionLocation[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BOTH

public static final EclipseTabDockActionLocation BOTH
the action is shown both on the tab and on the side


HIDDEN

public static final EclipseTabDockActionLocation HIDDEN
the action is not shown at all (it will appear in the drop down menu)


SIDE

public static final EclipseTabDockActionLocation SIDE
the action is shown on the side


TAB

public static final EclipseTabDockActionLocation TAB
the action is shown on the tab

Method Detail

values

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

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

valueOf

public static EclipseTabDockActionLocation 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
NullPointerException - if the argument is null

isTab

public boolean isTab()
Tells whether this location points to a tab.

Returns:
true if this location points to a tab

isSide

public boolean isSide()
Tells whether this location points to the side.

Returns:
true if this location points to the side