org.openide.text 6.27.1

org.openide.text
Enum Line.ShowVisibilityType

java.lang.Object
  extended by java.lang.Enum<Line.ShowVisibilityType>
      extended by org.openide.text.Line.ShowVisibilityType
All Implemented Interfaces:
Serializable, Comparable<Line.ShowVisibilityType>
Enclosing class:
Line

public static enum Line.ShowVisibilityType
extends Enum<Line.ShowVisibilityType>

ShowOpenType and ShowVisibilityType is replacement for constants SHOW_TRY_SHOW, SHOW_SHOW, SHOW_GOTO, SHOW_TOFRONT, SHOW_REUSE, SHOW_REUSE_NEW. It is to provide full control over show method behavior without need to add new constant for missing flag combination.

Since:
org.openide.text 6.21
See Also:
show, ShowOpenType

Enum Constant Summary
FOCUS
          front editor component to become visible and activates/focuses it.
FRONT
          fronts editor component to become visible
NONE
          no action
 
Method Summary
static Line.ShowVisibilityType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Line.ShowVisibilityType[] 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

NONE

public static final Line.ShowVisibilityType NONE
no action


FRONT

public static final Line.ShowVisibilityType FRONT
fronts editor component to become visible


FOCUS

public static final Line.ShowVisibilityType FOCUS
front editor component to become visible and activates/focuses it. It does the same as FRONT plus activates/focuses editor

Method Detail

values

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

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

valueOf

public static Line.ShowVisibilityType 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

org.openide.text 6.27.1

Built on September 7 2010.  |  Portions Copyright 1997-2010 Sun Microsystems, Inc. All rights reserved.