public class OwMessageBox extends OwStandardDialog
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
OwDialog.OwDialogListener
OwLayout.OwDispatchRegion, OwLayout.OwLayoutViewRefrence
Modifier and Type | Field and Description |
---|---|
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
|
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
m_iDEBUG_DocumentViewSize, m_iDEBUG_InitDocument, m_iDEBUG_TargetCount, m_Listener
CURRENT_MODULE_KEY, FORMULAR_PLACEHOLDER_END_DELIMITER, FORMULAR_PLACEHOLDER_START_DELIMITER, m_externalFormEventTarget
EMPTY_STRING
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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
|
getInfoIcon, getTitle, hasHelpButton, isRegion, onClose, onHelp, onRender, renderCloseButton, renderHelpButton, setHelp, setInfoIcon, setTitle
closeDialog, setListener
addRegion, addView, addView, addViewReference, getIterator, getViewRegion, isRegionMaximized, isRegionMinimized, isRegionNormal, renderNamedRegion
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
attach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest, updateExternalFormTarget
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
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
- Stringpublic void init() throws Exception
OwView
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 renderException
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
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.