|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wewebu.ow.server.ui.OwEventTarget
com.wewebu.ow.server.ui.OwView
com.wewebu.ow.server.ui.OwLayout
com.wewebu.ow.server.ui.OwDialog
com.wewebu.ow.server.app.OwStandardDialog
com.wewebu.ow.server.app.OwMessageBox
public class OwMessageBox
Generic Message Box with OK and Cancel button.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.wewebu.ow.server.ui.OwDialog |
---|
OwDialog.OwDialogListener |
Nested classes/interfaces inherited from class com.wewebu.ow.server.ui.OwLayout |
---|
OwLayout.OwDispatchRegion |
Field Summary | |
---|---|
static int |
ACTION_STYLE_BUTTON
action style link - render yes,no,ok or cancel as buttons |
static int |
ACTION_STYLE_LINK
action style link - render yes,no,ok or cancel as anchors |
static int |
ICON_TYPE_EXCLAMATION
icon type of messagebox to create |
static int |
ICON_TYPE_INFO
icon type of messagebox to create |
static int |
ICON_TYPE_QUESTION
icon type of messagebox to create |
static int |
ICON_TYPE_WARNING
icon type of messagebox to create |
static int |
TYPE_CANCEL
type of messagebox to create |
static int |
TYPE_OK
type of messagebox to create |
static int |
TYPE_OK_CANCEL
type of messagebox to create |
static int |
TYPE_YES_NO
type of messagebox to create |
static int |
TYPE_YES_NO_CANCEL
type of messagebox to create |
Fields inherited from class com.wewebu.ow.server.app.OwStandardDialog |
---|
CLOSE_BTN_REGION, FOOTER_REGION, HELP_BTN_REGION, INFO_ICON_REGION, LEFT_REGION, m_strHelpPath, m_strInfoIconURL, m_strTitle, MAIN_REGION, MENU_REGION, RIGHT_REGION, STANDARD_DIALOG_REGION_MAX, TITLE_REGION |
Fields inherited from class com.wewebu.ow.server.ui.OwDialog |
---|
m_iDEBUG_DocumentViewSize, m_iDEBUG_InitDocument, m_iDEBUG_TargetCount, m_Listener |
Fields inherited from class com.wewebu.ow.server.ui.OwLayout |
---|
m_Regions |
Fields inherited from class com.wewebu.ow.server.ui.OwView |
---|
CURRENT_MODULE_KEY, FORMULAR_PLACEHOLDER_END_DELIMITER, FORMULAR_PLACEHOLDER_START_DELIMITER, m_externalFormEventTarget |
Fields inherited from interface com.wewebu.ow.server.ui.OwBaseView |
---|
EMPTY_STRING |
Constructor Summary | |
---|---|
OwMessageBox(int type_p,
int actionStyle_p,
int icontype_p,
String strTitle_p,
String strText_p)
construct a message box with given type |
|
OwMessageBox(int type_p,
int icontype_p,
String strTitle_p,
String strText_p)
construct a message box with given type |
Method Summary | |
---|---|
void |
init()
init the target after the context is set. |
void |
onCancel()
overridable |
void |
onCancel(javax.servlet.http.HttpServletRequest request_p)
called when user pressed the Cancel button |
void |
onNo()
overridable |
void |
onNo(javax.servlet.http.HttpServletRequest request_p)
called when user pressed the No button |
void |
onOK()
overridable |
void |
onOK(javax.servlet.http.HttpServletRequest request_p)
called when user pressed the OK button |
void |
onYes()
overridable |
void |
onYes(javax.servlet.http.HttpServletRequest request_p)
called when user pressed the Yes anchor |
void |
renderRegion(Writer w_p,
int iRegion_p)
render only a region in the view, used by derived classes |
Methods inherited from class com.wewebu.ow.server.app.OwStandardDialog |
---|
getInfoIcon, getTitle, hasHelpButton, isRegion, onClose, onHelp, onRender, renderCloseButton, renderHelpButton, setHelp, setInfoIcon, setTitle |
Methods inherited from class com.wewebu.ow.server.ui.OwDialog |
---|
closeDialog, setListener |
Methods inherited from class com.wewebu.ow.server.ui.OwLayout |
---|
addRegion, addView, addView, addViewReference, getIterator, getViewRegion, isRegionMaximized, isRegionMinimized, isRegionNormal, renderNamedRegion |
Methods inherited from class com.wewebu.ow.server.ui.OwView |
---|
activate, detach, getBreadcrumbPart, getDocument, getExternalFormEventTarget, getFormName, getFormTarget, getIcon, getMaximizeView, getParent, getRenderedNamedRegion, getRenderedRegion, getViewList, isFormTargetExternal, isNamedRegion, isShowMaximized, isShowMinimized, isShowNormal, onActivate, onUpdate, render, renderHTMLFormular, serverSideDesignInclude, serverSideInclude, setDocument, setExternalFormTarget, setMaximizeView, setParent, showMaximized, showMinimized, showNormal, usesFormWithAttributes |
Methods inherited from class com.wewebu.ow.server.ui.OwEventTarget |
---|
attach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest, updateExternalFormTarget |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_OK
public static final int TYPE_CANCEL
public static final int TYPE_OK_CANCEL
public static final int TYPE_YES_NO
public static final int TYPE_YES_NO_CANCEL
public static final int ICON_TYPE_QUESTION
public static final int ICON_TYPE_EXCLAMATION
public static final int ICON_TYPE_WARNING
public static final int ICON_TYPE_INFO
public static final int ACTION_STYLE_LINK
public static final int ACTION_STYLE_BUTTON
Constructor Detail |
---|
public OwMessageBox(int type_p, int icontype_p, String strTitle_p, String strText_p)
type_p
- int type of message box buttonsicontype_p
- int type of message box icon / behaviorstrTitle_p
- StringstrText_p
- Stringpublic OwMessageBox(int type_p, int actionStyle_p, int icontype_p, String strTitle_p, String strText_p)
type_p
- int type of message box buttonsicontype_p
- int type of message box icon / behavioractionStyle_p
- link render style (one of ACTION_STYLE_LINK
or ACTION_STYLE_BUTTON
).
if invalid value ACTION_STYLE_LINK
is usedstrTitle_p
- StringstrText_p
- StringMethod Detail |
---|
public void init() throws Exception
OwView
init
in class OwView
Exception
public void renderRegion(Writer w_p, int iRegion_p) throws Exception
renderRegion
in interface OwBaseView
renderRegion
in class OwStandardDialog
w_p
- Writer object to write HTML toiRegion_p
- ID of the region to render
Exception
public void onOK(javax.servlet.http.HttpServletRequest request_p) throws Exception
Exception
public void onCancel(javax.servlet.http.HttpServletRequest request_p) throws Exception
Exception
public void onYes(javax.servlet.http.HttpServletRequest request_p) throws Exception
Exception
public void onNo(javax.servlet.http.HttpServletRequest request_p) throws Exception
Exception
public void onOK() throws Exception
Exception
public void onCancel() throws Exception
Exception
public void onYes() throws Exception
Exception
public void onNo() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |