org.drools.guvnor.client.widgets.wizards
Class WizardActivityViewImpl

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.drools.guvnor.client.common.Popup
                          extended by org.drools.guvnor.client.widgets.wizards.WizardActivityViewImpl
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, Iterable<com.google.gwt.user.client.ui.Widget>, WizardActivityView

public class WizardActivityViewImpl
extends Popup
implements WizardActivityView

The generic Wizard view implementation


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 org.drools.guvnor.client.widgets.wizards.WizardActivityView
WizardActivityView.Presenter
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
 
Field Summary
protected  com.google.gwt.user.client.ui.SimplePanel body
           
protected  com.google.gwt.user.client.ui.Button btnFinish
           
protected  com.google.gwt.user.client.ui.Button btnNext
           
protected  com.google.gwt.user.client.ui.Button btnPrevious
           
protected  com.google.gwt.user.client.ui.VerticalPanel sideBar
           
protected  com.google.gwt.user.client.ui.SimplePanel sideBarContainer
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
WizardActivityViewImpl(com.google.gwt.event.shared.EventBus eventBus)
           
 
Method Summary
 void btnCancelClick(com.google.gwt.event.dom.client.ClickEvent event)
           
 void btnFinishClick(com.google.gwt.event.dom.client.ClickEvent event)
           
 void btnNextClick(com.google.gwt.event.dom.client.ClickEvent event)
           
 void btnPreviousClick(com.google.gwt.event.dom.client.ClickEvent event)
           
 com.google.gwt.user.client.ui.Widget getContent()
           
 void hideSavingIndicator()
          Hide the indicator that a save operation is in ro
 void selectPage(int pageNumber)
          Select a page
 void setBodyWidget(com.google.gwt.user.client.ui.Widget w)
          Set the Widget to display in the body panel of the generic Wizard
 void setCompletionStatus(boolean isComplete)
          The state (completed, not completed) of the whole Wizard has changed
 void setPageCompletionState(int pageIndex, boolean isComplete)
          The state (completed, not completed) of a page has changed.
 void setPageTitles(List<WizardPage> pages)
          The individual page titles
 void setPreferredHeight(int height)
          Set the body panel preferred height
 void setPreferredWidth(int width)
          Set the body panel preferred width
 void setPresenter(WizardActivityView.Presenter presenter)
          Set the Presenter for the View to callback to
 void showCheckinError(String message)
          Show a message that a specified error occurred during the save
 void showDuplicateAssetNameError()
          Show a message that the asset is a duplicate and cannot be saved
 void showSavingIndicator()
          Show an indicator that a save operation is in progress
 void showUnspecifiedCheckinError()
          Show a message that an unspecified error occurred during the save
 
Methods inherited from class org.drools.guvnor.client.common.Popup
setAfterCloseEvent, setAfterShow, setPopupPosition, show
 
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, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setVisible, setWidget, setWidth, showRelativeTo
 
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel
add, 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, addBitlessDomHandler, 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, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.drools.guvnor.client.widgets.wizards.WizardActivityView
hide, setTitle, show
 
Methods inherited from interface com.google.gwt.user.client.ui.IsWidget
asWidget
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Field Detail

sideBar

@UiField
protected com.google.gwt.user.client.ui.VerticalPanel sideBar

sideBarContainer

@UiField
protected com.google.gwt.user.client.ui.SimplePanel sideBarContainer

body

@UiField
protected com.google.gwt.user.client.ui.SimplePanel body

btnNext

@UiField
protected com.google.gwt.user.client.ui.Button btnNext

btnPrevious

@UiField
protected com.google.gwt.user.client.ui.Button btnPrevious

btnFinish

@UiField
protected com.google.gwt.user.client.ui.Button btnFinish
Constructor Detail

WizardActivityViewImpl

public WizardActivityViewImpl(com.google.gwt.event.shared.EventBus eventBus)
Method Detail

getContent

public com.google.gwt.user.client.ui.Widget getContent()
Specified by:
getContent in class Popup

setPresenter

public void setPresenter(WizardActivityView.Presenter presenter)
Description copied from interface: WizardActivityView
Set the Presenter for the View to callback to

Specified by:
setPresenter in interface WizardActivityView

setPageTitles

public void setPageTitles(List<WizardPage> pages)
Description copied from interface: WizardActivityView
The individual page titles

Specified by:
setPageTitles in interface WizardActivityView

btnCancelClick

@UiHandler(value="btnCancel")
public void btnCancelClick(com.google.gwt.event.dom.client.ClickEvent event)

btnFinishClick

@UiHandler(value="btnFinish")
public void btnFinishClick(com.google.gwt.event.dom.client.ClickEvent event)

btnNextClick

@UiHandler(value="btnNext")
public void btnNextClick(com.google.gwt.event.dom.client.ClickEvent event)

btnPreviousClick

@UiHandler(value="btnPrevious")
public void btnPreviousClick(com.google.gwt.event.dom.client.ClickEvent event)

selectPage

public void selectPage(int pageNumber)
Description copied from interface: WizardActivityView
Select a page

Specified by:
selectPage in interface WizardActivityView

setBodyWidget

public void setBodyWidget(com.google.gwt.user.client.ui.Widget w)
Description copied from interface: WizardActivityView
Set the Widget to display in the body panel of the generic Wizard

Specified by:
setBodyWidget in interface WizardActivityView

setPreferredHeight

public void setPreferredHeight(int height)
Description copied from interface: WizardActivityView
Set the body panel preferred height

Specified by:
setPreferredHeight in interface WizardActivityView

setPreferredWidth

public void setPreferredWidth(int width)
Description copied from interface: WizardActivityView
Set the body panel preferred width

Specified by:
setPreferredWidth in interface WizardActivityView

setPageCompletionState

public void setPageCompletionState(int pageIndex,
                                   boolean isComplete)
Description copied from interface: WizardActivityView
The state (completed, not completed) of a page has changed.

Specified by:
setPageCompletionState in interface WizardActivityView

setCompletionStatus

public void setCompletionStatus(boolean isComplete)
Description copied from interface: WizardActivityView
The state (completed, not completed) of the whole Wizard has changed

Specified by:
setCompletionStatus in interface WizardActivityView

showSavingIndicator

public void showSavingIndicator()
Description copied from interface: WizardActivityView
Show an indicator that a save operation is in progress

Specified by:
showSavingIndicator in interface WizardActivityView

hideSavingIndicator

public void hideSavingIndicator()
Description copied from interface: WizardActivityView
Hide the indicator that a save operation is in ro

Specified by:
hideSavingIndicator in interface WizardActivityView

showDuplicateAssetNameError

public void showDuplicateAssetNameError()
Description copied from interface: WizardActivityView
Show a message that the asset is a duplicate and cannot be saved

Specified by:
showDuplicateAssetNameError in interface WizardActivityView

showUnspecifiedCheckinError

public void showUnspecifiedCheckinError()
Description copied from interface: WizardActivityView
Show a message that an unspecified error occurred during the save

Specified by:
showUnspecifiedCheckinError in interface WizardActivityView

showCheckinError

public void showCheckinError(String message)
Description copied from interface: WizardActivityView
Show a message that a specified error occurred during the save

Specified by:
showCheckinError in interface WizardActivityView


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.