org.drools.guvnor.client.ruleeditor
Class StandaloneEditorManager

java.lang.Object
  extended by org.drools.guvnor.client.ruleeditor.StandaloneEditorManager

public class StandaloneEditorManager
extends Object

Class used to manage the stand-alone version of Guvnor's Editors


Constructor Summary
StandaloneEditorManager(ClientFactory clientFactory, com.google.gwt.event.shared.EventBus eventBus)
           
 
Method Summary
 void afterCancelButtonCallbackFunction()
           
 void afterCloseButtonCallbackFunction()
           
 void afterSaveAndClose()
          Method invoked after the "Save an Close" button is pressed.
 String getAssetsUUIDs()
          Returns the uuids of the assets that are being edited in JSON format.
 com.google.gwt.user.client.ui.Panel getBaseLayout()
           
 void getBRLs()
          This method should be invoked from JS using window.getEditorBRL().
 void getDRLs()
          This method should be invoked from JS using window.getEditorDRL().
 void returnBRL(String brl)
          Callback method invoked from getDRLs().
 void returnDRL(String drl)
          Callback method invoked from getDRLs().
 void setHooks(StandaloneEditorManager app)
          Creates 2 JS functions in window object: getDRLs() and getBRLs().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandaloneEditorManager

public StandaloneEditorManager(ClientFactory clientFactory,
                               com.google.gwt.event.shared.EventBus eventBus)
Method Detail

getBaseLayout

public com.google.gwt.user.client.ui.Panel getBaseLayout()

getDRLs

public void getDRLs()
This method should be invoked from JS using window.getEditorDRL(). Returns the DRL of the assets we are editing. Because this method is asynchronous, the DRL code is passed to a callback function specified in the JS invocation.


getBRLs

public void getBRLs()
This method should be invoked from JS using window.getEditorBRL(). Returns the BRL of the assets we are editing. Because this method is asynchronous, the BRL code is passed to a callback function specified in the JS invocation.


getAssetsUUIDs

public String getAssetsUUIDs()
Returns the uuids of the assets that are being edited in JSON format.

Returns:

setHooks

public void setHooks(StandaloneEditorManager app)
Creates 2 JS functions in window object: getDRLs() and getBRLs(). These functions are used to retrieve the source code of the assets this component is handling.

Parameters:
app -

returnDRL

public void returnDRL(String drl)
Callback method invoked from getDRLs().

Parameters:
drl -

returnBRL

public void returnBRL(String brl)
Callback method invoked from getDRLs().

Parameters:
drl -

afterSaveAndClose

public void afterSaveAndClose()
Method invoked after the "Save an Close" button is pressed.


afterCancelButtonCallbackFunction

public void afterCancelButtonCallbackFunction()

afterCloseButtonCallbackFunction

public void afterCloseButtonCallbackFunction()


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