|
JAC project AOPSYS CEDRIC & LIP6 labs |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.aspects.gui.web.AbstractView | +--org.objectweb.jac.aspects.gui.web.AbstractPage | +--org.objectweb.jac.aspects.gui.web.Dialog
An HTML page containing a View, and an OK and a close Button
Field Summary |
Fields inherited from class org.objectweb.jac.aspects.gui.web.AbstractPage |
view |
Fields inherited from class org.objectweb.jac.aspects.gui.web.AbstractView |
column, context, description, height, isCellViewer, label, parentView, row, table, width |
Constructor Summary | |
Dialog(View view,
Object parent,
String title,
String description)
|
Method Summary | |
void |
genBody(PrintWriter out)
Override this method to generate the body of an HTML page. |
View |
getContentView()
Returns the content view of the dialog |
JacRequest |
getRequest()
|
HttpServletResponse |
getResponse()
|
void |
onCancel()
Called when the Cancel button was pressed by the user |
void |
onOK(JacRequest request)
Called when the OK button was pressed by the user |
void |
onValidate(JacRequest request)
Validates inputs, but creates no HTML. |
void |
restoreContext()
Restore context attributes stored at creation time |
boolean |
waitForClose()
Waits until the dialog is closed or timeout iccurs. |
Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractPage |
close, genHTML |
Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractView |
equals, eventURL, eventURL, genPage, genStyleSheets, getCloseBorder, getContext, getDescription, getFactory, getId, getId, getLabel, getMessage, getOpenBorder, getParameters, getParentView, getRootView, getStyle, getType, getViewBorder, hashCode, iconElement, iconElement, isClosed, isDescendantOf, isInForm, printAttributes, setAttribute, setColumn, setContext, setDescription, setFactory, setFocus, setHeight, setLabel, setMessage, setParameters, setParentView, setRow, setStyle, setStyleSheet, setTable, setType, setViewBorder, setWidth, validate |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.jac.aspects.gui.View |
close, getContext, getDescription, getFactory, getLabel, getMessage, getParentView, getRootView, getStyle, getViewBorder, isClosed, isDescendantOf, setContext, setDescription, setFactory, setFocus, setHeight, setLabel, setMessage, setParentView, setStyle, setViewBorder, setWidth, validate |
Methods inherited from interface org.objectweb.jac.aspects.gui.ViewIdentity |
getParameters, getType, setParameters, setType |
Methods inherited from interface org.objectweb.jac.aspects.gui.web.HTMLViewer |
setStyleSheet |
Constructor Detail |
public Dialog(View view, Object parent, String title, String description)
view
- the view to embed in the dialogparent
- the parent window of the dialogtitle
- the titledescription
- description of the viewMethod Detail |
public HttpServletResponse getResponse()
public JacRequest getRequest()
public boolean waitForClose() throws TimeoutException
DialogView
waitForClose
in interface DialogView
TimeoutException
public View getContentView()
DialogView
getContentView
in interface DialogView
public void genBody(PrintWriter out) throws IOException
AbstractView
genBody
in class AbstractView
IOException
AbstractView.genPage(PrintWriter)
public void restoreContext()
DialogListener
restoreContext
in interface DialogListener
public void onOK(JacRequest request)
DialogListener
onOK
in interface DialogListener
request
- the servlet requestpublic void onValidate(JacRequest request)
DialogListener
onValidate
in interface DialogListener
public void onCancel()
DialogListener
onCancel
in interface DialogListener
|
Contact JAC development team: Renaud Pawlak Lionel Seinturier Laurent Martelli |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |