本文整理了Java中org.eclipse.swt.widgets.List.removeAll()
方法的一些代码示例,展示了List.removeAll()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。List.removeAll()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.List
类名称:List
方法名:removeAll
[英]Removes all of the items from the receiver.
[中]从接收器中删除所有项目。
代码示例来源:origin: pentaho/pentaho-kettle
public void refreshLocale() {
// OK, we have a distinct list of locale to work with...
wLocale.removeAll();
wLocale.setItems( localeList.toArray( new String[localeList.size()] ) );
}
代码示例来源:origin: pentaho/pentaho-kettle
public void refreshList() {
// OK, now we have a distinct list of directories or packages to work with...
ArrayList<String> dirList = new ArrayList<String>( directories.keySet() );
Collections.sort( dirList );
// Put it in the listbox:
wList.removeAll();
for ( int i = 0; i < dirList.size(); i++ ) {
wList.add( dirList.get( i ) );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
public void getData() {
if ( !opened ) {
return;
}
wListSource.removeAll();
wListDest.removeAll();
for ( int i = 0; i < input.length; i++ ) {
Integer idx = Integer.valueOf( i );
String str = selection.get( idx );
if ( str == null ) {
// Not selected: show in source!
wListSource.add( input[i] );
} else {
// Selected, show in destination!
wListDest.add( input[i] );
}
}
}
代码示例来源:origin: pentaho/pentaho-kettle
public void addAllToSelection() {
// Just remove it all from both lists
// Then add input[] to the destination list...
// This is much faster.
wListSource.removeAll();
wListDest.removeAll();
selection.clear();
for ( int i = 0; i < input.length; i++ ) {
wListDest.add( input[i] );
selection.put( Integer.valueOf( i ), input[i] );
}
setPageComplete( canFlipToNextPage() );
}
代码示例来源:origin: pentaho/pentaho-kettle
public void removeAllFromSelection() {
// Just remove it all from both lists
// Then add input[] to the source list...
// This is much faster.
wListSource.removeAll();
wListDest.removeAll();
selection.clear();
for ( int i = 0; i < input.length; i++ ) {
wListSource.add( input[i] );
}
setPageComplete( canFlipToNextPage() );
}
代码示例来源:origin: pentaho/pentaho-kettle
private void refreshFields() {
wFields.removeAll();
for ( int i = 0; i < fields.size(); i++ ) {
wFields.add( ( (BaseFileField) fields.get( i ) ).getName() );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
private void refreshFields() {
wFields.removeAll();
for ( int i = 0; i < fields.size(); i++ ) {
wFields.add( ( (TextFileInputField) fields.get( i ) ).getName() );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
private void refreshFields() {
wFields.removeAll();
for ( int i = 0; i < fields.size(); i++ ) {
wFields.add( fields.get( i ).getName() );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
private void refreshValidationsList() {
wValidationsList.removeAll();
for ( Validation validation : selectionList ) {
wValidationsList.add( validation.getName() );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
public void getData() {
wListSource.removeAll();
wListDest.removeAll();
if ( input != null ) {
for ( int i = 0; i < input.length; i++ ) {
Integer idx = Integer.valueOf( i );
String str = selection.get( idx );
if ( str == null ) { // Not selected: show in source!
wListSource.add( input[i] );
} else { // Selected, show in destination!
wListDest.add( input[i] );
}
}
}
setPageComplete( canFlipToNextPage() );
}
代码示例来源:origin: pentaho/pentaho-kettle
public void getData() {
wListSource.removeAll();
if ( input != null ) {
for ( int i = 0; i < input.length; i++ ) {
wListSource.add( input[i] );
}
}
setPageComplete( canFlipToNextPage() );
}
代码示例来源:origin: pentaho/pentaho-kettle
private void refreshMappings() {
wResult.removeAll();
for ( int i = 0; i < mappings.size(); i++ ) {
SourceToTargetMapping mapping = mappings.get( i );
wSource.removeAll();
wTarget.removeAll();
代码示例来源:origin: pentaho/pentaho-kettle
private void refresh() {
wSelection.removeAll();
代码示例来源:origin: pentaho/pentaho-kettle
public void refreshGrid() {
applyChangedValue();
wTodo.removeAll();
wKey.setText( "" );
wMain.setText( "" );
wValue.setText( "" );
wSource.setText( "" );
selectedLocale = wLocale.getSelectionCount() == 0 ? null : wLocale.getSelection()[0];
selectedSourceFolder =
wPackages.table.getSelectionCount() == 0 ? null : wPackages.table.getSelection()[0].getText( 1 );
selectedMessagesPackage =
wPackages.table.getSelectionCount() == 0 ? null : wPackages.table.getSelection()[0].getText( 2 );
refreshPackages();
// Only continue with a locale & a messages package, otherwise we won't
// budge ;-)
//
if ( selectedLocale != null && selectedSourceFolder != null && selectedMessagesPackage != null ) {
// Get the list of keys that need a translation...
//
java.util.List<KeyOccurrence> todo =
getTodoList( selectedLocale, selectedMessagesPackage, selectedSourceFolder, false );
String[] todoItems = new String[todo.size()];
for ( int i = 0; i < todoItems.length; i++ ) {
todoItems[i] = todo.get( i ).getKey();
}
wTodo.setItems( todoItems );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
wSamples.removeAll();
String[] samples = getRowSamples( position, width );
for ( int i = 0; i < samples.length; i++ ) {
代码示例来源:origin: pentaho/pentaho-kettle
wSamples.removeAll();
String[] samples = getRowSamples( from, length );
for ( int i = 0; i < samples.length; i++ ) {
代码示例来源:origin: pentaho/pentaho-kettle
wInputList.removeAll();
for ( int i = 0; i < definitions.size(); i++ ) {
String label =
代码示例来源:origin: pentaho/pentaho-kettle
public void setAccessTypes() {
if ( wDBType.getSelectionCount() < 1 ) {
return;
}
int[] acc = DatabaseMeta.getAccessTypeList( wDBType.getSelection()[0] );
wAccType.removeAll();
for ( int i = 0; i < acc.length; i++ ) {
wAccType.add( DatabaseMeta.getAccessTypeDescLong( acc[i] ) );
}
// If nothing is selected: select the first item (mostly the native driver)
if ( wAccType.getSelectionIndex() < 0 ) {
wAccType.select( 0 );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
System.arraycopy( diffObjects, 0, objects, 0, count );
System.arraycopy( diffErrors, 0, errors, 0, count );
list.removeAll();
text.setText( "" );
canvas.redraw();
代码示例来源:origin: pentaho/pentaho-kettle
wRegExpDisallowed.setText( Const.NVL( field.getRegularExpressionNotAllowed(), "" ) );
wAllowedValues.removeAll();
if ( field.getAllowedValues() != null ) {
for ( String allowedValue : field.getAllowedValues() ) {
内容来源于网络,如有侵权,请联系作者删除!