Guvnor web application Drools 6.0.0-SNAPSHOT

org.drools.guvnor.client.asseteditor.drools
Class DefaultOryxMultiViewEditorMenuBarCreator

java.lang.Object
  extended by org.drools.guvnor.client.asseteditor.drools.DefaultOryxMultiViewEditorMenuBarCreator
All Implemented Interfaces:
MultiViewEditorMenuBarCreator
Direct Known Subclasses:
OryxMultiViewEditorMenuBarCreator

public class DefaultOryxMultiViewEditorMenuBarCreator
extends Object
implements MultiViewEditorMenuBarCreator

Default implementation for Oryx that includes "Save All Changes" button


Constructor Summary
DefaultOryxMultiViewEditorMenuBarCreator()
           
 
Method Summary
 com.google.gwt.user.client.ui.MenuBar createMenuBar(MultiViewEditor editor, com.google.gwt.event.shared.EventBus eventBus)
           
protected  com.google.gwt.user.client.Command getAfterSaveCommand()
          Method returning the command to be executed after the asset is persisted.
protected  com.google.gwt.user.client.Command getBeforeSaveCommand()
          Method returning the command to be executed before the asset is persisted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultOryxMultiViewEditorMenuBarCreator

public DefaultOryxMultiViewEditorMenuBarCreator()
Method Detail

createMenuBar

public com.google.gwt.user.client.ui.MenuBar createMenuBar(MultiViewEditor editor,
                                                           com.google.gwt.event.shared.EventBus eventBus)
Specified by:
createMenuBar in interface MultiViewEditorMenuBarCreator

getBeforeSaveCommand

protected com.google.gwt.user.client.Command getBeforeSaveCommand()
Method returning the command to be executed before the asset is persisted. This implementation returns null, meaning that no command needs to be executed. Subclasses of this class can overwrite this method to add a custom command.

Returns:

getAfterSaveCommand

protected com.google.gwt.user.client.Command getAfterSaveCommand()
Method returning the command to be executed after the asset is persisted. This implementation returns null, meaning that no command needs to be executed. Subclasses of this class can overwrite this method to add a custom command.

Returns:

Guvnor web application Drools 6.0.0-SNAPSHOT

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