org.zkoss.zul.impl
Class MessageboxDlg

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.zkoss.zul.impl.MessageboxDlg
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.zkoss.zk.ui.Component, org.zkoss.zk.ui.IdSpace, org.zkoss.zk.ui.sys.ComponentCtrl

public class MessageboxDlg
extends Window

Used with Messagebox to implement a message box.

Author:
tomyeh
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 int IGNORE
          A IGNORE button.
static int NO
          A No button.
static int OK
          A OK button.
static int RETRY
          A Retry button.
static int YES
          A Yes button.
 
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
MessageboxDlg()
           
 
Method Summary
 void endModal(int button)
          Called only internally.
 int getResult()
          Returns the result which is the button being pressed.
 void onCancel()
           
 void onOK()
           
 void setButtons(int buttons)
          Sets what buttons are allowed.
 
Methods inherited from class org.zkoss.zul.Window
clone, doEmbedded, doHighlighted, doModal, doOverlapped, doPopup, getBorder, getCaption, getContentSclass, getContentStyle, getCtrlKeys, getMode, getOuterAttrs, getPosition, getRealStyle, getSclass, getTitle, getTitleSclass, inEmbedded, inHighlighted, inModal, inOverlapped, inPopup, insertBefore, isClosable, isSizable, newExtraCtrl, onChildRemoved, onClose, onModal, setBorder, setClosable, setContentStyle, setCtrlKeys, setDraggable, setMode, setMode, setPage, setParent, setPosition, setSizable, setTitle, setVisible
 
Methods inherited from class org.zkoss.zul.impl.XulElement
getAction, getAllOnClickAttrs, getContext, getInnerAttrs, getPopup, getTooltip, setAction, setContext, setPopup, setTooltip
 
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
addEventListener, appendAsapAttr, focus, getDraggable, getDroppable, getHeight, getLeft, getRealStyleFlags, getStyle, getTooltiptext, getTop, getWidth, getZIndex, isAsapRequired, removeEventListener, setClass, setDroppable, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZIndex
 
Methods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addAnnotation, addEventHandler, addSharedAnnotationMap, addSharedEventHandlerMap, appendChild, applyProperties, containsVariable, detach, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getDefinition, getDesktop, getEventHandler, getExtraCtrl, getFellow, getFellowIfAny, getId, getListenerIterator, getMold, getMoldURI, getNamespace, getPage, getParent, getPropagatee, getRoot, getSpaceOwner, getUuid, getVariable, invalidate, isChildable, isListenerAvailable, isVisible, onChildAdded, onDrawNewChild, onWrongValue, redraw, removeAttribute, removeAttribute, removeChild, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, setMold, setVariable, smartUpdate, smartUpdate, smartUpdate, 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
 

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
Constructor Detail

MessageboxDlg

public MessageboxDlg()
Method Detail

onOK

public void onOK()

onCancel

public void onCancel()

setButtons

public void setButtons(int buttons)
Sets what buttons are allowed.


endModal

public void endModal(int button)
Called only internally.


getResult

public int getResult()
Returns the result which is the button being pressed.



Copyright © 2005-2007 Potix Corporation. All Rights Reserved.