public void onClick( ClickEvent w ) { String[] val = pats.getValue( pats.getSelectedIndex() ).split( "\\s" ); editingPattern = model.getConditionPattern( val[ 1 ] ); //Clear Field and Operator when pattern changes editingCol.setFactField( null ); editingCol.setOperator( null ); //Set-up UI entryPointName.setText( editingPattern.getEntryPointName() ); cwo.selectItem( editingPattern.getWindow().getOperator() ); makeLimitedValueWidget(); makeDefaultValueWidget(); displayCEPOperators(); doPatternLabel(); doValueList(); doCalculationType(); pop.hide(); } } );
private void chosenTypesSelected( final Set<Pattern52> ps ) { btnRemove.setEnabled( true ); if ( ps.size() == 1 ) { chosenPatternSelection = ps.iterator().next(); patternDefinition.setVisible( true ); validateBinding(); txtBinding.setEnabled( true ); txtBinding.setText( chosenPatternSelection.getBoundName() ); txtEntryPoint.setEnabled( true ); txtEntryPoint.setText( chosenPatternSelection.getEntryPointName() ); enableMoveUpButton(); enableMoveDownButton(); if ( presenter.isPatternEvent( chosenPatternSelection ) ) { ddCEPWindow.setCEPWindow( chosenPatternSelection ); cepWindowContainer.setVisible( true ); } else { cepWindowContainer.setVisible( false ); } } else { chosenPatternSelection = null; patternDefinition.setVisible( false ); txtBinding.setEnabled( false ); txtBinding.setText( "" ); txtEntryPoint.setEnabled( false ); txtEntryPoint.setText( "" ); btnMoveUp.setEnabled( false ); btnMoveDown.setEnabled( false ); cepWindowContainer.setVisible( false ); } }
entryPointName.setText( editingPattern.getEntryPointName() ); cwo.selectItem( editingPattern.getWindow().getOperator() ); makeLimitedValueWidget();
entryPointName.setText( editingPattern.getEntryPointName() ); entryPointName.setEnabled( !isReadOnly ); if ( !isReadOnly ) {