com.xpn.xwiki.gwt.api.client.dialog
Class Dialog
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.SimplePanel
com.google.gwt.user.client.ui.PopupPanel
asquare.gwt.tk.client.ui.ModalDialog
com.xpn.xwiki.gwt.api.client.dialog.Dialog
- All Implemented Interfaces:
- asquare.gwt.tk.client.ui.behavior.ControllerSupport, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.EventPreview, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.SourcesPopupEvents
- Direct Known Subclasses:
- ChoiceDialog, CustomDialog, MessageDialog
public class Dialog
- extends asquare.gwt.tk.client.ui.ModalDialog
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 classes/interfaces inherited from class asquare.gwt.tk.client.ui.ModalDialog |
asquare.gwt.tk.client.ui.ModalDialog.CaptionWrapper, asquare.gwt.tk.client.ui.ModalDialog.DragStyleController, asquare.gwt.tk.client.ui.ModalDialog.FocusOnCloseController, asquare.gwt.tk.client.ui.ModalDialog.InitializeFocusController, asquare.gwt.tk.client.ui.ModalDialog.PositionDialogController |
| Fields inherited from class asquare.gwt.tk.client.ui.ModalDialog |
s_focusImpl, STYLENAME_CAPTION, STYLENAME_CONTENT, STYLENAME_DIALOG, STYLENAME_DRAGGING, STYLENAME_GLASSPANEL |
|
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 |
| Methods inherited from class asquare.gwt.tk.client.ui.ModalDialog |
add, addController, createCaptionControllers, createControllers, getContentElement, getContentMinHeight, getContentMinWidth, getContentOffsetHeight, getContentOffsetWidth, getController, getFocusModel, getFocusOnCloseWidget, getGlassPanel, hide, onAttach, onBrowserEvent, onDetach, remove, removeController, setCaption, setCaption, setContentHeight, setContentMinHeight, setContentMinWidth, setContentWidth, setControllers, setFocusModel, show, show, sinkEvents, unsinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.PopupPanel |
addPopupListener, getPopupLeft, getPopupTop, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, removePopupListener, setPopupPosition |
| Methods inherited from class com.google.gwt.user.client.ui.SimplePanel |
getContainerElement, getWidget, iterator, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.Panel |
adopt, clear, disown |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
getParent, isAttached, onLoad, removeFromParent |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getTitle, isVisible, isVisible, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setTitle, setVisible, setVisible, setWidth, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
Dialog
public Dialog(XWikiGWTApp app,
java.lang.String name,
int buttonModes)
- Dialog
- Parameters:
app - XWiki GWT App object to access translations and css prefix namesname - dialog namebuttonModes - 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 namesname - dialog namebuttonModes - button modes Dialog.BUTTON_CANCEL|Dialog.BUTTON_NEXT for Cancel / NextnextCallback - Callback when dialog is finished
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-2008 XWiki. All Rights Reserved.