org.drools.guvnor.client.asseteditor.drools
Class OryxMultiViewEditorMenuBarCreator

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

public class OryxMultiViewEditorMenuBarCreator
extends DefaultOryxMultiViewEditorMenuBarCreator


Constructor Summary
OryxMultiViewEditorMenuBarCreator(com.google.gwt.user.client.Command closeCommand, com.google.gwt.user.client.Command beforeSaveCommand, com.google.gwt.user.client.Command afterSaveCommand)
          Constructor that takes 1 command as parameters for "Close" Button.
 
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

OryxMultiViewEditorMenuBarCreator

public OryxMultiViewEditorMenuBarCreator(com.google.gwt.user.client.Command closeCommand,
                                         com.google.gwt.user.client.Command beforeSaveCommand,
                                         com.google.gwt.user.client.Command afterSaveCommand)
Constructor that takes 1 command as parameters for "Close" Button.

Parameters:
closeCommand -
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
Overrides:
createMenuBar in class DefaultOryxMultiViewEditorMenuBarCreator

getAfterSaveCommand

protected com.google.gwt.user.client.Command getAfterSaveCommand()
Description copied from class: DefaultOryxMultiViewEditorMenuBarCreator
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.

Overrides:
getAfterSaveCommand in class DefaultOryxMultiViewEditorMenuBarCreator
Returns:

getBeforeSaveCommand

protected com.google.gwt.user.client.Command getBeforeSaveCommand()
Description copied from class: DefaultOryxMultiViewEditorMenuBarCreator
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.

Overrides:
getBeforeSaveCommand in class DefaultOryxMultiViewEditorMenuBarCreator
Returns:


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