org.progeeks.meta.view
Class MetaFormFlavor

java.lang.Object
  extended by org.progeeks.meta.view.MetaFormFlavor
All Implemented Interfaces:
java.io.Serializable

public final class MetaFormFlavor
extends java.lang.Object
implements java.io.Serializable

Defines a usage-type for a certain category of form. A single MetaClass may have different forms that will be used in different circumstances. For example, a read only panel may want to show a different set of fields than a writeable panel. Nested meta-objects may have a reduced or differently-ordered set of fields than if they appeared in a root form. MetaFormFlavors can be defined for these specific uses and the UIs can then draw on them when they need forms. MetaFormFlavors act as a set of customizable enumerated values that can also reference a super-flavor for the flavor that should be used when no specific forms exist for the type.

Version:
$Revision: 1.1 $
Author:
Paul Speed
See Also:
Serialized Form

Field Summary
static MetaFormFlavor DEFAULT_FORM
           
static MetaFormFlavor READ_ONLY_FORM
           
static MetaFormFlavor READ_ONLY_TABLE_FORM
           
static MetaFormFlavor TABLE_FORM
           
 
Constructor Summary
MetaFormFlavor(java.lang.String name)
           
MetaFormFlavor(java.lang.String name, MetaFormFlavor superFlavor)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getName()
          Returns the unique name of the meta-form flavor.
 MetaFormFlavor getSuperFlavor()
          Returns the flavor that will be used in searches if no items are found for this particular flavor.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_FORM

public static final MetaFormFlavor DEFAULT_FORM

READ_ONLY_FORM

public static final MetaFormFlavor READ_ONLY_FORM

TABLE_FORM

public static final MetaFormFlavor TABLE_FORM

READ_ONLY_TABLE_FORM

public static final MetaFormFlavor READ_ONLY_TABLE_FORM
Constructor Detail

MetaFormFlavor

public MetaFormFlavor(java.lang.String name)

MetaFormFlavor

public MetaFormFlavor(java.lang.String name,
                      MetaFormFlavor superFlavor)
Method Detail

getName

public java.lang.String getName()
Returns the unique name of the meta-form flavor.


getSuperFlavor

public MetaFormFlavor getSuperFlavor()
Returns the flavor that will be used in searches if no items are found for this particular flavor.


equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2002-2003 Paul Speed. All Rights Reserved.