com.xpn.xwiki.gwt.api.client.dialog
Class Dialog

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.user.client.ui.SimplePanel
                  extended by com.google.gwt.user.client.ui.PopupPanel
                      extended by com.google.gwt.user.client.ui.DecoratedPopupPanel
                          extended by com.google.gwt.user.client.ui.DialogBox
                              extended by com.xpn.xwiki.gwt.api.client.dialog.DefaultDialog
                                  extended by com.xpn.xwiki.gwt.api.client.dialog.Dialog
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasCloseHandlers<com.google.gwt.user.client.ui.PopupPanel>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.EventPreview, com.google.gwt.user.client.ui.HasAnimation, com.google.gwt.user.client.ui.HasHTML, com.google.gwt.user.client.ui.HasText, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.MouseListener, com.google.gwt.user.client.ui.SourcesPopupEvents, java.lang.Iterable<com.google.gwt.user.client.ui.Widget>
Direct Known Subclasses:
ChoiceDialog, CustomDialog, MessageDialog

public class Dialog
extends DefaultDialog

See the NOTICE file distributed with this work for additional information regarding copyright ownership.

This is free software;you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation;either version2.1of the License,or(at your option)any later version.

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this software;if not,write to the Free Software Foundation,Inc.,51 Franklin St,Fifth Floor,Boston,MA 02110-1301 USA,or see the FSF site:http://www.fsf.org.

Author:
ldubost

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.DialogBox
com.google.gwt.user.client.ui.DialogBox.Caption
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.PopupPanel
com.google.gwt.user.client.ui.PopupPanel.PositionCallback
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
protected  XWikiGWTApp app
           
static int BUTTON_CANCEL
           
static int BUTTON_NEXT
           
static int BUTTON_PREVIOUS
           
protected  java.lang.String cancelText
           
protected  java.lang.Object currentResult
           
protected  com.google.gwt.user.client.rpc.AsyncCallback nextCallback
           
protected  java.lang.String nextText
           
protected  java.lang.String previousText
           
protected  Wizard wizard
           
 
Fields inherited from class com.xpn.xwiki.gwt.api.client.dialog.DefaultDialog
contentPanel
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
Dialog(XWikiGWTApp app, java.lang.String name, int buttonModes)
          Dialog
Dialog(XWikiGWTApp app, java.lang.String name, int buttonModes, com.google.gwt.user.client.rpc.AsyncCallback nextCallback)
          Dialog
 
Method Summary
protected  void cancelDialog()
           
protected  void cancelDialogAsBack()
           
protected  void endDialog()
           
protected  com.google.gwt.user.client.ui.Panel getActionsPanel()
           
 int getButtonModes()
           
 java.lang.String getCancelText()
           
 java.lang.String getCSSName(java.lang.String name)
           
 java.lang.String getCSSName(java.lang.String module, java.lang.String name)
           
 java.lang.String getCssPrefix()
           
 java.lang.Object getCurrentResult()
           
 java.lang.String getDialogTranslationName()
           
 java.lang.String getName()
           
 com.google.gwt.user.client.rpc.AsyncCallback getNextCallback()
           
 java.lang.String getNextText()
           
 java.lang.String getPreviousText()
           
 Wizard getWizard()
           
 void setAsyncCallback(com.google.gwt.user.client.rpc.AsyncCallback nextCallback)
           
 void setButtonModes(int buttonModes)
           
 void setCancelText(java.lang.String cancelText)
           
 void setCssPrefix(java.lang.String cssPrefix)
           
 void setCurrentResult(java.lang.Object result)
           
 void setDialogTranslationName(java.lang.String dialogTranslationName)
           
 void setName(java.lang.String name)
           
 void setNextCallback(com.google.gwt.user.client.rpc.AsyncCallback nextCallback)
           
 void setNextText(java.lang.String nextText)
           
 void setPreviousText(java.lang.String previousText)
           
 void setWizard(Wizard wizard)
           
 
Methods inherited from class com.xpn.xwiki.gwt.api.client.dialog.DefaultDialog
add, hide, show
 
