com.cc.framework.ui
Class FormType

java.lang.Object
  extended bycom.cc.framework.ui.FormType

public final class FormType
extends java.lang.Object

Enumeration of forms used by the common controls framework

Since:
1.0
Version:
$Revision: 1.13 $
Author:
Harald Schulz

Field Summary
private static FormType[] ALL
          Collection of all forms
static FormType CREATE
          form: CREATE
static FormType DISPLAY
          form: DISPLAY
static FormType EDIT
          form: EDIT
private  boolean editable
          This flag indicates if editing is allowed
static FormType HEADER
          form: HEADER
static FormType INFO
          form: INFO
static FormType NONE
          form: NONE
static FormType SEARCH
          form: SEARCH
private  java.lang.String type
          The form type
 
Constructor Summary
private FormType(java.lang.String type, boolean editable)
          Constructor for FormType
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares this form type to the specified object.
 int hashCode()
           
 boolean isEditable()
           
static FormType parse(java.lang.String code)
          Creates for the argument an object of type FormType
 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

NONE

public static final FormType NONE
form: NONE


SEARCH

public static final FormType SEARCH
form: SEARCH


CREATE

public static final FormType CREATE
form: CREATE


DISPLAY

public static final FormType DISPLAY
form: DISPLAY


EDIT

public static final FormType EDIT
form: EDIT


HEADER

public static final FormType HEADER
form: HEADER


INFO

public static final FormType INFO
form: INFO


type

private java.lang.String type
The form type


editable

private boolean editable
This flag indicates if editing is allowed


ALL

private static final FormType[] ALL
Collection of all forms

Constructor Detail

FormType

private FormType(java.lang.String type,
                 boolean editable)
Constructor for FormType

Parameters:
type - The form type
editable - Flag that indicates if editing is allowed
Method Detail

equals

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

Parameters:
obj - The object to compare this FormType against.
Returns:
true if the form typesare equal; false otherwise.

hashCode

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

parse

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

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

toString

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

Returns:
The form type

isEditable

public boolean isEditable()
Returns:
returns true if this form type allows editing


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