Guvnor web application Drools 6.0.0-SNAPSHOT

org.drools.guvnor.client.widgets.drools.toolbar
Class AssetEditorActionToolbar

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.Composite
              extended by org.drools.guvnor.client.widgets.drools.toolbar.AssetEditorActionToolbar
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget

public class AssetEditorActionToolbar
extends com.google.gwt.user.client.ui.Composite

This contains the widgets used to action a rule asset (ie checkin, change state, close window)


Nested Class Summary
 
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
 
Field Summary
protected  Asset asset
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
AssetEditorActionToolbar(Asset asset, com.google.gwt.user.client.ui.Widget editor, ClientFactory clientFactory, com.google.gwt.event.shared.EventBus eventBus, boolean readOnly)
           
 
Method Summary
 void doCheckin(String comment, boolean closeAfter)
           
protected  void doCheckinConfirm(boolean closeAfter)
          Called when user wants to checkin. set closeAfter to true if it should close this whole thing after saving it.
protected  void doCloseUnsavedWarning()
          Called when user wants to close, but there is "dirtyness".
 void flushSuggestionCompletionCache(String moduleName, String uuid)
          In some cases we will want to flush the package dependency stuff for suggestion completions.
protected  boolean hasDirty()
           
 void setArchiveCommand(com.google.gwt.user.client.Command archiveCommand)
           
 void setArchiveVisible(boolean b)
           
 void setChangeStatusCommand(com.google.gwt.user.client.Command command)
           
 void setCopyCommand(com.google.gwt.user.client.Command command)
           
 void setDeleteCommand(com.google.gwt.user.client.Command deleteCommand)
           
 void setDeleteVisible(boolean b)
           
 void setPromtToGlobalCommand(com.google.gwt.user.client.Command command)
           
 void setRenameCommand(com.google.gwt.user.client.Command command)
           
 void setSaveChangesAndCloseCommand(com.google.gwt.user.client.Command command)
           
 void setSaveChangesCommand(com.google.gwt.user.client.Command command)
           
 void setSelectWorkingSetsCommand(com.google.gwt.user.client.Command command)
           
 void setState(String newStatus)
          Sets the visible status display.
 void setValidateCommand(com.google.gwt.user.client.Command command)
           
 void setValidIndicator(com.google.gwt.user.client.ui.Image valid)
           
 void setVerifyCommand(com.google.gwt.user.client.Command command)
           
 void setViewSourceCommand(com.google.gwt.user.client.Command command)
           
protected  void showWorkingSetsSelection(RuleModeller modeller)
           
protected  void verifyAndDoCheckinConfirm(boolean closeAfter)
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

asset

protected Asset asset
Constructor Detail

AssetEditorActionToolbar

public AssetEditorActionToolbar(Asset asset,
                                com.google.gwt.user.client.ui.Widget editor,
                                ClientFactory clientFactory,
                                com.google.gwt.event.shared.EventBus eventBus,
                                boolean readOnly)
Method Detail

setState

public void setState(String newStatus)
Sets the visible status display.


setValidIndicator

public void setValidIndicator(com.google.gwt.user.client.ui.Image valid)

setSelectWorkingSetsCommand

public void setSelectWorkingSetsCommand(com.google.gwt.user.client.Command command)

setViewSourceCommand

public void setViewSourceCommand(com.google.gwt.user.client.Command command)

setVerifyCommand

public void setVerifyCommand(com.google.gwt.user.client.Command command)

setValidateCommand

public void setValidateCommand(com.google.gwt.user.client.Command command)

setSaveChangesCommand

public void setSaveChangesCommand(com.google.gwt.user.client.Command command)

setSaveChangesAndCloseCommand

public void setSaveChangesAndCloseCommand(com.google.gwt.user.client.Command command)

setChangeStatusCommand

public void setChangeStatusCommand(com.google.gwt.user.client.Command command)

setDeleteVisible

public void setDeleteVisible(boolean b)

setArchiveVisible

public void setArchiveVisible(boolean b)

setArchiveCommand

public void setArchiveCommand(com.google.gwt.user.client.Command archiveCommand)

setCopyCommand

public void setCopyCommand(com.google.gwt.user.client.Command command)

setRenameCommand

public void setRenameCommand(com.google.gwt.user.client.Command command)

setDeleteCommand

public void setDeleteCommand(com.google.gwt.user.client.Command deleteCommand)

setPromtToGlobalCommand

public void setPromtToGlobalCommand(com.google.gwt.user.client.Command command)

verifyAndDoCheckinConfirm

protected void verifyAndDoCheckinConfirm(boolean closeAfter)

doCheckinConfirm

protected void doCheckinConfirm(boolean closeAfter)
Called when user wants to checkin. set closeAfter to true if it should close this whole thing after saving it.


doCheckin

public void doCheckin(String comment,
                      boolean closeAfter)

showWorkingSetsSelection

protected void showWorkingSetsSelection(RuleModeller modeller)

hasDirty

protected boolean hasDirty()

flushSuggestionCompletionCache

public void flushSuggestionCompletionCache(String moduleName,
                                           String uuid)
In some cases we will want to flush the package dependency stuff for suggestion completions. The user will still need to reload the asset editor though.


doCloseUnsavedWarning

protected void doCloseUnsavedWarning()
Called when user wants to close, but there is "dirtyness".


Guvnor web application Drools 6.0.0-SNAPSHOT

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