本文整理了Java中org.eclipse.swt.widgets.Table.remove()
方法的一些代码示例,展示了Table.remove()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.remove()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Table
类名称:Table
方法名:remove
[英]Removes the item from the receiver at the given zero-relative index.
[中]以给定的零相对索引从接收方移除项。
代码示例来源:origin: pentaho/pentaho-kettle
public void remove( int[] index ) {
table.remove( index );
if ( table.getItemCount() == 0 ) {
new TableItem( table, SWT.NONE );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
public void remove( int index ) {
table.remove( index );
if ( table.getItemCount() == 0 ) {
new TableItem( table, SWT.NONE );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
public void removeEmptyRows( int column ) {
// Remove "empty" table items, where item.getText(1) is empty, length==0
for ( int i = table.getItemCount() - 1; i >= 0; i-- ) {
if ( isEmpty( i, column ) ) {
table.remove( i );
}
}
if ( table.getItemCount() == 0 ) { // At least one empty row!
new TableItem( table, SWT.NONE );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
table.remove( rownr );
代码示例来源:origin: pentaho/pentaho-kettle
@Override
public void run() {
if ( wFields.isDisposed() ) {
return;
}
if ( waitingForRows ) {
PreviewRowsDialog.this.rowMeta = rowMeta;
addFields();
}
TableItem item = new TableItem( wFields.table, SWT.NONE );
getDataForRow( item, rowData );
if ( waitingForRows ) {
waitingForRows = false;
wFields.removeEmptyRows();
PreviewRowsDialog.this.rowMeta = rowMeta;
if ( wFields.table.getItemCount() < 10 ) {
wFields.optWidth( true );
}
}
if ( wFields.table.getItemCount() > props.getDefaultPreviewSize() ) {
wFields.table.remove( 0 );
}
// wFields.table.setSelection(new TableItem[] { item, });
wFields.table.setTopIndex( wFields.table.getItemCount() - 1 );
}
} );
代码示例来源:origin: pentaho/pentaho-kettle
table.remove( items );
代码示例来源:origin: pentaho/pentaho-kettle
table.remove( items );
代码示例来源:origin: pentaho/pentaho-kettle
table.remove( idx );
for ( int i = 0; i < idx.length; i++ ) {
if ( idx[i] < rownr ) {
代码示例来源:origin: pentaho/pentaho-kettle
table.remove( idx );
for ( int i = 0; i < idx.length; i++ ) {
if ( idx[i] < rownr ) {
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface
@Override
protected void doRemove(int[] indices) {
table.remove(indices);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.team.ui
private void removeIgnore() {
int[] selection = ignoreTable.getSelectionIndices();
ignoreTable.remove(selection);
}
private void handleSelection() {
代码示例来源:origin: org.springframework.extensions.surf/spring-surf-commons-ui
/**
* @param table
* @return
*/
public static int [] deleteCheckedItems(Table table)
{
int [] selected = getCheckedItems(table);
table.remove (selected);
return selected;
}
代码示例来源:origin: org.eclipse/org.eclipse.team.ui
private void removeIgnore() {
int[] selection = ignoreTable.getSelectionIndices();
ignoreTable.remove(selection);
}
private void handleSelection() {
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
private void shortenTable() {
if (VIRTUAL)
return;
if (fNextElement < fItems.size()) {
fTable.setRedraw(false);
fTable.remove(fNextElement, fItems.size() - 1);
fTable.setRedraw(true);
}
for (int i= fItems.size() - 1; i >= fNextElement; i--) {
fItems.remove(i);
}
}
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
private void shortenTable() {
if (VIRTUAL)
return;
if (fNextElement < fItems.size()) {
fTable.setRedraw(false);
fTable.remove(fNextElement, fItems.size() - 1);
fTable.setRedraw(true);
}
for (int i= fItems.size() - 1; i >= fNextElement; i--) {
fItems.remove(i);
}
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
private void shortenTable() {
if (VIRTUAL)
return;
if (fNextElement < fItems.size()) {
fTable.setRedraw(false);
fTable.remove(fNextElement, fItems.size() - 1);
fTable.setRedraw(true);
}
for (int i= fItems.size() - 1; i >= fNextElement; i--) {
fItems.remove(i);
}
}
代码示例来源:origin: org.eclipse/org.eclipse.ajdt.ui
private void shortenTable() {
if (VIRTUAL)
return;
if (fNextElement < fItems.size()) {
fTable.setRedraw(false);
fTable.remove(fNextElement, fItems.size() - 1);
fTable.setRedraw(true);
}
for (int i= fItems.size() - 1; i >= fNextElement; i--) {
fItems.remove(i);
}
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.m2e.core.ui
public void widgetSelected(SelectionEvent e) {
propertiesTable.remove(propertiesTable.getSelectionIndices());
removeButton.setEnabled(propertiesTable.getSelectionCount() > 0);
validate();
}
});
代码示例来源:origin: org.apache.uima/uimaj-ep-configurator
/**
* Handle remove.
*
* @param event the event
*/
public void handleRemove(Event event) {
valueTable.remove(valueTable.getSelectionIndices());
// update model
setCurrentParameterValue(valueTable.getItems());
}
代码示例来源:origin: net.sf.okapi.steps/okapi-step-searchandreplace-ui
public void widgetSelected(SelectionEvent e) {
if(table.getSelectionIndex()!=-1){
int index = table.getSelectionIndex();
table.remove(index);
if(index == table.getItemCount())
table.setSelection(index-1);
else
table.setSelection(index);
updateUpDownBtnState();
}
}
});
内容来源于网络,如有侵权,请联系作者删除!