/** * Pops up the fact selector. */ protected void showConditionSelector( Integer position ) { RuleModellerConditionSelectorPopup popup = new RuleModellerConditionSelectorPopup( model, this, position, getSuggestionCompletions() ); popup.show(); }
private ListBox makeChoicesListBox() { choices = new ListBox( true ); choices.setPixelSize( getChoicesWidth(), getChoicesHeight() ); choices.addKeyUpHandler( new KeyUpHandler() { public void onKeyUp( com.google.gwt.event.dom.client.KeyUpEvent event ) { if ( event.getNativeKeyCode() == KeyCodes.KEY_ENTER ) { selectSomething(); } } } ); addDSLSentences(); if ( !bOnlyShowDSLConditions ) { addFacts(); addExistentialConditionalElements(); addFromConditionalElements(); addFreeFormDrl(); } return choices; }
public void onClick( ClickEvent event ) { hide(); } } );
choices = makeChoicesListBox(); choicesPanel.add( choices ); layoutPanel.addRow( choicesPanel ); this.setAfterShow( new Command() {
public void execute() { addNewDSLLhs( sen, Integer.parseInt( positionCbo.getValue( positionCbo.getSelectedIndex() ) ) ); hide(); } } );
public void execute() { addNewFact( f, Integer.parseInt( positionCbo.getValue( positionCbo.getSelectedIndex() ) ) ); hide(); } } );
public void execute() { addNewCE( ce, Integer.parseInt( positionCbo.getValue( positionCbo.getSelectedIndex() ) ) ); hide(); } } );
public void execute() { addNewFCE( ce, Integer.parseInt( positionCbo.getValue( positionCbo.getSelectedIndex() ) ) ); hide(); } } );
public void execute() { model.addLhsItem( new FreeFormLine(), Integer.parseInt( positionCbo.getValue( positionCbo.getSelectedIndex() ) ) ); hide(); } } );