org.efaps.ui.wicket.models.objects
Class UIForm

java.lang.Object
  extended by org.efaps.ui.wicket.models.AbstractInstanceObject
      extended by org.efaps.ui.wicket.models.objects.AbstractUIObject
          extended by org.efaps.ui.wicket.models.objects.UIAbstractPageObject
              extended by org.efaps.ui.wicket.models.objects.UIForm
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.IClusterable
Direct Known Subclasses:
UIFieldForm

public class UIForm
extends UIAbstractPageObject

Class is used to instantiate a form from eFaps into a Form with all Values for the wicket webapp.

Version:
$Id: UIForm.java 4678 2010-06-05 17:01:51Z jan.moxter $
Author:
The eFaps Team
See Also:
Serialized Form

Nested Class Summary
 class UIForm.Element
          Class represent one Element in a UIForm.
static class UIForm.ElementType
          Enum is used to differ the different elements a form can contain.
 class UIForm.FormElement
          Class represents a Element of Type Form used in a Form.
 class UIForm.FormRow
          Class is used as store for one Row in the UIForm.
 
Constructor Summary
UIForm(org.apache.wicket.PageParameters _parameters)
          Constructor using PageParameters.
UIForm(java.util.UUID _commandUUID, java.lang.String _instanceKey)
          Constructor.
UIForm(java.util.UUID _commandUUID, java.lang.String _instanceKey, java.lang.String _openerId)
          Constructor.
 
Method Summary
 void execute()
          Method is used to execute the UIForm.
protected  org.efaps.admin.datamodel.Type getCreateTargetType()
          Method to get the type that will be created by a form.
 java.util.List<UIForm.Element> getElements()
          This is the getter method for the instance variable elements.
 org.efaps.admin.ui.Form getForm()
          Method to get the Form from eFaps using the instance variable formUUID.
 java.util.UUID getFormUUID()
          This is the getter method for the instance variable formUUID.
 java.util.Map<java.lang.String,java.lang.String[]> getNewValues()
          This is the getter method for the instance variable newValues.
 java.util.UUID getUUID()
          This is the getter method for the instance variable formUUID.
 boolean isClassified()
          Getter method for instance variable classified.
 boolean isFileUpload()
          This is the getter method for the instance variable fileUpload.
 void resetModel()
          Method used to reset this UIForm.
 void setFileUpload(boolean _fileUpload)
          This is the setter method for the instance variable fileUpload.
 void setFormUUID(java.util.UUID _formUUID)
          This is the setter method for the instance variable formUUID.
 
Methods inherited from class org.efaps.ui.wicket.models.objects.UIAbstractPageObject
addHidden, getHelpTarget, getHiddenCells, getNewRandom, getTargetCmd, getTargetCmdUUID, getUiID2Oid, getValue4Wizard, getWizard, hasTargetCmd, isPartOfWizardCall, isRenderRevise, isTargetCmdRevise, isTargetShowFile, setPartOfWizardCall, setRenderRevise, setTargetCmdRevise, setTargetCmdUUID, setWizard
 
Methods inherited from class org.efaps.ui.wicket.models.objects.AbstractUIObject
executeEvents, getCallingCommand, getCallingCommandUUID, getCommand, getCommand, getCommandUUID, getInstanceFromManager, getMenuTreeKey, getMode, getOpenerId, getTarget, getTitle, hasInstanceManager, isCreateMode, isEditMode, isInitialized, isPrintMode, isSearchMode, isSubmit, isViewMode, setCallingCommandUUID, setCommandUUID, setInitialized, setMode, setOpenerId, setSubmit, validate
 
Methods inherited from class org.efaps.ui.wicket.models.AbstractInstanceObject
getInstance, getInstanceKey, setInstanceKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIForm

public UIForm(org.apache.wicket.PageParameters _parameters)
Constructor using PageParameters.

Parameters:
_parameters - PageParameters from wicket

UIForm

public UIForm(java.util.UUID _commandUUID,
              java.lang.String _instanceKey)
Constructor.

Parameters:
_commandUUID - UUID of the command
_instanceKey - oid for this model

UIForm

public UIForm(java.util.UUID _commandUUID,
              java.lang.String _instanceKey,
              java.lang.String _openerId)
Constructor.

Parameters:
_commandUUID - UUID of the command
_instanceKey - oid for this model
_openerId - id of the opener
Method Detail

resetModel

public void resetModel()
Method used to reset this UIForm.

Specified by:
resetModel in class AbstractUIObject

execute

public void execute()
Method is used to execute the UIForm. (Fill it with data).

Specified by:
execute in class AbstractUIObject

getCreateTargetType

protected org.efaps.admin.datamodel.Type getCreateTargetType()
Method to get the type that will be created by a form. A method must be used so it can be overwritten.

Returns:
Type to be created

getForm

public org.efaps.admin.ui.Form getForm()
Method to get the Form from eFaps using the instance variable formUUID.

Returns:
From from eFaps

getUUID

public java.util.UUID getUUID()
This is the getter method for the instance variable formUUID.

Returns:
value of instance variable formUUID

getFormUUID

public java.util.UUID getFormUUID()
This is the getter method for the instance variable formUUID.

Returns:
value of instance variable formUUID

setFormUUID

public void setFormUUID(java.util.UUID _formUUID)
This is the setter method for the instance variable formUUID.

Parameters:
_formUUID - the formUUID to set

getElements

public java.util.List<UIForm.Element> getElements()
This is the getter method for the instance variable elements.

Returns:
value of instance variable elements

isFileUpload

public boolean isFileUpload()
This is the getter method for the instance variable fileUpload.

Returns:
value of instance variable fileUpload

setFileUpload

public void setFileUpload(boolean _fileUpload)
This is the setter method for the instance variable fileUpload.

Parameters:
_fileUpload - the fileUpload to set

getNewValues

public java.util.Map<java.lang.String,java.lang.String[]> getNewValues()
This is the getter method for the instance variable newValues.

Returns:
value of instance variable newValues

isClassified

public boolean isClassified()
Getter method for instance variable classified.

Returns:
value of instance variable classified


Copyright © 2003-2010 The eFaps Team. All Rights Reserved.