Methods inherited from class com.google.gwt.user.client.ui.DialogBox
beginDragging, continueDragging, doAttachChildren, doDetachChildren, endDragging, getCaption, getHTML, getText, onBrowserEvent, onEnsureDebugId, onMouseDown, onMouseEnter, onMouseLeave, onMouseMove, onMouseUp, onPreviewNativeEvent, setHTML, setText
 
Methods inherited from class com.google.gwt.user.client.ui.DecoratedPopupPanel
clear, getCellElement, getWidget, iterator, remove, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.PopupPanel
addAutoHidePartner, addCloseHandler, addPopupListener, center, getContainerElement, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, hide, isAnimationEnabled, isAutoHideEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAutoHideEnabled, setHeight, setModal, setPopupPosition, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setVisible, setWidth, showRelativeTo
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
adopt, adopt, disown, onLoad, orphan
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addDomHandler, addHandler, delegateEvent, fireEvent, getHandlerCount, getParent, isAttached, isOrWasAttached, onAttach, onDetach, removeFromParent, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Field Detail

BUTTON_CANCEL

public static int BUTTON_CANCEL

BUTTON_PREVIOUS

public static int BUTTON_PREVIOUS

BUTTON_NEXT

public static int BUTTON_NEXT

app

protected XWikiGWTApp app

nextCallback

protected com.google.gwt.user.client.rpc.AsyncCallback nextCallback

currentResult

protected java.lang.Object currentResult

wizard

protected Wizard wizard

cancelText

protected java.lang.String cancelText

previousText

protected java.lang.String previousText

nextText

protected java.lang.String nextText
Constructor Detail

Dialog

public Dialog(XWikiGWTApp app,
              java.lang.String name,
              int buttonModes)
Dialog

Parameters:
app - XWiki GWT App object to access translations and css prefix names
name - dialog name
buttonModes - button modes Dialog.BUTTON_CANCEL|Dialog.BUTTON_NEXT for Cancel / Next

Dialog

public Dialog(XWikiGWTApp app,
              java.lang.String name,
              int buttonModes,
              com.google.gwt.user.client.rpc.AsyncCallback nextCallback)
Dialog

Parameters:
app - XWiki GWT App object to access translations and css prefix names
name - dialog name
buttonModes - button modes Dialog.BUTTON_CANCEL|Dialog.BUTTON_NEXT for Cancel / Next
nextCallback - Callback when dialog is finished
Method Detail

setAsyncCallback

public void setAsyncCallback(com.google.gwt.user.client.rpc.AsyncCallback nextCallback)

setWizard

public void setWizard(Wizard wizard)

getWizard

public Wizard getWizard()

getCSSName

public java.lang.String getCSSName(java.lang.String name)

getCSSName

public java.lang.String getCSSName(java.lang.String module,
                                   java.lang.String name)

getCurrentResult

public java.lang.Object getCurrentResult()

setCurrentResult

public void setCurrentResult(java.lang.Object result)

getActionsPanel

protected com.google.gwt.user.client.ui.Panel getActionsPanel()

endDialog

protected void endDialog()

cancelDialog

protected void cancelDialog()

cancelDialogAsBack

protected void cancelDialogAsBack()

getCancelText

public java.lang.String getCancelText()

setCancelText

public void setCancelText(java.lang.String cancelText)

getPreviousText

public java.lang.String getPreviousText()

setPreviousText

public void setPreviousText(java.lang.String previousText)

getNextText

public java.lang.String getNextText()

setNextText

public void setNextText(java.lang.String nextText)

getName

public java.lang.String getName()

getNextCallback

public com.google.gwt.user.client.rpc.AsyncCallback getNextCallback()

setNextCallback

public void setNextCallback(com.google.gwt.user.client.rpc.AsyncCallback nextCallback)

setName

public void setName(java.lang.String name)

getDialogTranslationName

public java.lang.String getDialogTranslationName()

setDialogTranslationName

public void setDialogTranslationName(java.lang.String dialogTranslationName)

getCssPrefix

public java.lang.String getCssPrefix()

setCssPrefix

public void setCssPrefix(java.lang.String cssPrefix)

getButtonModes

public int getButtonModes()

setButtonModes

public void setButtonModes(int buttonModes)


Copyright © 2004-2009 XWiki. All Rights Reserved.