net.sf.doolin.gui.action.path.toolbar
Enum BarPosition

java.lang.Object
  extended by java.lang.Enum<BarPosition>
      extended by net.sf.doolin.gui.action.path.toolbar.BarPosition
All Implemented Interfaces:
Serializable, Comparable<BarPosition>

public enum BarPosition
extends Enum<BarPosition>

Specification for the position of a tool bar in its hosting component.

Author:
Damien Coraboeuf

Enum Constant Summary
BOTTOM
          At the bottom
LEFT
          At the left
RIGHT
          At the right
TOP
          At the top
 
Method Summary
 Object getBorderConstraint()
          Gets the constraint for a BorderLayout.
 int getOrientation()
          Orientation of the tool bar, as defined in JToolBar.setOrientation(int).
static BarPosition valueOf(String name)
          Returns the enum constant of this type with the specified name.
static BarPosition[] 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

TOP

public static final BarPosition TOP
At the top


BOTTOM

public static final BarPosition BOTTOM
At the bottom


LEFT

public static final BarPosition LEFT
At the left


RIGHT

public static final BarPosition RIGHT
At the right

Method Detail

values

public static BarPosition[] 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 (BarPosition c : BarPosition.values())
    System.out.println(c);

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

valueOf

public static BarPosition 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

getBorderConstraint

public Object getBorderConstraint()
Gets the constraint for a BorderLayout.

Returns:
Constraint

getOrientation

public int getOrientation()
Orientation of the tool bar, as defined in JToolBar.setOrientation(int).

Returns:
Orientation


Copyright © 2011. All Rights Reserved.