org.eaglei.datatools.client.ui.widgets
Class WorkspaceChooserPopup

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 org.eaglei.datatools.client.ui.widgets.EIConfirmationPopup
                          extended by org.eaglei.datatools.client.ui.widgets.WorkspaceChooserPopup
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, 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.AcceptsOneWidget, com.google.gwt.user.client.ui.HasAnimation, com.google.gwt.user.client.ui.HasOneWidget, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, com.google.gwt.user.client.ui.SourcesPopupEvents, java.lang.Iterable<com.google.gwt.user.client.ui.Widget>

public class WorkspaceChooserPopup
extends EIConfirmationPopup

WorkspaceChooserPopup is a Dialog box which enable user to choose the workspace out of all the workspaces he has access to , It will present user with radiobuttons list of workspace. You can get the selected workspace by call getSelectedWorkspace() This dialog will only showup when the user has access to more then one workspace.

Author:
Sravan Cheriyala

Nested Class Summary
 
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
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
WorkspaceChooserPopup(java.util.List<org.eaglei.datatools.Workspace> workspaces)
           
 
Method Summary
 org.eaglei.datatools.Workspace getSelectedWorkspace()
           
 java.util.List<org.eaglei.datatools.Workspace> getWorkspaces()
           
 com.google.gwt.user.client.ui.Panel makeRadioButtonChoicesUI(java.util.List<org.eaglei.datatools.Workspace> workspaces)
           
 void setWorkspaces(java.util.List<org.eaglei.datatools.Workspace> workspaces)
           
 void show()
           
 
Methods inherited from class org.eaglei.datatools.client.ui.widgets.EIConfirmationPopup
add, addConfirmClickHandler
 
Methods inherited from class com.google.gwt.user.client.ui.PopupPanel
addAutoHidePartner, addCloseHandler, addPopupListener, center, getContainerElement, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, hide, hide, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onPreviewNativeEvent, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled, setGlassEnabled, setGlassStyleName, setHeight, setModal, setPopupPosition, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setVisible, setWidget, setWidth, showRelativeTo
 
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel
getWidget, iterator, remove, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, removeFromParent, setLayoutData, 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, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, 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
 

Constructor Detail

WorkspaceChooserPopup

public WorkspaceChooserPopup(java.util.List<org.eaglei.datatools.Workspace> workspaces)
Method Detail

getWorkspaces

public java.util.List<org.eaglei.datatools.Workspace> getWorkspaces()

setWorkspaces

public void setWorkspaces(java.util.List<org.eaglei.datatools.Workspace> workspaces)

makeRadioButtonChoicesUI

public com.google.gwt.user.client.ui.Panel makeRadioButtonChoicesUI(java.util.List<org.eaglei.datatools.Workspace> workspaces)

getSelectedWorkspace

public org.eaglei.datatools.Workspace getSelectedWorkspace()

show

public void show()
Overrides:
show in class com.google.gwt.user.client.ui.PopupPanel


Copyright © 2009-2011 Eagle-I. All Rights Reserved.