Adempiere 3.5.2a

org.adempiere.webui.component
Class Messagebox

java.lang.Object
  extended by org.zkoss.zk.ui.AbstractComponent
      extended by org.zkoss.zk.ui.HtmlBasedComponent
          extended by org.zkoss.zul.impl.XulElement
              extended by org.zkoss.zul.Window
                  extended by org.adempiere.webui.component.Window
                      extended by org.adempiere.webui.component.Messagebox
All Implemented Interfaces:
Serializable, Cloneable, Component, EventListener, IdSpace, ComponentCtrl

public class Messagebox
extends Window
implements EventListener

Messagebox : Replaces ZK's Messagebox

Author:
Niraj Sohun
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.zkoss.zul.Window
Window.ExtraCtrl
 
Field Summary
static int ABORT
          A Abort button.
static int CANCEL
          A Cancel button.
static String ERROR
          A symbol consisting of a white X in a circle with a red background.
static String EXCLAMATION
          A symbol consisting of an exclamation point in a triangle with a yellow background.
static int IGNORE
          A IGNORE button.
static String INFORMATION
          A symbol of a lowercase letter i in a circle.
static int NO
          A No button.
static String NONE
          Contains no symbols.
static int OK
          A OK button.
static String QUESTION
          A symbol consisting of a question mark in a circle.
static int RETRY
          A Retry button.
static int YES
          A Yes button.
 
Fields inherited from class org.adempiere.webui.component.Window
MODE_EMBEDDED, MODE_MODAL, MODE_OVERLAPPED, MODE_POPUP
 
Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent
RS_NO_DISPLAY, RS_NO_HEIGHT, RS_NO_WIDTH
 
Fields inherited from interface org.zkoss.zk.ui.Component
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
 
Constructor Summary
Messagebox()
           
 
Method Summary
 void onEvent(Event event)
           
 int show(String message, String title, int buttons, String icon)
           
static int showDialog(String message, String title, int buttons, String icon)
           
 
Methods inherited from class org.zkoss.zul.Window
clone, doEmbedded, doHighlighted, doModal, doOverlapped, doPopup, getBorder, getCaption, getContentSclass, getContentStyle, getDefaultActionOnShow, getMode, getOuterAttrs, getPosition, getRealStyle, getSclass, getTitle, getTitleSclass, inEmbedded, inHighlighted, inModal, inOverlapped, inPopup, insertBefore, isClosable, isSizable, newExtraCtrl, onChildRemoved, onClose, onModal, setBorder, setClosable, setContentSclass, setContentStyle, setDefaultActionOnShow, setDraggable, setMode, setMode, setPage, setParent, setPosition, setSclass, setSizable, setTitle, setVisible
 
Methods inherited from class org.zkoss.zul.impl.XulElement
getAction, getActionAttrs, getAllOnClickAttrs, getContext, getCtrlKeys, getInnerAttrs, getPopup, getTooltip, setAction, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip
 
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
focus, getAllOnClickAttrs, getDraggable, getDroppable, getHeight, getLeft, getRealSclass, getRealStyleFlags, getStyle, getTooltiptext, getTop, getWidth, getZIndex, setClass, setDroppable, setFocus, setHeight, setLeft, setStyle, setTooltiptext, setTop, setWidth, setZIndex
 
Methods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addAnnotation, addEventHandler, addEventListener, addForward, addForward, addForward, addForward, addMoved, addSharedAnnotationMap, addSharedEventHandlerMap, appendAsapAttr, appendAsapAttr, appendChild, applyProperties, containsVariable, detach, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getCommand, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getExtraCtrl, getFellow, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getMoldURI, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getPropagatee, getRoot, getSpaceOwner, getUuid, getVariable, invalidate, isAsapRequired, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onDrawNewChild, onPageAttached, onPageDetached, onWrongValue, redraw, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, setMold, setPageBefore, setVariable, smartUpdate, smartUpdate, smartUpdate, smartUpdateDeferred, smartUpdateValues, toString, unsetVariable
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.zkoss.zk.ui.IdSpace
getFellow, getFellowIfAny, getFellows
 

Field Detail

OK

public static final int OK
A OK button.

See Also:
Constant Field Values

CANCEL

public static final int CANCEL
A Cancel button.

See Also:
Constant Field Values

YES

public static final int YES
A Yes button.

See Also:
Constant Field Values

NO

public static final int NO
A No button.

See Also:
Constant Field Values

ABORT

public static final int ABORT
A Abort button.

See Also:
Constant Field Values

RETRY

public static final int RETRY
A Retry button.

See Also:
Constant Field Values

IGNORE

public static final int IGNORE
A IGNORE button.

See Also:
Constant Field Values

QUESTION

public static final String QUESTION
A symbol consisting of a question mark in a circle.

See Also:
Constant Field Values

EXCLAMATION

public static final String EXCLAMATION
A symbol consisting of an exclamation point in a triangle with a yellow background.

See Also:
Constant Field Values

INFORMATION

public static final String INFORMATION
A symbol of a lowercase letter i in a circle.

See Also:
Constant Field Values

ERROR

public static final String ERROR
A symbol consisting of a white X in a circle with a red background.

See Also:
Constant Field Values

NONE

public static final String NONE
Contains no symbols.

Constructor Detail

Messagebox

public Messagebox()
Method Detail

show

public int show(String message,
                String title,
                int buttons,
                String icon)
         throws InterruptedException
Throws:
InterruptedException

showDialog

public static int showDialog(String message,
                             String title,
                             int buttons,
                             String icon)
                      throws InterruptedException
Throws:
InterruptedException

onEvent

public void onEvent(Event event)
             throws Exception
Specified by:
onEvent in interface EventListener
Throws:
Exception

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.