private TextBox makeTextBox( final int index ) { AbstractRestrictedEntryTextBox txt = new CEPTimeParameterTextBox( hop, index ); if ( parameterSets.size() == 0 ) { txt.setVisible( false ); } else { txt.setVisible( index < parameterSets.get( visibleParameterSet ) ); } return txt; }
private void operatorChanged( OperatorSelection selection ) { parametersContainer.clear(); String operator = selection.getValue(); if ( CEPOracle.isCEPWindowOperatorTime( operator ) ) { AbstractRestrictedEntryTextBox txt = new CEPTimeParameterTextBox( hcw.getWindow(), 1 ); initialiseTextBox( txt ); } else if ( CEPOracle.isCEPWindowOperatorLength( operator ) ) { AbstractRestrictedEntryTextBox txt = new CEPLengthParameterTextBox( hcw.getWindow(), 1 ); initialiseTextBox( txt ); } else { parametersContainer.setVisible( false ); hcw.getWindow().clearParameters(); } }