public class WizardWindow
extends com.sencha.gxt.widget.core.client.Window
com.sencha.gxt.widget.core.client.Window.DefaultWindowMessages, com.sencha.gxt.widget.core.client.Window.WindowAppearance, com.sencha.gxt.widget.core.client.Window.WindowMessagescom.sencha.gxt.widget.core.client.ContentPanel.ContentPanelAppearance, com.sencha.gxt.widget.core.client.ContentPanel.ContentPanelMessages, com.sencha.gxt.widget.core.client.ContentPanel.DefaultContentPanelMessages, com.sencha.gxt.widget.core.client.ContentPanel.PanelHeaderAppearancecom.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Modifier and Type | Field and Description |
|---|---|
protected com.sencha.gxt.widget.core.client.button.TextButton |
backButton |
protected String |
BUTTONBACKLABEL |
protected String |
BUTTONFINISHLABEL |
protected String |
BUTTONNEXTLABEL |
protected com.sencha.gxt.widget.core.client.container.CardLayoutContainer |
cardContainer |
protected com.sencha.gxt.widget.core.client.toolbar.ToolBar |
cardMoveToolBar |
protected ArrayList<WizardCard> |
cardStack |
protected boolean |
checkBeforeClose |
protected com.google.web.bindery.event.shared.EventBus |
eventBus |
protected com.sencha.gxt.widget.core.client.toolbar.FillToolItem |
fillSpacingCardMoveToolBar |
protected ArrayList<WizardListener> |
listeners |
protected com.sencha.gxt.widget.core.client.button.TextButton |
nextButton |
protected com.google.gwt.user.client.Command |
nextButtonAction |
protected boolean |
nextCardFinish |
protected String |
originalTitle |
protected com.google.gwt.user.client.Command |
previousButtonAction |
protected boolean |
WIZARDCOLLAPSIBLE |
protected String |
WIZARDHEIGHT |
protected String |
WIZARDWIDTH |
protected boolean |
WIZARRESIZABLE |
ariaMoveResizeDistance, closeBtn, dragger, manager, removeFromParentOnHide, restoreBtnbuttonBar, header, secondPassRequiredresize, widgetforceLayoutCommand, forceLayoutOnResize, hadLayoutRunning, layoutCommand, layoutRequiredThisEventLoop, layoutRunningadjustSize, allowTextSelection, cacheSizes, disableContextMenu, disabled, disabledStyle, ensureVisibilityOnSizing, height, hidden, lastSize, layer, left, mask, maskMessage, monitorWindowResize, pageX, pageY, shim, tabIndex, toolTip, toolTipConfig, top, width, windowResizeDelay, windowResizeTask| Constructor and Description |
|---|
WizardWindow(String title)
Create a new Wizard Window with the specified title.
|
WizardWindow(String title,
com.google.web.bindery.event.shared.EventBus eventBus) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCard(WizardCard card)
Adds a card to this wizard.
|
void |
addListener(WizardListener listener) |
protected void |
addNextButtonListener(com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler listener)
Add a listener to the next button.
|
boolean |
checkBeforeClose() |
void |
close(boolean check) |
void |
fireAborted() |
void |
fireCompleted(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId id) |
void |
fireFailed(String title,
String message,
Throwable throwable) |
void |
firePutInBackground() |
ArrayList<WizardCard> |
getCardStack()
Returns the card list.
|
int |
getCardStackSize()
Returns the number of available cards.
|
int |
getCurrentCard()
Returns the current active card.
|
String |
getOriginalTitle() |
protected void |
initTools() |
void |
nextCard()
Shows the next available card.
|
void |
previousCard()
Shows the previous available card.
|
void |
removeCard(WizardCard card)
Remove a card to this wizard.
|
void |
removeListener(WizardListener listener) |
protected void |
setBackButtonText(String text)
Sets the back button label.
|
protected void |
setBackButtonVisible(boolean visible)
Sets visible back button.
|
void |
setCards(ArrayList<WizardCard> cards)
Set the card list.
|
void |
setEnableBackButton(boolean enable)
Enables the back button on the wizard.
|
void |
setEnableNextButton(boolean enable)
Enables the next button on the wizard.
|
void |
setNextButtonCommand(com.google.gwt.user.client.Command command)
Set the command for the next button.
|
protected void |
setNextButtonText(String text)
Sets the next button label.
|
void |
setNextButtonToFinish()
Sets the label of next button to "Finish" value and add a close command
to it.
|
protected void |
setNextButtonVisible(boolean visible)
Sets visible next button.
|
void |
setPreviousButtonCommand(com.google.gwt.user.client.Command command)
Set the command for the previous button.
|
void |
show() |
void |
showErrorAndHide(String title,
String message,
Throwable throwable) |
addActivateHandler, addDeactivateHandler, addMaximizeHandler, addMinimizeHandler, addRestoreHandler, afterShow, alignTo, center, createGhost, doFocus, fitContainer, focus, getConstrain, getContainer, getDraggable, getFocusWidget, getHideButton, getMinHeight, getMinWidth, getModalPanel, getResizable, getWindowMessages, ghost, hide, hide, isAutoHide, isBlinkModal, isClosable, isDraggable, isMaximizable, isMaximized, isMinimizable, isModal, isOnEsc, isResizable, maximize, minimize, onAfterFirstAttach, onBrowserEvent, onDetach, onDragCancel, onDragEnd, onDragMove, onDragStart, onEndResize, onKeyPress, onStartResize, onWindowResize, restore, setActive, setAutoHide, setBlinkModal, setClosable, setConstrain, setContainer, setDraggable, setFocusWidget, setMaximizable, setMinHeight, setMinimizable, setMinWidth, setModal, setOnEsc, setPagePosition, setPosition, setResizable, setWindowMessages, setZIndex, showWindow, toBack, toFront, unghostaddBeforeCollapseHandler, addBeforeExpandHandler, addButton, addCollapseHandler, addExpandHandler, addTool, adjustBodySize, afterCollapse, afterExpand, collapse, doAttachChildren, doDetachChildren, doLayout, expand, getAnimationDuration, getBody, getButtonAlign, getButtonBar, getContainerTarget, getFrameSize, getHeader, getHTML, getMessages, getMinButtonWidth, getText, isAnimCollapse, isCollapsed, isCollapsible, isExpanded, isHideCollapseTool, isTitleCollapse, layoutBars, onClick, onCollapse, onDisable, onEnable, onExpand, onResize, setAnimationDuration, setAnimCollapse, setBodyBorder, setBodyStyle, setBodyStyleName, setButtonAlign, setCollapsible, setExpanded, setHeaderVisible, setHeadingHtml, setHeadingHtml, setHeadingText, setHideCollapseTool, setMessages, setMinButtonWidth, setTitleCollapseadd, add, getWidget, isResize, onRemove, setResize, setWidget, setWidgetapplyLayout, applyLayout, forceLayout, forceLayoutOnChildren, forceLayoutOnChildren, getLeftRightMargins, getParentLayoutWidget, getSideMargins, getTopBottomMargins, isLayoutRunning, isOrWasLayoutRunning, isWidgetVisible, onBeforeDoLayout, onLoad, onResizeadd, addAddHandler, addBeforeAddHandler, addBeforeRemoveHandler, addContainerHandler, addRemoveHandler, adjustIndex, adopt, checkIndexBoundsForInsertion, clear, disable, doPhysicalAttach, doPhysicalDetach, enable, ensureGroupingHandlerRegistration, findWidget, getChildren, getItemByItemId, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, iterator, onInsert, onWidgetHide, onWidgetShow, orphan, remove, remove, removeaddBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleDependentName, addStyleOnOver, adjustPosition, adjustSize, applyState, assertAfterRender, assertPreRender, blur, clearSizeCache, disableContextMenu, disableEvents, enableEvents, fireCancellableEvent, fireEvent, getData, getElement, getFocusEl, getFocusSupport, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getPositionEl, getShadow, getStateId, getTabIndex, getToolTip, hideShadow, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isMonitorWindowResize, isRendered, isStateful, isVisible, isVisible, mask, mask, notifyHide, notifyShow, onAttach, onBlur, onFocus, onHide, onHideContextMenu, onPosition, onRightClick, onShow, onShowContextMenu, onUnload, removeStyleDependentName, removeStyleOnOver, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setId, setItemId, setMonitorWindowResize, setPixelSize, setShadow, setSize, setStateful, setStateId, setStyleDependentName, setTabIndex, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, sync, syncSize, unmaskaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEventsprotected String WIZARDWIDTH
protected String WIZARDHEIGHT
protected boolean WIZARRESIZABLE
protected boolean WIZARDCOLLAPSIBLE
protected String BUTTONBACKLABEL
protected String BUTTONNEXTLABEL
protected String BUTTONFINISHLABEL
protected ArrayList<WizardCard> cardStack
protected com.sencha.gxt.widget.core.client.button.TextButton backButton
protected com.sencha.gxt.widget.core.client.button.TextButton nextButton
protected String originalTitle
protected boolean checkBeforeClose
protected boolean nextCardFinish
protected com.google.gwt.user.client.Command nextButtonAction
protected com.google.gwt.user.client.Command previousButtonAction
protected com.sencha.gxt.widget.core.client.container.CardLayoutContainer cardContainer
protected ArrayList<WizardListener> listeners
protected com.google.web.bindery.event.shared.EventBus eventBus
protected com.sencha.gxt.widget.core.client.toolbar.ToolBar cardMoveToolBar
protected com.sencha.gxt.widget.core.client.toolbar.FillToolItem fillSpacingCardMoveToolBar
public WizardWindow(String title)
title - the wizard window title.public WizardWindow(String title, com.google.web.bindery.event.shared.EventBus eventBus)
protected void initTools()
initTools in class com.sencha.gxt.widget.core.client.Windowpublic void addListener(WizardListener listener)
public void removeListener(WizardListener listener)
public void nextCard()
public void previousCard()
public int getCardStackSize()
public int getCurrentCard()
public boolean checkBeforeClose()
public void close(boolean check)
public void setNextButtonToFinish()
public void setNextButtonCommand(com.google.gwt.user.client.Command command)
command - the command to execute.public void setPreviousButtonCommand(com.google.gwt.user.client.Command command)
command - the command to execute.public void show()
show in class com.sencha.gxt.widget.core.client.Windowpublic void setCards(ArrayList<WizardCard> cards)
cards - public void addCard(WizardCard card)
card - the card to add.public void removeCard(WizardCard card)
card - the card to add.public void setEnableNextButton(boolean enable)
enable - true to enable the next button,
false otherwise.public void setEnableBackButton(boolean enable)
enable - true to enable the back button,
false otherwise.protected void setNextButtonText(String text)
text - the button label.protected void setBackButtonText(String text)
text - the button label.protected void setNextButtonVisible(boolean visible)
visible - protected void setBackButtonVisible(boolean visible)
visible - protected void addNextButtonListener(com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler listener)
listener - the listener to add.public String getOriginalTitle()
public ArrayList<WizardCard> getCardStack()
public void fireCompleted(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId id)
public void firePutInBackground()
public void fireAborted()
Copyright © 2014. All Rights Reserved.