org.drools.guvnor.client.ruleeditor.standalone
Class RealAssetsMultiViewEditorMenuBarCreator

java.lang.Object
  extended by org.drools.guvnor.client.ruleeditor.DefaultMultiViewEditorMenuBarCreator
      extended by org.drools.guvnor.client.ruleeditor.standalone.RealAssetsMultiViewEditorMenuBarCreator
All Implemented Interfaces:
MultiViewEditorMenuBarCreator

public class RealAssetsMultiViewEditorMenuBarCreator
extends DefaultMultiViewEditorMenuBarCreator

Creates a default menu bar with an additional "Cancel" button.


Constructor Summary
RealAssetsMultiViewEditorMenuBarCreator(com.google.gwt.user.client.Command cancelCommand)
          Constructor that takes 1 command as parameters for "Cancel" Button.
 
Method Summary
 com.google.gwt.user.client.ui.MenuBar createMenuBar(MultiViewEditor editor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RealAssetsMultiViewEditorMenuBarCreator

public RealAssetsMultiViewEditorMenuBarCreator(com.google.gwt.user.client.Command cancelCommand)
Constructor that takes 1 command as parameters for "Cancel" Button. If you want to add a command for "Save and Close" button you cold use MultiViewEditor.setCloseCommand(com.google.gwt.user.client.Command)

Parameters:
saveCommand -
cancelCommand -
Method Detail

createMenuBar

public com.google.gwt.user.client.ui.MenuBar createMenuBar(MultiViewEditor editor)
Specified by:
createMenuBar in interface MultiViewEditorMenuBarCreator
Overrides:
createMenuBar in class DefaultMultiViewEditorMenuBarCreator


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