com.cc.framework.ui
Class ExpansionMode

java.lang.Object
  extended bycom.cc.framework.ui.ExpansionMode
All Implemented Interfaces:
java.io.Serializable, SimpleEnumType

public final class ExpansionMode
extends java.lang.Object
implements SimpleEnumType, java.io.Serializable

Enumeration for expansion types for the nodes of a tree.

The nodes of a tree can have the following states:

Since:
1.0
Version:
$Revision: 1.15 $
Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
private static ExpansionMode[] ALL
          Collection with all kinds of expansion types
static ExpansionMode FULL
          expansion mode: FULL
static ExpansionMode MULTIPLE
          expansion mode: MULTIPLE
private static long serialVersionUID
          Serial Version UID
static ExpansionMode SINGLE
          expansion mode: SINGLE
private  java.lang.String type
          The internal type
 
Constructor Summary
private ExpansionMode(java.lang.String type)
          Constructor for ExpansionMode
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares this type to the specified object.
 int hashCode()
           
static ExpansionMode parse(java.lang.String code)
          Creates for the argument an object of type ExpansionMode
 java.lang.String toString()
          Returns the expansion mode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

FULL

public static final ExpansionMode FULL
expansion mode: FULL


SINGLE

public static final ExpansionMode SINGLE
expansion mode: SINGLE


MULTIPLE

public static final ExpansionMode MULTIPLE
expansion mode: MULTIPLE


type

private java.lang.String type
The internal type


ALL

private static final ExpansionMode[] ALL
Collection with all kinds of expansion types

Constructor Detail

ExpansionMode

private ExpansionMode(java.lang.String type)
Constructor for ExpansionMode

Parameters:
type - The expansion type
Method Detail

toString

public java.lang.String toString()
Returns the expansion mode

Returns:
String

equals

public boolean equals(java.lang.Object obj)
Compares this type to the specified object.

Parameters:
obj - The object to compare this ExpansionMode object against.
Returns:
true if the internal types are equal; false otherwise.

hashCode

public int hashCode()
See Also:
Object.hashCode()

parse

public static ExpansionMode parse(java.lang.String code)
Creates for the argument an object of type ExpansionMode

Parameters:
code - String to parse
Returns:
The new Object


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.