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

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 asquare.gwt.tk.client.ui.ModalDialog
                          extended by com.xpn.xwiki.gwt.api.client.dialog.Dialog
                              extended by com.xpn.xwiki.gwt.api.client.dialog.ChoiceDialog
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

public class ChoiceDialog
extends Dialog

Copyright 2006,XpertNet SARL,and individual contributors as indicated by the contributors.txt.

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 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
 
Field Summary
 
Fields inherited from class com.xpn.xwiki.gwt.api.client.dialog.Dialog
app, BUTTON_CANCEL, BUTTON_NEXT, BUTTON_PREVIOUS, cancelText, currentResult, nextText, previousText, wizard
 
Fields inherited from class asquare.gwt.tk.client.ui.ModalDialog
s_focusImpl, STYLENAME_CAPTION, STYLENAME_CONTENT, STYLENAME_DIALOG, STYLENAME_DRAGGING, STYLENAME_GLASSPANEL
 
Constructor Summary
ChoiceDialog(XWikiGWTApp app, java.lang.String name, int buttonModes, boolean autoSelect)
          Choice dialog
ChoiceDialog(XWikiGWTApp app, java.lang.String name, int buttonModes, boolean autoSelect, com.google.gwt.user.client.rpc.AsyncCallback nextCallback)
          Choice dialog
 
Method Summary
 void addChoice(ChoiceInfo choice)
           
 void addChoice(java.lang.String name)
           
 void onChoiceClick(com.xpn.xwiki.gwt.api.client.dialog.ChoiceDialog.ChoiceButton choiceButton)
           
 
Methods inherited from class com.xpn.xwiki.gwt.api.client.dialog.Dialog
cancelDialog, cancelDialogAsBack, endDialog, getActionsPanel, getButtonModes, getCancelText, getCSSName, getCSSName, getCssPrefix, getCurrentResult, getDialogTranslationName, getName, getNextCallback, getNextText, getPreviousText, getWizard, setAsyncCallback, setButtonModes, setCancelText, setCssPrefix, setCurrentResult, setDialogTranslationName, setName, setNextCallback, setNextText, setPreviousText, setWizard
 
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
 

Constructor Detail

ChoiceDialog

public ChoiceDialog(XWikiGWTApp app,
                    java.lang.String name,
                    int buttonModes,
                    boolean autoSelect)
Choice 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

ChoiceDialog

public ChoiceDialog(XWikiGWTApp app,
                    java.lang.String name,
                    int buttonModes,
                    boolean autoSelect,
                    com.google.gwt.user.client.rpc.AsyncCallback nextCallback)
Choice 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

addChoice

public void addChoice(java.lang.String name)

addChoice

public void addChoice(ChoiceInfo choice)

onChoiceClick

public void onChoiceClick(com.xpn.xwiki.gwt.api.client.dialog.ChoiceDialog.ChoiceButton choiceButton)


Copyright © 2004-2008 XWiki. All Rights Reserved.