com.cc.framework.common
Class ButtonMode

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

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

Defines button states used by the common controls framework

Since:
1.2
Version:
$Revision$
Author:
Gernot Schulz
See Also:
Serialized Form

Field Summary
private static ButtonMode[] ALL
          Collection with all kinds of button states
static ButtonMode DISABLED
          CheckState: DISABLED
static ButtonMode ENABLED
          CheckState: ENABLED
static ButtonMode HIDDEN
          CheckState: INVISIBLE
private  int intValue
          Unique Identifier / key / type
private static long serialVersionUID
          Serial Version UID
private  java.lang.String strValue
          Display value / nice name
 
Constructor Summary
private ButtonMode(int intValue, java.lang.String strValue)
          Constructor
 
Method Summary
 boolean equals(int other)
          Compares this button state to the specified integer.
 boolean equals(java.lang.Object obj)
          Compares this button state to the given object.
 java.lang.String getValue()
           
 int hashCode()
           
 int intValue()
           
static ButtonMode parse(java.lang.Object obj)
          Creates for the argument an Object of type ButtonMode
static ButtonMode parseInt(int i)
          Creates for the argument an Object of type ButtonMode
 java.lang.String toString()
           
 
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

DISABLED

public static final ButtonMode DISABLED
CheckState: DISABLED


ENABLED

public static final ButtonMode ENABLED
CheckState: ENABLED


HIDDEN

public static final ButtonMode HIDDEN
CheckState: INVISIBLE


intValue

private int intValue
Unique Identifier / key / type


strValue

private java.lang.String strValue
Display value / nice name


ALL

private static final ButtonMode[] ALL
Collection with all kinds of button states

Constructor Detail

ButtonMode

private ButtonMode(int intValue,
                   java.lang.String strValue)
Constructor

Parameters:
intValue - The key
strValue - The value / nice name
Method Detail

intValue

public int intValue()
Returns:
Integer value

getValue

public java.lang.String getValue()
Returns:
String value

equals

public boolean equals(java.lang.Object obj)
Compares this button state to the given object.

Parameters:
obj - The object to compare this ButtonMode against.
Returns:
true if the button statesare equal; false otherwise.

hashCode

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

equals

public boolean equals(int other)
Compares this button state to the specified integer.

Parameters:
other - The integer to compare this ButtonMode against.
Returns:
true if the button statesare equal; false otherwise.

parseInt

public static ButtonMode parseInt(int i)
Creates for the argument an Object of type ButtonMode

Parameters:
i - Integer to parse
Returns:
ButtonMode

parse

public static ButtonMode parse(java.lang.Object obj)
Creates for the argument an Object of type ButtonMode

Parameters:
obj - Object to parse
Returns:
ButtonMode

toString

public java.lang.String toString()
See Also:
Object.toString()


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