|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tonbeller.wcf.component.ComponentSupport
com.tonbeller.wcf.form.XmlComponent
com.tonbeller.wcf.form.FormComponent
Manges a DOM that contains xoplon controls like <textField> etc
Nested Class Summary |
Nested classes inherited from class com.tonbeller.wcf.wizard.WizardPage |
WizardPage.WizardPagePosition |
Field Summary |
Fields inherited from interface com.tonbeller.wcf.bookmarks.Bookmarkable |
EXTENSIONAL, INTENSIONAL |
Constructor Summary | |
FormComponent(java.lang.String id,
Component parent,
org.w3c.dom.Document document)
creates a FormComponent with beanModel == this |
|
FormComponent(java.lang.String id,
Component parent,
org.w3c.dom.Document document,
java.lang.Object bean)
|
Method Summary | |
void |
addPageListener(PageListener l)
|
void |
clearErrors()
clears all error attributes in the DOM |
protected void |
clearErrors(org.w3c.dom.NodeList list)
|
java.lang.Object |
getBean()
Returns the beanModel. |
java.lang.Object |
getBookmarkState(int levelOfDetail)
adds all editable properties to the bookmark state. |
void |
initialize(RequestContext context)
deferred ctor |
boolean |
isBookmarkable()
|
boolean |
isFinishButton()
|
void |
pageAdded(WizardPage.WizardPagePosition pagePos)
shows/hides form buttons automatically depending on the position of this form in a wizard. |
void |
pageSkipped()
|
void |
removePageListener(PageListener l)
|
org.w3c.dom.Document |
render(RequestContext context)
if there is no error, the form is filled with the current model values. |
void |
revert(RequestContext context)
fills the form with values from the bean |
void |
setBean(java.lang.Object bean)
Sets the beanModel. |
void |
setBookmarkable(boolean b)
|
void |
setBookmarkState(java.lang.Object state)
restores all editable properties from the bookmark state. |
void |
setError(java.lang.String id,
java.lang.String message)
sets an error message to a DOM element |
void |
setFinishButton(boolean finishButton)
|
boolean |
validate(RequestContext context)
fills bean and form from user input |
Methods inherited from class com.tonbeller.wcf.form.XmlComponent |
destroy, getChildren, getDocument, getElement, getElement, getHandler, getHandler, getParent |
Methods inherited from class com.tonbeller.wcf.component.ComponentSupport |
addFormListener, getDispatcher, getForm, getId, getLocale, getNextView, getParent, getRoleExpr, isAutoValidate, isListeningTo, isVisible, removeFormListener, request, setAutoValidate, setId, setNextView, setParent, setRoleExpr, setVisible, valueBound, valueUnbound |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.tonbeller.wcf.component.Visible |
isVisible, setVisible |
Constructor Detail |
public FormComponent(java.lang.String id, Component parent, org.w3c.dom.Document document)
id
- document
- public FormComponent(java.lang.String id, Component parent, org.w3c.dom.Document document, java.lang.Object bean)
Method Detail |
public void revert(RequestContext context)
revert
in interface FormListener
revert
in class ComponentSupport
context
- public boolean validate(RequestContext context)
validate
in interface FormListener
validate
in class ComponentSupport
context
-
public void initialize(RequestContext context) throws java.lang.Exception
initialize
in interface LifeCycle
initialize
in class XmlComponent
java.lang.Exception
public org.w3c.dom.Document render(RequestContext context) throws java.lang.Exception
render
in interface Renderable
render
in class XmlComponent
java.lang.Exception
Renderable.render(RequestContext)
public void setBean(java.lang.Object bean)
public java.lang.Object getBean()
public void setError(java.lang.String id, java.lang.String message)
id
- the value of the id
attribute of the
DOM Element that the error message will be attached tomessage
- the error message or null to remove the error attributepublic void clearErrors()
protected void clearErrors(org.w3c.dom.NodeList list)
public java.lang.Object getBookmarkState(int levelOfDetail)
modelReference
attribute in the DOM.
getBookmarkState
in interface Bookmarkable
getBookmarkState
in class ComponentSupport
public void setBookmarkState(java.lang.Object state)
modelReference
attribute in the DOM.
setBookmarkState
in interface Bookmarkable
setBookmarkState
in class ComponentSupport
state
- a mappublic boolean isBookmarkable()
public void setBookmarkable(boolean b)
b
- public void addPageListener(PageListener l)
addPageListener
in interface WizardPage
public void removePageListener(PageListener l)
removePageListener
in interface WizardPage
public void pageAdded(WizardPage.WizardPagePosition pagePos)
pageAdded
in interface WizardPage
public boolean isFinishButton()
public void setFinishButton(boolean finishButton)
public void pageSkipped()
pageSkipped
in interface WizardPage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |