JavaGantt 2011.1 API

eu.beesoft.gaia.app
Class FormItem

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

public class FormItem
extends java.lang.Object

An instance of this class corresponds to the one XML element of the form XML file. This file is parsed by FormDescriptor and instances of FormItem are created also by it.


Constructor Summary
FormItem()
          Creates a new instance of the form item.
 
Method Summary
 void addChild(FormItem item)
          Adds given form item to the children.
 java.lang.String getBinding()
          Returns the binding for this form item.
 java.lang.String getFullBinding()
          Returns the full (qualified, dot-separated) binding from the root to this form item.
 java.util.List<FormItem> getChildren()
          Returns the child form items of this.
 java.lang.String getId()
          Returns the id of this form item.
 java.lang.String getItemBinding()
          Returns the item binding (used for comboboxes, for example) for this form item.
 FormItem getParent()
          Returns the parent form item of this.
 java.lang.String getTag()
          Returns the tag of this form item.
 void setBinding(java.lang.String binding)
          Sets the binding for this form item.
 void setId(java.lang.String id)
          Sets the id of this form item.
 void setItemBinding(java.lang.String itemBinding)
          Sets the item binding for this form item.
 void setTag(java.lang.String tag)
          Sets the tag of this form item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormItem

public FormItem()
Creates a new instance of the form item.

Method Detail

getParent

public FormItem getParent()
Returns the parent form item of this.

Returns:
parent form item (or null for root item)

getChildren

public java.util.List<FormItem> getChildren()
Returns the child form items of this.

Returns:
children of this form item

addChild

public void addChild(FormItem item)
Adds given form item to the children.

Parameters:
item - - a form item to add

getTag

public java.lang.String getTag()
Returns the tag of this form item.

Returns:
the tag

setTag

public void setTag(java.lang.String tag)
Sets the tag of this form item.

Parameters:
tag - - the tag to set

getId

public java.lang.String getId()
Returns the id of this form item.

Returns:
the item id

setId

public void setId(java.lang.String id)
Sets the id of this form item.

Parameters:
id - - the id to set

getBinding

public java.lang.String getBinding()
Returns the binding for this form item.

Returns:
the binding

setBinding

public void setBinding(java.lang.String binding)
Sets the binding for this form item.

Parameters:
binding - - the binding to set

getFullBinding

public java.lang.String getFullBinding()
Returns the full (qualified, dot-separated) binding from the root to this form item.

Returns:
full qualified binding

getItemBinding

public java.lang.String getItemBinding()
Returns the item binding (used for comboboxes, for example) for this form item.

Returns:
the item binding

setItemBinding

public void setItemBinding(java.lang.String itemBinding)
Sets the item binding for this form item.

Parameters:
itemBinding - - the item binding to set

JavaGantt 2011.1 API