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

java.lang.Object
  extended by org.efaps.ui.wicket.models.objects.UIWizardObject
All Implemented Interfaces:
Serializable, org.apache.wicket.IClusterable

public class UIWizardObject
extends Object
implements org.apache.wicket.IClusterable

Class is used to create wizard like behavior for a webpage. Meaning that it is possible to go forward and backward in the pages without loosing parameters, which were already given from the user.
It contains a list that stores the UIObjects hyrachical so that they can be accessed using methods like previous.

Version:
$Id: UIWizardObject.java 5758 2010-10-27 21:22:43Z jan.moxter $
Author:
The eFaps Team
See Also:
Serialized Form

Constructor Summary
UIWizardObject(AbstractUIPageObject _uiObject)
          Constructor setting the current UIObject.
 
Method Summary
 void add(AbstractUIPageObject _uiObject)
          Add a UIOBject to the list of objects.
 void addParameters(AbstractUIObject _uiObject, Map<String,String[]> _parameters)
          Add parameters.
 Map<String,String[]> getParameters(AbstractUIObject _uiObject)
          Get a parameter map from the mapping.
 AbstractUIPageObject getPrevious()
          Method to get the previous object.
 void insertBefore(AbstractUIPageObject _uiObject)
          Insert a UIObject before the current one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIWizardObject

public UIWizardObject(AbstractUIPageObject _uiObject)
Constructor setting the current UIObject.

Parameters:
_uiObject - current UIOBject
Method Detail

add

public void add(AbstractUIPageObject _uiObject)
Add a UIOBject to the list of objects.

Parameters:
_uiObject - Object to add

insertBefore

public void insertBefore(AbstractUIPageObject _uiObject)
Insert a UIObject before the current one.

Parameters:
_uiObject - Object to insert

getPrevious

public AbstractUIPageObject getPrevious()
Method to get the previous object.

Returns:
previous object

addParameters

public void addParameters(AbstractUIObject _uiObject,
                          Map<String,String[]> _parameters)
Add parameters.

Parameters:
_uiObject - object used as key
_parameters - parameters

getParameters

public Map<String,String[]> getParameters(AbstractUIObject _uiObject)
Get a parameter map from the mapping.

Parameters:
_uiObject - key fot the parameter map.
Returns:
parameter map


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