JavaGantt 2011.1 API

eu.beesoft.gaia.app
Class FormDescriptor

java.lang.Object
  extended by eu.beesoft.gaia.app.FormDescriptor

public class FormDescriptor
extends java.lang.Object

This class is a container for FormItem instances that describe th XML form elements.


Constructor Summary
FormDescriptor(java.lang.String fileName)
          Creates a new instance of the form descriptor.
 
Method Summary
 java.lang.String getId()
          Returns a form id (the form file name delivered as argument to the constructor of this class).
 FormItem getItem(java.lang.String id)
          Returns a form item with given id.
 java.util.List<FormItem> getListModelItems()
          Returns all form items that describe a list models.
 FormItem getRootItem()
          Returns a root form item (it corresponds to root XML element in the form file).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormDescriptor

public FormDescriptor(java.lang.String fileName)
Creates a new instance of the form descriptor.

Parameters:
fileName - - file name of the form XML file to load
Method Detail

getId

public java.lang.String getId()
Returns a form id (the form file name delivered as argument to the constructor of this class).

Returns:
form id

getRootItem

public FormItem getRootItem()
Returns a root form item (it corresponds to root XML element in the form file).

Returns:
root form item

getItem

public FormItem getItem(java.lang.String id)
Returns a form item with given id.

Parameters:
id - - id of the requested form item
Returns:
item with requested id or null if not found

getListModelItems

public java.util.List<FormItem> getListModelItems()
Returns all form items that describe a list models.

Returns:
all form items for list models

JavaGantt 2011.1 API