org.progeeks.meta.view
Class IdentityMetaForm

java.lang.Object
  extended by org.progeeks.meta.view.IdentityMetaForm
All Implemented Interfaces:
MetaForm

public class IdentityMetaForm
extends java.lang.Object
implements MetaForm

MetaForm implementation that presents an "identity" view of the associated meta-class. The "identity" view represents all meta-class properties in the order that the meta-class returns them.

Version:
$Revision: 1.2 $
Author:
Paul Speed

Field Summary
 
Fields inherited from interface org.progeeks.meta.view.MetaForm
FORM_ANNOTATION
 
Constructor Summary
IdentityMetaForm()
          Creates a new meta-form with no associated meta-class.
IdentityMetaForm(MetaClass metaClass)
          Creates an identity meta-form associated with the specified meta-class.
IdentityMetaForm(java.lang.String metaClassName)
          Creates an identity meta-form for the specified class.
 
Method Summary
 MetaClass getMetaClass()
          Returns the meta-class to which this form refers.
 int getPropertyCount()
          Returns the number of properties in this form.
 PropertyInfo getPropertyInfo(int index)
          Returns the PropertyInfo for the specified index.
 PropertyMutator getPropertyMutator(MetaObject target, int index)
          Returns a PropertyMutator from the specified MetaObject for the specified index.
 java.util.List getPropertyNames()
          Returns a list of property names in the order that they should appear in any UIs referencing this form.
 void setMetaClass(MetaClass metaClass)
          Sets the meta-class associated with this identity form.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityMetaForm

public IdentityMetaForm()
Creates a new meta-form with no associated meta-class.


IdentityMetaForm

public IdentityMetaForm(MetaClass metaClass)
Creates an identity meta-form associated with the specified meta-class.


IdentityMetaForm

public IdentityMetaForm(java.lang.String metaClassName)
Creates an identity meta-form for the specified class. The specified class name is used to lookup a meta-class using MetaClass.forName().

Method Detail

setMetaClass

public void setMetaClass(MetaClass metaClass)
Sets the meta-class associated with this identity form.


getMetaClass

public MetaClass getMetaClass()
Returns the meta-class to which this form refers.

Specified by:
getMetaClass in interface MetaForm

getPropertyNames

public java.util.List getPropertyNames()
Returns a list of property names in the order that they should appear in any UIs referencing this form.

Specified by:
getPropertyNames in interface MetaForm

getPropertyCount

public int getPropertyCount()
Returns the number of properties in this form.

Specified by:
getPropertyCount in interface MetaForm

getPropertyInfo

public PropertyInfo getPropertyInfo(int index)
Returns the PropertyInfo for the specified index.

Specified by:
getPropertyInfo in interface MetaForm

getPropertyMutator

public PropertyMutator getPropertyMutator(MetaObject target,
                                          int index)
Returns a PropertyMutator from the specified MetaObject for the specified index.

Specified by:
getPropertyMutator in interface MetaForm


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