com.cc.framework.ui
Class MenuType

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

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

Enumeration of menu types used by the framework

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

Field Summary
private static MenuType[] ALL
          Collection with all menu types
static MenuType MAIN
          type: MAIN
static MenuType NONE
          type: NONE
private static long serialVersionUID
          Serial Version UID
static MenuType SIDEBAR
          type: SIDEBAR
static MenuType TOOLS
          type: TOOLS
private  java.lang.String type
          The internal type
 
Constructor Summary
private MenuType(java.lang.String type)
          Constructor for MenuType
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares this type to the specified object.
 int hashCode()
           
static MenuType parse(java.lang.String code)
          Creates for the argument an object of type MenuType
 java.lang.String toString()
          Returns a string representation for the object
 
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

NONE

public static final MenuType NONE
type: NONE


MAIN

public static final MenuType MAIN
type: MAIN


TOOLS

public static final MenuType TOOLS
type: TOOLS


SIDEBAR

public static final MenuType SIDEBAR
type: SIDEBAR


type

private java.lang.String type
The internal type


ALL

private static final MenuType[] ALL
Collection with all menu types

Constructor Detail

MenuType

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

Parameters:
type - The menu type
Method Detail

equals

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

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

hashCode

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

parse

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

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

toString

public java.lang.String toString()
Returns a string representation for the object

Returns:
The menu type


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