sk.uniba.euromath.editor.xmlEditor.actions
Enum InsertPosition

java.lang.Object
  extended by java.lang.Enum<InsertPosition>
      extended by sk.uniba.euromath.editor.xmlEditor.actions.InsertPosition
All Implemented Interfaces:
Serializable, Comparable<InsertPosition>

public enum InsertPosition
extends Enum<InsertPosition>

Position of insertion of node.

Author:
Tomáš Studva 18.8.2006

Enum Constant Summary
After
          Position.
AsFirstChild
          Position.
AtCaret
          Position.
Before
          Position.
 
Method Summary
static InsertPosition valueOf(String name)
          Returns the enum constant of this type with the specified name.
static InsertPosition[] 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

Before

public static final InsertPosition Before
Position. Inserts node before fisrt selected node.


After

public static final InsertPosition After
Position. Inserts node after last selected node.


AsFirstChild

public static final InsertPosition AsFirstChild
Position. Inserts node as first child of selected node(if more nodes are selected, or selected node is not element, insertion is disabled).


AtCaret

public static final InsertPosition AtCaret
Position. Inserts node at caret.

Method Detail

values

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

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

valueOf

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


Copyright © 2003-2006 null. All Rights Reserved.