com.alee.laf.tree
Enum TreeSelectionStyle

java.lang.Object
  extended by java.lang.Enum<TreeSelectionStyle>
      extended by com.alee.laf.tree.TreeSelectionStyle
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TreeSelectionStyle>

public enum TreeSelectionStyle
extends java.lang.Enum<TreeSelectionStyle>

Tree selection styles enumeration.

Author:
Mikle Garin

Enum Constant Summary
group
          Group cell selection style.
line
          Line cell selection style.
single
          Single cell selection style.
 
Method Summary
static TreeSelectionStyle valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TreeSelectionStyle[] 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

single

public static final TreeSelectionStyle single
Single cell selection style. With this selection style tree will paint a separate selection under each selected cell.


group

public static final TreeSelectionStyle group
Group cell selection style. With this selection style tree will paint a single selection for each group of nodes that are located close to each other.


line

public static final TreeSelectionStyle line
Line cell selection style. With this selection style tree will paint selection over the whole line in which node is placed. Selected lines located near each other will also be visually grouped.

Method Detail

values

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

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

valueOf

public static TreeSelectionStyle valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null