org.drools.eclipse.rulebuilder.ui
Class DSLSentenceWidget
java.lang.Object
org.drools.eclipse.rulebuilder.ui.Widget
org.drools.eclipse.rulebuilder.ui.DSLSentenceWidget
- Direct Known Subclasses:
- LHSDSLSentenceWidget, RHSDSLSentenceWidget
public abstract class DSLSentenceWidget
- extends Widget
This displays a widget to edit a DSL sentence.
|
Field Summary |
protected org.drools.ide.common.client.modeldriven.SuggestionCompletionEngine |
completions
|
|
Constructor Summary |
DSLSentenceWidget(org.eclipse.ui.forms.widgets.FormToolkit toolkit,
org.eclipse.swt.widgets.Composite parent,
org.drools.ide.common.client.modeldriven.brl.DSLSentence sentence,
RuleModeller modeller,
int index)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
completions
protected org.drools.ide.common.client.modeldriven.SuggestionCompletionEngine completions
DSLSentenceWidget
public DSLSentenceWidget(org.eclipse.ui.forms.widgets.FormToolkit toolkit,
org.eclipse.swt.widgets.Composite parent,
org.drools.ide.common.client.modeldriven.brl.DSLSentence sentence,
RuleModeller modeller,
int index)
updateModel
protected abstract void updateModel()
makeWidgets
public org.eclipse.swt.widgets.Composite makeWidgets(String dslLine)
- This will take a DSL line item, and split it into widget thingamies for
displaying. One day, if this is too complex, this will have to be done on
the server side.
- Returns:
addVariable
public ModelWidget addVariable(org.eclipse.swt.widgets.Composite parent,
String currVariable)
addBox
public ModelWidget addBox(org.eclipse.swt.widgets.Composite parent,
String variableDef,
String regex)
addCheckbox
public ModelWidget addCheckbox(org.eclipse.swt.widgets.Composite parent,
String variableDef)
addDateSelector
public ModelWidget addDateSelector(org.eclipse.swt.widgets.Composite parent,
String variableDef)
updateSentence
protected void updateSentence()
- This will go through the widgets and extract the values
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.