Drools Workbench - Technical Rule Editor - Client 6.2.0.CR4

org.drools.workbench.screens.drltext.client.editor
Class DRLEditorPresenter

java.lang.Object
  extended by org.uberfire.ext.editor.commons.client.BaseEditor
      extended by org.kie.workbench.common.widgets.metadata.client.KieEditor
          extended by org.drools.workbench.screens.drltext.client.editor.DRLEditorPresenter

@Dependent
public class DRLEditorPresenter
extends org.kie.workbench.common.widgets.metadata.client.KieEditor

This is the default rule editor widget (just text editor based).


Field Summary
 
Fields inherited from class org.kie.workbench.common.widgets.metadata.client.KieEditor
EDITOR_TAB_INDEX, menuBuilder, menus, metadata, OVERVIEW_TAB_INDEX
 
Fields inherited from class org.uberfire.ext.editor.commons.client.BaseEditor
baseView, changeTitleNotification, concurrentUpdateSessionInfo, fileNameValidator, isReadOnly, menuItems, originalHash, place, versionRecordManager
 
Constructor Summary
DRLEditorPresenter(DRLEditorView view)
           
 
Method Summary
 org.uberfire.workbench.model.menu.Menus getMenus()
           
 com.google.gwt.user.client.ui.IsWidget getTitle()
           
 String getTitleText()
           
 com.google.gwt.user.client.ui.IsWidget getWidget()
           
 void init()
           
 void loadClassFields(String fullyQualifiedClassName, org.uberfire.client.callbacks.Callback<List<String>> callback)
           
protected  void loadContent()
           
 boolean mayClose()
           
 void onClose()
           
protected  void onSourceTabSelected()
           
 void onStartup(org.uberfire.backend.vfs.ObservablePath path, org.uberfire.mvp.PlaceRequest place)
           
protected  org.uberfire.mvp.Command onValidate()
           
protected  void save()
           
 
Methods inherited from class org.kie.workbench.common.widgets.metadata.client.KieEditor
addImportsTab, addPage, addSourcePage, createOriginalHash, getCouldNotGenerateSourceErrorCallback, getNoSuchFileExceptionErrorCallback, getSelectedTabIndex, init, init, isEditorTabSelected, isOverviewTabSelected, makeMenuBar, mayClose, OnClose, onEditTabSelected, onEditTabUnselected, onOverviewSelected, resetEditorPages, selectEditorTab, selectOverviewTab, setSelectedTab, showVersions, updateSource
 
Methods inherited from class org.uberfire.ext.editor.commons.client.BaseEditor
getCopyServiceCaller, getDeleteServiceCaller, getRenameServiceCaller, getSaveSuccessCallback, init, init, isDirty, mayClose, onRename, onRestore, onSave, reload, setOriginalHash, showConcurrentUpdatePopup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DRLEditorPresenter

@Inject
public DRLEditorPresenter(DRLEditorView view)
Method Detail

init

@PostConstruct
public void init()

onStartup

public void onStartup(org.uberfire.backend.vfs.ObservablePath path,
                      org.uberfire.mvp.PlaceRequest place)

loadContent

protected void loadContent()
Specified by:
loadContent in class org.uberfire.ext.editor.commons.client.BaseEditor

loadClassFields

public void loadClassFields(String fullyQualifiedClassName,
                            org.uberfire.client.callbacks.Callback<List<String>> callback)

onValidate

protected org.uberfire.mvp.Command onValidate()
Overrides:
onValidate in class org.uberfire.ext.editor.commons.client.BaseEditor

save

protected void save()
Overrides:
save in class org.uberfire.ext.editor.commons.client.BaseEditor

onClose

public void onClose()

mayClose

@OnMayClose
public boolean mayClose()

getTitle

public com.google.gwt.user.client.ui.IsWidget getTitle()
Overrides:
getTitle in class org.uberfire.ext.editor.commons.client.BaseEditor

getTitleText

public String getTitleText()
Overrides:
getTitleText in class org.uberfire.ext.editor.commons.client.BaseEditor

onSourceTabSelected

protected void onSourceTabSelected()
Overrides:
onSourceTabSelected in class org.kie.workbench.common.widgets.metadata.client.KieEditor

getWidget

public com.google.gwt.user.client.ui.IsWidget getWidget()
Overrides:
getWidget in class org.kie.workbench.common.widgets.metadata.client.KieEditor

getMenus

public org.uberfire.workbench.model.menu.Menus getMenus()

Drools Workbench - Technical Rule Editor - Client 6.2.0.CR4

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