|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.riotfamily.forms.Form
public class Form
Serverside representation of a HTML form.
Constructor Summary | |
---|---|
Form()
|
|
Form(Class<?> type)
|
|
Form(Object object)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Form()
public Form(Class<?> type)
public Form(Object object)
Method Detail |
---|
public void setEditorBinder(EditorBinder editorBinder)
public String getId()
public void setId(String id)
public void setTemplate(String template)
public Collection<Element> getRegisteredElements()
public void setAttribute(String key, Object value)
public Object getAttribute(String key)
public void setBeanClass(Class<?> beanClass)
setBeanClass
in interface BeanEditor
public void setBackingObject(Object value)
setBackingObject
in interface BackingObjectAware
public boolean isNew()
public EditorBinder getEditorBinder()
public Editor getEditor(String property)
getEditor
in interface NestedEditor
public void bind(Editor editor, String property)
bind
in interface BeanEditor
public void addElement(Element element)
public List<Element> getElements()
public List<Element> getButtons()
public String getHint()
public void addElement(Editor element, String property)
public void addButton(String name)
public String getClickedButton()
public Container createContainer(String name)
public void addResource(FormResource resource)
protected List<FormResource> getResources()
public void registerElement(Element element)
element
- the element to registerpublic void unregisterElement(Element element)
public String createId()
public Element getElementById(String id)
public String createUniqueParameterName()
public String createUniqueParameterName(String desiredName)
createUniqueParameterName()
this method returns a String
that can be used as parameter name. Since most modern browsers keep track
of previously entered values (with the same parameter name) a desired
name can be passed to this method. Typically an element will use the name
of the property it is bound to as name. As this name might already be
taken by another element (especially when lists of nested forms are used)
this method will append an integer value to the given name if necessary.
public void render(PrintWriter writer)
public boolean isRendering()
public void elementRendered(Element element)
public void setInitializer(FormInitializer initializer)
public void setValidator(Validator validator)
public void init()
public void processRequest(HttpServletRequest request)
public void processRequest(FormRequest request)
public void processExclusiveRequest(String elementId, HttpServletRequest request)
public void processExclusiveRequest(String elementId, FormRequest request)
public void setFormListener(FormListener formListener)
public FormListener getFormListener()
public void requestFocus(Element element)
public Object getBackingObject()
public Object populateBackingObject()
public FormContext getFormContext()
public void setFormContext(FormContext formContext)
public String getAction()
public FormErrors getErrors()
public boolean hasErrors()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |