|
|||||||||||
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(ViewFactory factory,
DisplayContext context,
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. |
void |
genHTML(PrintWriter out)
Generate the HTML code for the editor. |
View |
getContentView()
Returns the content view of the window |
JacRequest |
getRequest()
Gets the current JacRequest of this dialog |
HttpServletResponse |
getResponse()
Gets the current HttpServletResponse of this dialog |
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 |
onRefresh(JacRequest request)
Called when the Refresh button was pressed by the user. |
void |
onValidate(JacRequest request)
Validates inputs, but creates no HTML. |
void |
restoreContext()
Restore context attributes memorized 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 |
Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractView |
closeForm, equalsView, equalsView, eventURL, eventURL, genEventAndActionButton, genPage, genStyleSheets, getBaseURL, getCloseBorder, getContext, getDescription, getFactory, getId, getId, getLabel, getMessage, getOpenBorder, getParameters, getParentView, getRootView, getStyle, getType, getViewBorder, iconElement, iconElement, isClosed, isDescendantOf, isInForm, openForm, printAttributes, setAttribute, setColumn, setContext, setDescription, setFactory, setFocus, setLabel, setMessage, setParameters, setParentView, setRow, setSize, setStyle, setStyleSheet, setTable, setType, setViewBorder, showButton, showFormButtons, showFormButtons |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, 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, setLabel, setMessage, setParentView, setSize, setStyle, setViewBorder |
Methods inherited from interface org.objectweb.jac.aspects.gui.ViewIdentity |
equalsView, equalsView, getParameters, getType, setParameters, setType |
Methods inherited from interface org.objectweb.jac.aspects.gui.web.HTMLViewer |
setStyleSheet |
Constructor Detail |
public Dialog(ViewFactory factory, DisplayContext context, 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()
DialogListener
getResponse
in interface DialogListener
public JacRequest getRequest()
DialogListener
getRequest
in interface DialogListener
public boolean waitForClose() throws TimeoutException
DialogView
waitForClose
in interface DialogView
TimeoutException
public View getContentView()
WindowView
getContentView
in interface WindowView
getContentView
in class AbstractPage
public void genHTML(PrintWriter out) throws IOException
HTMLViewer
genHTML
in interface HTMLViewer
genHTML
in class AbstractPage
out
- the writer where to write the HTML code.
IOException
public void genBody(PrintWriter out) throws IOException
AbstractView
genBody
in class AbstractView
IOException
AbstractView.genPage(PrintWriter)
public void restoreContext()
DialogView
restoreContext
in interface DialogView
public void onOK(JacRequest request)
WindowListener
onOK
in interface WindowListener
request
- the servlet requestpublic void onRefresh(JacRequest request)
WindowListener
onRefresh
in interface WindowListener
request
- the servlet requestpublic void onValidate(JacRequest request)
WindowListener
onValidate
in interface WindowListener
public void onCancel()
WindowListener
onCancel
in interface WindowListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |