protected void showAttributeSelector() { AttributeSelectorPopup pop = new AttributeSelectorPopup( model, lockLHS(), lockRHS(), new Command() { public void execute() { refreshWidget(); } } ); pop.show(); }
/** * Pops up the fact selector. */ protected void showConditionSelector( Integer position ) { RuleModellerConditionSelectorPopup popup = new RuleModellerConditionSelectorPopup( model, this, position, getSuggestionCompletions() ); popup.show(); }
protected void showActionSelector( Widget w, Integer position ) { RuleModellerActionSelectorPopup popup = new RuleModellerActionSelectorPopup( model, this, position, getSuggestionCompletions() ); popup.show(); }
private void doTypeChosen() { makeDirty(); executeOnChangeCommand(); executeOnTemplateVariablesChange(); refresh(); }
public synchronized static RuleModellerConfiguration getDefault() { if ( DEFAULT == null ) { DEFAULT = new RuleModellerConfiguration( false, false, false ); } return DEFAULT; }
private void doTypeChosen() { executeOnValueChangeCommand(); executeOnTemplateVariablesChange(); refreshEditor(); }
public AbstractRuleModellerSelectorPopup( RuleModel model, RuleModeller ruleModeller, Integer position, DataModelOracle dataModel ) { this.model = model; this.position = position; this.ruleModeller = ruleModeller; this.completions = dataModel; this.setTitle( getPopupTitle() ); }
@Override public boolean isDirty() { //The Modeller widget isn't set until after the content has been loaded from an asynchronous call to //the server. It is therefore possible that the User attempts to close the tab before Modeller is set return ( modeller == null ) ? false : modeller.getRuleModeller().isDirty(); }
public CEPWindowOperatorsDropdown( HasCEPWindow hcw, boolean isReadOnly ) { this(); this.isReadOnly = isReadOnly; setCEPWindow( hcw ); }
/** * return true if we should not allow unfrozen editing of the RHS */ public boolean lockRHS() { return isLock( RuleAttributeWidget.LOCK_RHS ); }
private void initialiseBinding() { txtBinding.addValueChangeHandler( new ValueChangeHandler<String>() { @Override public void onValueChange( final ValueChangeEvent<String> event ) { final String binding = txtBinding.getText(); chosenPatternsSelection.setBoundName( binding ); presenter.stateChanged(); validateBinding(); } } ); }
public AbstractCEPRestrictedEntryTextBox( HasParameterizedOperator hop, int index ) { this.hop = hop; setup( index ); }
@Override public void execute() { onSave(); } } )
/** * Returns the completions. */ public DataModelOracle getCompletions() { return this.modeller.getSuggestionCompletions(); }
protected RuleModellerConfiguration getRuleModellerConfiguration() { return new RuleModellerConfiguration( true, false, true ); }
/** * return true if we should not allow unfrozen editing of the LHS */ public boolean lockLHS() { return isLock( RuleAttributeWidget.LOCK_LHS ); }
private void initialiseBinding() { txtBinding.addValueChangeHandler( new ValueChangeHandler<String>() { @Override public void onValueChange( final ValueChangeEvent<String> event ) { String binding = txtBinding.getText(); chosenPatternSelection.setBoundName( binding ); presenter.stateChanged(); validateBinding(); } } ); }
public RuleModellerConfiguration getRuleModellerConfiguration() { return new RuleModellerConfiguration( false, true, true ); }
public RuleModellerConfiguration getRuleModellerConfiguration() { return new RuleModellerConfiguration( false, true, true ); }
protected RuleModellerConfiguration getRuleModellerConfiguration() { return new RuleModellerConfiguration( true, false, true ); }