org.drools.guvnor.client.widgets.drools.toolbar
Class AssetEditorActionToolbar
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
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 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 |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
DEBUG_ID_PREFIX |
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 |
asset
protected Asset asset
AssetEditorActionToolbar
public AssetEditorActionToolbar(Asset asset,
com.google.gwt.user.client.ui.Widget editor,
ClientFactory clientFactory,
com.google.gwt.event.shared.EventBus eventBus,
boolean readOnly)
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".
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.