com.wewebu.ow.server.app
Class OwMessageBox

java.lang.Object
  extended by com.wewebu.ow.server.ui.OwEventTarget
      extended by com.wewebu.ow.server.ui.OwView
          extended by com.wewebu.ow.server.ui.OwLayout
              extended by com.wewebu.ow.server.ui.OwDialog
                  extended by com.wewebu.ow.server.app.OwStandardDialog
                      extended by com.wewebu.ow.server.app.OwMessageBox
All Implemented Interfaces:
OwBaseView, OwUpdateTarget
Direct Known Subclasses:
OwMultipleSelectionCall.OwValidatorMessageBox

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


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

TYPE_OK

public static final int TYPE_OK
type of messagebox to create

See Also:
Constant Field Values

TYPE_CANCEL

public static final int TYPE_CANCEL
type of messagebox to create

See Also:
Constant Field Values

TYPE_OK_CANCEL

public static final int TYPE_OK_CANCEL
type of messagebox to create

See Also:
Constant Field Values

TYPE_YES_NO

public static final int TYPE_YES_NO
type of messagebox to create

See Also:
Constant Field Values

TYPE_YES_NO_CANCEL

public static final int TYPE_YES_NO_CANCEL
type of messagebox to create

See Also:
Constant Field Values

ICON_TYPE_QUESTION

public static final int ICON_TYPE_QUESTION
icon type of messagebox to create

See Also:
Constant Field Values

ICON_TYPE_EXCLAMATION

public static final int ICON_TYPE_EXCLAMATION
icon type of messagebox to create

See Also:
Constant Field Values

ICON_TYPE_WARNING

public static final int ICON_TYPE_WARNING
icon type of messagebox to create

See Also:
Constant Field Values

ICON_TYPE_INFO

public static final int ICON_TYPE_INFO
icon type of messagebox to create

See Also:
Constant Field Values

ACTION_STYLE_LINK

public static final int ACTION_STYLE_LINK
action style link - render yes,no,ok or cancel as anchors

See Also:
Constant Field Values

ACTION_STYLE_BUTTON

public static final int ACTION_STYLE_BUTTON
action style link - render yes,no,ok or cancel as buttons

See Also:
Constant Field Values
Constructor Detail

OwMessageBox

public OwMessageBox(int type_p,
                    int icontype_p,
                    String strTitle_p,
                    String strText_p)
construct a message box with given type

Parameters:
type_p - int type of message box buttons
icontype_p - int type of message box icon / behavior
strTitle_p - String
strText_p - String

OwMessageBox

public OwMessageBox(int type_p,
                    int actionStyle_p,
                    int icontype_p,
                    String strTitle_p,
                    String strText_p)
construct a message box with given type

Parameters:
type_p - int type of message box buttons
icontype_p - int type of message box icon / behavior
actionStyle_p - link render style (one of ACTION_STYLE_LINK or ACTION_STYLE_BUTTON). if invalid value ACTION_STYLE_LINK is used
strTitle_p - String
strText_p - String
Method Detail

init

public void init()
          throws Exception
Description copied from class: OwView
init the target after the context is set.

Overrides:
init in class OwView
Throws:
Exception

renderRegion

public void renderRegion(Writer w_p,
                         int iRegion_p)
                  throws Exception
render only a region in the view, used by derived classes

Specified by:
renderRegion in interface OwBaseView
Overrides:
renderRegion in class OwStandardDialog
Parameters:
w_p - Writer object to write HTML to
iRegion_p - ID of the region to render
Throws:
Exception

onOK

public void onOK(javax.servlet.http.HttpServletRequest request_p)
          throws Exception
called when user pressed the OK button

Throws:
Exception

onCancel

public void onCancel(javax.servlet.http.HttpServletRequest request_p)
              throws Exception
called when user pressed the Cancel button

Throws:
Exception

onYes

public void onYes(javax.servlet.http.HttpServletRequest request_p)
           throws Exception
called when user pressed the Yes anchor

Throws:
Exception

onNo

public void onNo(javax.servlet.http.HttpServletRequest request_p)
          throws Exception
called when user pressed the No button

Throws:
Exception

onOK

public void onOK()
          throws Exception
overridable

Throws:
Exception

onCancel

public void onCancel()
              throws Exception
overridable

Throws:
Exception

onYes

public void onYes()
           throws Exception
overridable

Throws:
Exception

onNo

public void onNo()
          throws Exception
overridable

Throws:
Exception


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.