本文整理了Java中org.eclipse.swt.widgets.Table.setFocus()
方法的一些代码示例,展示了Table.setFocus()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.setFocus()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Table
类名称:Table
方法名:setFocus
暂无
代码示例来源:origin: pentaho/pentaho-kettle
private void applyTextChange( TableItem row, int rownr, int colnr ) {
String textData = getTextWidgetValue( colnr );
row.setText( colnr, textData );
text.dispose();
table.setFocus();
tableViewModifyListener.cellFocusLost( rownr );
String[] afterEdit = getItemText( row );
checkChanged( new String[][]{ beforeEdit }, new String[][]{ afterEdit }, new int[]{ rownr } );
selectionStart = -1;
fireContentChangedListener( rownr, colnr, textData );
}
代码示例来源:origin: pentaho/pentaho-kettle
edit( activeTableRow, activeTableColumn );
table.setFocus();
} else if ( e.keyCode == SWT.ESC ) {
if ( activeTableItem != null ) {
table.setFocus();
e.doit = false;
代码示例来源:origin: pentaho/pentaho-kettle
text.dispose();
table.setFocus();
代码示例来源:origin: caoxinyu/RedisClient
containers[containers.length - 1])) {
table.setSelection(tableItem);
table.setFocus();
tableItemSelected();
break;
&& tableItem.getText().equals(keyOnly)) {
table.setSelection(tableItem);
table.setFocus();
tableItemSelected();
break;
代码示例来源:origin: pentaho/pentaho-kettle
table.setFocus();
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.ide
@Override
public void keyReleased(KeyEvent e) {
if (e.keyCode == SWT.ARROW_DOWN) {
resourceNames.setFocus();
}
}
});
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
@Override
public void setFocus() {
if (fPluginViewer != null)
fPluginViewer.getTable().setFocus();
}
代码示例来源:origin: org.eclipse/org.eclipse.team.ui
public void setVisible(boolean visible) {
super.setVisible(visible);
if (visible) {
table.setFocus();
}
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.team.ui
@Override
public void setVisible(boolean visible) {
super.setVisible(visible);
if (visible) {
table.setFocus();
}
}
代码示例来源:origin: inspectIT/inspectIT
/**
* {@inheritDoc}
*/
@Override
public void setFocus() {
tableViewer.getTable().setFocus();
}
代码示例来源:origin: inspectIT/inspectIT
/**
* {@inheritDoc}
*/
@Override
public void setFocus() {
tableViewer.getTable().setFocus();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text
@Override
public void mouseUp(MouseEvent e) {
fLastCompletionOffset= fFilterOffset;
fProposalTable.setFocus();
handleRepeatedInvocation();
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
@Override
public void setFocus() {
if (fUrlViewer != null)
fUrlViewer.getTable().setFocus();
}
代码示例来源:origin: org.eclipse.equinox.p2/ui
public void keyPressed(KeyEvent e) {
if (e.keyCode == SWT.ARROW_DOWN) {
if (table.getItemCount() > 0) {
table.setFocus();
} else if (e.character == SWT.CR) {
return;
}
}
}
});
代码示例来源:origin: org.eclipse/org.eclipse.team.ui
public void setVisible(boolean visible) {
super.setVisible(visible);
if (visible) {
fViewer.getTable().setFocus();
}
}
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.m2e.core.ui
public Properties getProperties() {
if(propertiesViewer.isCellEditorActive()) {
propertiesTable.setFocus();
}
Properties properties = new Properties();
for(int i = 0; i < propertiesTable.getItemCount(); i++ ) {
TableItem item = propertiesTable.getItem(i);
properties.put(item.getText(KEY_INDEX), item.getText(VALUE_INDEX));
}
return properties;
}
代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.converter
@Override
public void setVisible(boolean visible)
{
super.setVisible(visible);
if (visible && firstTime)
{
firstTime = false;
Table table = descriptorTableViewer.getTable();
firstTimeVisible(table);
table.setFocus();
}
}
代码示例来源:origin: inspectIT/inspectIT
/**
* Sets the focus to this view.
*/
public void setFocus() {
if (tableViewer.getTable().isVisible()) {
tableViewer.getTable().setFocus();
} else {
mainForm.setFocus();
}
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
protected void focusAndSelectFirst() {
Table table = wizardSelectionViewer.getTable();
table.setFocus();
TableItem[] items = table.getItems();
if (items.length > 0) {
TableItem first = items[0];
Object obj = first.getData();
wizardSelectionViewer.setSelection(new StructuredSelection(obj));
}
}
代码示例来源:origin: org.apache.uima/uimaj-ep-configurator
/**
* Handle add to flow.
*/
private void handleAddToFlow() {
String node = filesTable.getSelection()[0].getText(1);
addNodeToFlow(node);
getTable().setSelection(-1);
enable();
Table flowList = editor.getAggregatePage().getFlowSection().getFlowList();
flowList.setSelection(flowList.getItemCount() - 1);
editor.getAggregatePage().getFlowSection().enable();
flowList.setFocus();
}
内容来源于网络,如有侵权,请联系作者删除!