public void select( int index ) { wCombo.select( index ); }
/** * Selects the database with the specified name in the Combo Box component. * * @param wConnection the Combo Box component * @param name the name of the database to select */ public void selectDatabase( CCombo wConnection, String name ) { int idx = wConnection.indexOf( name ); if ( idx >= 0 ) { wConnection.select( idx ); } }
public void select( int index ) { wCombo.select( index ); modifyListenerTooltipText.modifyText( null ); } }
/** * Selects a database from the combo box * * @param wConnection * the combo box list of connections * @param name * the name */ public void selectDatabase( CCombo wConnection, String name ) { int idx = wConnection.indexOf( name ); if ( idx >= 0 ) { wConnection.select( idx ); } }
public void setTimeUnit( TimeUnit tu ) { for ( int i = 0; i < wTimeUnit.getItemCount(); i++ ) { if ( tu.toString().equals( wTimeUnit.getItem( i ) ) ) { wTimeUnit.select( i ); break; } } }
private void updateLocation() { String pathText = wPath.getText(); String scheme = pathText.isEmpty() ? HDFS_SCHEME : UriParser.extractScheme( pathText ); if ( scheme != null ) { List<VFSScheme> availableVFSSchemes = getAvailableVFSSchemes(); for ( int i = 0; i < availableVFSSchemes.size(); i++ ) { VFSScheme s = availableVFSSchemes.get( i ); if ( scheme.equals( s.scheme ) ) { wLocation.select( i ); selectedVFSScheme = s; } } } }
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { // String filter = Const.NVL(logWriter.getFilter(), props.getLogFilter()); // if (filter != null) { // wFilter.setText(filter); // } wLoglevel.select( DefaultLogLevel.getLogLevel().getLevel() ); // wTime.setSelection(layout.isTimeAdded()); }
private void setEncodings() { // Encoding of the text file: if ( !gotEncodings ) { gotEncodings = true; wEncoding.removeAll(); ArrayList<Charset> values = new ArrayList<Charset>( Charset.availableCharsets().values() ); for ( int i = 0; i < values.size(); i++ ) { Charset charSet = values.get( i ); wEncoding.add( charSet.displayName() ); } // Now select the default! String defEncoding = Const.getEnvironmentVariable( "file.encoding", "UTF-8" ); int idx = Const.indexOfString( defEncoding, wEncoding.getItems() ); if ( idx >= 0 ) { wEncoding.select( idx ); } } }
private void setEncodings() { // Encoding of the text file: if ( !gotEncodings ) { gotEncodings = true; wEncoding.removeAll(); List<Charset> values = new ArrayList<Charset>( Charset.availableCharsets().values() ); for ( int i = 0; i < values.size(); i++ ) { Charset charSet = values.get( i ); wEncoding.add( charSet.displayName() ); } // Now select the default! String defEncoding = Const.getEnvironmentVariable( "file.encoding", "UTF-8" ); int idx = Const.indexOfString( defEncoding, wEncoding.getItems() ); if ( idx >= 0 ) { wEncoding.select( idx ); } } }
private void setEncodings() { // Encoding of the text file: if ( !gotEncodings ) { gotEncodings = true; wEncoding.removeAll(); List<Charset> values = new ArrayList<>( Charset.availableCharsets().values() ); for ( Charset charSet : values ) { wEncoding.add( charSet.displayName() ); } // Now select the default! String defEncoding = Const.getEnvironmentVariable( "file.encoding", "UTF-8" ); int idx = Const.indexOfString( defEncoding, wEncoding.getItems() ); if ( idx >= 0 ) { wEncoding.select( idx ); } } }
private void setEncodings() { // Encoding of the text file: if ( !gotEncodings ) { gotEncodings = true; wEncoding.removeAll(); List<Charset> values = new ArrayList<Charset>( Charset.availableCharsets().values() ); for ( Charset charSet : values ) { wEncoding.add( charSet.displayName() ); } // Now select the default! String defEncoding = Const.getEnvironmentVariable( "file.encoding", "UTF-8" ); int idx = Const.indexOfString( defEncoding, wEncoding.getItems() ); if ( idx >= 0 ) { wEncoding.select( idx ); } } }
private void setEncodings() { // Encoding of the text file: if ( !gotEncodings ) { gotEncodings = true; wEncoding.removeAll(); java.util.List<Charset> values = new ArrayList<Charset>( Charset.availableCharsets().values() ); for ( Charset charSet : values ) { wEncoding.add( charSet.displayName() ); } // Now select the default! String defEncoding = Const.getEnvironmentVariable( "file.encoding", "UTF-8" ); int idx = Const.indexOfString( defEncoding, wEncoding.getItems() ); if ( idx >= 0 ) { wEncoding.select( idx ); } } } }
private void fillStoredData() { if ( stepname != null ) { textStepName.setText( stepname ); } int index = addConnectionLine.indexOf( meta.getDatabaseMeta() != null ? meta.getDatabaseMeta().getName() : "" ); if ( index >= 0 ) { addConnectionLine.select( index ); } if ( meta.getModelName() != null ) { comboModelName.add( meta.getModelName() ); comboModelName.select( 0 ); } textCommitBatchSize.setText( String.valueOf( meta.getCommitBatchSize() ) ); comboIDFieldName.setText( meta.getIdFieldName() ); }
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { if ( jobEntry.getName() != null ) { textStepName.setText( jobEntry.getName() ); } textStepName.selectAll(); int index = addConnectionLine.indexOf( jobEntry.getDatabaseMeta() != null ? jobEntry.getDatabaseMeta().getName() : "" ); if ( index >= 0 ) { addConnectionLine.select( index ); } if ( jobEntry.getCubeName() != null ) { comboCubeName.add( jobEntry.getCubeName() ); comboCubeName.select( 0 ); } }
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { if ( jobEntry.getName() != null ) { wName.setText( jobEntry.getName() ); } if ( jobEntry.getMaximumTimeout() != null ) { wMaximumTimeout.setText( jobEntry.getMaximumTimeout() ); } wScaleTime.select( jobEntry.scaleTime ); wName.selectAll(); wName.setFocus(); }
public void widgetSelected( SelectionEvent arg0 ) { DatabaseMeta databaseMeta = repositories.searchDatabase( wConnection.getText() ); if ( databaseMeta != null ) { getDatabaseDialog().setDatabaseMeta( databaseMeta ); if ( getDatabaseDialog().open() != null ) { fillConnections(); int idx = repositories.indexOfDatabase( getDatabaseDialog().getDatabaseMeta() ); wConnection.select( idx ); } } } } );
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { if ( input.getTimeOut() != null ) { wTimeout.setText( input.getTimeOut() ); } wScaleTime.select( input.getScaleTimeCode() ); wStepname.selectAll(); wStepname.setFocus(); }
public void getData() { if ( !jobEntry.isDummy() ) { wRepeat.setSelection( jobEntry.isRepeat() ); wType.select( jobEntry.getSchedulerType() ); wIntervalSeconds.setSelection( jobEntry.getIntervalSeconds() ); wIntervalMinutes.setSelection( jobEntry.getIntervalMinutes() ); wHour.setSelection( jobEntry.getHour() ); wMinutes.setSelection( jobEntry.getMinutes() ); wDayOfWeek.select( jobEntry.getWeekDay() ); wDayOfMonth.setSelection( jobEntry.getDayOfMonth() ); wType.addSelectionListener( lsDef ); } wName.setText( jobEntry.getName() ); }
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { wName.setText( Const.nullToEmpty( jobEntry.getName() ) ); wLogMessage.setText( Const.nullToEmpty( jobEntry.getLogMessage() ) ); wLogSubject.setText( Const.nullToEmpty( jobEntry.getLogSubject() ) ); if ( jobEntry.getEntryLogLevel() != null ) { wLoglevel.select( jobEntry.getEntryLogLevel().getLevel() ); } wName.selectAll(); wName.setFocus(); }
public void widgetSelected( SelectionEvent arg0 ) { DatabaseMeta databaseMeta = new DatabaseMeta(); getDatabaseDialog().setDatabaseMeta( databaseMeta ); if ( getDatabaseDialog().open() != null ) { repositories.addDatabase( getDatabaseDialog().getDatabaseMeta() ); fillConnections(); int idx = repositories.indexOfDatabase( getDatabaseDialog().getDatabaseMeta() ); wConnection.select( idx ); } } } );