|
||||||||||
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.ConfirmComponent
a simple yes/no query component
Field Summary | |
static java.lang.String |
BUNDLE
|
static java.lang.String |
SESSIONKEY
|
Fields inherited from interface com.tonbeller.wcf.bookmarks.Bookmarkable |
EXTENSIONAL, INTENSIONAL |
Constructor Summary | |
ConfirmComponent(java.lang.String id,
Component parent,
org.w3c.dom.Document document)
|
Method Summary | |
void |
initialize(RequestContext context)
called once when the component is created. |
static ConfirmComponent |
instance()
|
org.w3c.dom.Document |
render(RequestContext context)
renders the component |
void |
show(java.lang.String title,
java.lang.String text,
RequestListener accept,
RequestListener cancel)
creates a simple yes/no form |
void |
show(java.lang.String title,
java.lang.String text1,
java.lang.String[] list,
java.lang.String text2,
RequestListener accept,
RequestListener cancel)
crates a yes/no dialog with a list |
void |
show(java.lang.String title,
java.lang.String textA,
java.lang.String[] listA,
java.lang.String textB,
java.lang.String[] listB,
java.lang.String text,
RequestListener accept,
RequestListener cancel)
crates a yes/no dialog with a list |
Methods inherited from class com.tonbeller.wcf.component.ComponentSupport |
addFormListener, destroy, getBookmarkState, getDispatcher, getForm, getId, getLocale, getNextView, getParent, getRoleExpr, isAutoValidate, isListeningTo, isVisible, removeFormListener, request, revert, setAutoValidate, setBookmarkState, setId, setNextView, setParent, setRoleExpr, setVisible, validate, valueBound, valueUnbound |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String SESSIONKEY
public static final java.lang.String BUNDLE
Constructor Detail |
public ConfirmComponent(java.lang.String id, Component parent, org.w3c.dom.Document document)
Method Detail |
public static ConfirmComponent instance()
public void initialize(RequestContext context) throws java.lang.Exception
ComponentSupport
initialize
in interface LifeCycle
initialize
in class ComponentSupport
java.lang.Exception
ComponentSupport.destroy(javax.servlet.http.HttpSession)
,
ComponentSupport.valueBound(javax.servlet.http.HttpSessionBindingEvent)
,
ComponentTag.doEndTag()
public org.w3c.dom.Document render(RequestContext context) throws java.lang.Exception
Renderable
java.lang.Exception
public void show(java.lang.String title, java.lang.String text, RequestListener accept, RequestListener cancel)
title
- title of the formtext
- text of the bodyaccept
- action for OK button or nullcancel
- action for Cancel button or nullpublic void show(java.lang.String title, java.lang.String text1, java.lang.String[] list, java.lang.String text2, RequestListener accept, RequestListener cancel)
title
- title of the dialogtext1
- text before the listlist
- the list itemstext2
- text after the listaccept
- action for OK button or nullcancel
- action for Cancel button or nullpublic void show(java.lang.String title, java.lang.String textA, java.lang.String[] listA, java.lang.String textB, java.lang.String[] listB, java.lang.String text, RequestListener accept, RequestListener cancel)
title
- title of the dialogtextA
- text before list AlistA
- the first group of list itemstextB
- text before list BlistB
- the second group of list itemstext
- text after the listaccept
- action for OK button or nullcancel
- action for Cancel button or null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |