org.objectweb.jac.aspects.gui.web
Class RefreshPage
java.lang.Object
|
+--org.objectweb.jac.aspects.gui.web.AbstractView
|
+--org.objectweb.jac.aspects.gui.web.AbstractPage
|
+--org.objectweb.jac.aspects.gui.web.Page
|
+--org.objectweb.jac.aspects.gui.web.RefreshPage
- All Implemented Interfaces:
- DialogView, HTMLViewer, View, ViewIdentity, WindowListener, WindowView
- public class RefreshPage
- extends Page
- implements DialogView
An HTML page containing a View and a close button.
Method Summary |
void |
genBody(PrintWriter out)
Override this method to generate the body of an HTML page. |
void |
onClose()
|
void |
onRefresh(JacRequest request)
Called when the Refresh button was pressed by the user. |
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.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 |
RefreshPage
public RefreshPage(View view)
genBody
public void genBody(PrintWriter out)
throws IOException
- Description copied from class:
AbstractView
- Override this method to generate the body of an HTML page.
- Overrides:
genBody
in class Page
IOException
- See Also:
AbstractView.genPage(PrintWriter)
waitForClose
public boolean waitForClose()
throws TimeoutException
- Description copied from interface:
DialogView
- Waits until the dialog is closed or timeout iccurs.
- Specified by:
waitForClose
in interface DialogView
- Returns:
- true if the dialog was validated with the OK button by
the user, false otherwise
TimeoutException
restoreContext
public void restoreContext()
- Description copied from interface:
DialogView
- Restore context attributes memorized at creation time
- Specified by:
restoreContext
in interface DialogView
onRefresh
public void onRefresh(JacRequest request)
- Description copied from interface:
WindowListener
- Called when the Refresh button was pressed by the user. Validates
editors and but does not close the window.
- Specified by:
onRefresh
in interface WindowListener
- Overrides:
onRefresh
in class Page
- Parameters:
request
- the servlet request
onClose
public void onClose()