|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.sencha.gxt.widget.core.client.Component
com.sencha.gxt.widget.core.client.container.Container
com.sencha.gxt.widget.core.client.container.ResizeContainer
com.sencha.gxt.widget.core.client.container.SimpleContainer
com.sencha.gxt.widget.core.client.ContentPanel
com.sencha.gxt.widget.core.client.Window
org.gcube.portlets.user.td.openwidget.client.general.WizardWindow
public class WizardWindow
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class 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.WindowMessages |
| Nested classes/interfaces inherited from class com.sencha.gxt.widget.core.client.ContentPanel |
|---|
com.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.PanelHeaderAppearance |
| 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 |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel |
|---|
com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget |
| Field Summary | |
|---|---|
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 ArrayList<WizardCard> |
cardStack
|
protected boolean |
checkBeforeClose
|
protected com.google.web.bindery.event.shared.SimpleEventBus |
eventBus
|
protected boolean |
finish
|
protected com.google.gwt.user.client.Command |
finishCommand
|
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
|
| Fields inherited from class com.sencha.gxt.widget.core.client.Window |
|---|
ariaMoveResizeDistance, closeBtn, dragger, manager, removeFromParentOnHide, restoreBtn |
| Fields inherited from class com.sencha.gxt.widget.core.client.ContentPanel |
|---|
buttonBar, header, secondPassRequired |
| Fields inherited from class com.sencha.gxt.widget.core.client.container.SimpleContainer |
|---|
resize, widget |
| Fields inherited from class com.sencha.gxt.widget.core.client.container.ResizeContainer |
|---|
forceLayoutCommand, forceLayoutOnResize, hadLayoutRunning, layoutCommand, layoutRequiredThisEventLoop, layoutRunning |
| Fields inherited from class com.sencha.gxt.widget.core.client.Component |
|---|
adjustSize, allowTextSelection, cacheSizes, disableContextMenu, disabled, disabledStyle, ensureVisibilityOnSizing, height, hidden, lastSize, layer, left, mask, maskMessage, monitorWindowResize, pageX, pageY, shim, tabIndex, toolTip, toolTipConfig, top, width, windowResizeDelay, windowResizeTask |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
WizardWindow(String title)
Create a new Wizard Window with the specified title. |
|
| Method Summary | |
|---|---|
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.gwtservice.shared.tr.TRId trId)
|
void |
fireFailed(Throwable throwable,
String reason,
String details)
|
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 |
setFinishCommand(com.google.gwt.user.client.Command finishCommand)
|
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 failureReason,
String failureDetails,
Throwable throwable)
|
| Methods inherited from class com.sencha.gxt.widget.core.client.Window |
|---|
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, unghost |
| Methods inherited from class com.sencha.gxt.widget.core.client.ContentPanel |
|---|
addBeforeCollapseHandler, 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, setTitleCollapse |
| Methods inherited from class com.sencha.gxt.widget.core.client.container.SimpleContainer |
|---|
add, add, getWidget, isResize, onRemove, setResize, setWidget, setWidget |
| Methods inherited from class com.sencha.gxt.widget.core.client.container.ResizeContainer |
|---|
applyLayout, applyLayout, forceLayout, forceLayoutOnChildren, forceLayoutOnChildren, getLeftRightMargins, getParentLayoutWidget, getSideMargins, getTopBottomMargins, isLayoutRunning, isOrWasLayoutRunning, isWidgetVisible, onBeforeDoLayout, onLoad, onResize |
| Methods inherited from class com.sencha.gxt.widget.core.client.container.Container |
|---|
add, 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, remove |
| Methods inherited from class com.sencha.gxt.widget.core.client.Component |
|---|
addBeforeHideHandler, 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, unmask |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, 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, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final String WIZARDWIDTH
protected final String WIZARDHEIGHT
protected final boolean WIZARRESIZABLE
protected final boolean WIZARDCOLLAPSIBLE
protected final String BUTTONBACKLABEL
protected final String BUTTONNEXTLABEL
protected final 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.google.gwt.user.client.Command finishCommand
protected com.sencha.gxt.widget.core.client.container.CardLayoutContainer cardContainer
protected ArrayList<WizardListener> listeners
protected com.google.web.bindery.event.shared.SimpleEventBus eventBus
protected boolean finish
| Constructor Detail |
|---|
public WizardWindow(String title)
title - the wizard window title.height| Method Detail |
|---|
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 setFinishCommand(com.google.gwt.user.client.Command finishCommand)
finishCommand - 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 showErrorAndHide(String title,
String failureReason,
String failureDetails,
Throwable throwable)
public void fireCompleted(org.gcube.portlets.user.td.gwtservice.shared.tr.TRId trId)
public void fireAborted()
public void fireFailed(Throwable throwable,
String reason,
String details)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||