本文整理了Java中org.eclipse.swt.widgets.Table.addTraverseListener()
方法的一些代码示例,展示了Table.addTraverseListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.addTraverseListener()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Table
类名称:Table
方法名:addTraverseListener
暂无
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench
/**
* Adds a listener to the given table that blocks all traversal operations.
*
* @param table
* The table to which the traversal suppression should be added;
* must not be <code>null</code>.
*/
protected final void addTraverseListener(final Table table) {
table.addTraverseListener(event -> event.doit = false);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench
/**
* Adds a listener to the given table that blocks all traversal operations.
*
* @param table
* The table to which the traversal suppression should be added;
* must not be <code>null</code>.
*/
protected final void addTraverseListener(final Table table) {
table.addTraverseListener(event -> event.doit = false);
}
代码示例来源:origin: pentaho/pentaho-kettle
table.addTraverseListener( lsTraverse );
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text
@Override
public void focusGained(FocusEvent e) {
if (Helper.okToUse(control)) {
if (fTraverseListener == null) {
fTraverseListener= new TraverseListener() {
@Override
public void keyTraversed(TraverseEvent event) {
if (event.detail == SWT.TRAVERSE_TAB_NEXT) {
IInformationControl iControl= fAdditionalInfoController.getCurrentInformationControl2();
if (fAdditionalInfoController.getInternalAccessor().canReplace(iControl)) {
fAdditionalInfoController.getInternalAccessor().replaceInformationControl(true);
event.doit= false;
}
}
}
};
fProposalTable.addTraverseListener(fTraverseListener);
}
}
}
@Override
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text
@Override
public void focusGained(FocusEvent e) {
if (Helper.okToUse(control)) {
if (fTraverseListener == null) {
fTraverseListener= new TraverseListener() {
@Override
public void keyTraversed(TraverseEvent event) {
if (event.detail == SWT.TRAVERSE_TAB_NEXT) {
IInformationControl iControl= fAdditionalInfoController.getCurrentInformationControl2();
if (fAdditionalInfoController.getInternalAccessor().canReplace(iControl)) {
fAdditionalInfoController.getInternalAccessor().replaceInformationControl(true);
event.doit= false;
}
}
}
};
fProposalTable.addTraverseListener(fTraverseListener);
}
}
}
@Override
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text
fTable.addTraverseListener(new TraverseListener() {
@Override
public void keyTraversed(TraverseEvent e) {
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text
fTable.addTraverseListener(new TraverseListener() {
@Override
public void keyTraversed(TraverseEvent e) {
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.examples
/**
* Creates the controls for modifying the "children"
* table, and the table itself.
* Subclasses override this method to augment the
* standard table.
*/
void createChildWidgets() {
/* Create the "children" table */
table = new Table (childGroup, SWT.MULTI | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.HIDE_SELECTION);
table.setLinesVisible (true);
table.setHeaderVisible (true);
FontData def[] = display.getSystemFont().getFontData();
table.setFont(new Font(display, def[0].getName(), 10, SWT.NONE));
GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, true, 3, 1);
gridData.heightHint = 150;
table.setLayoutData (gridData);
table.addTraverseListener (traverseListener);
/* Add columns to the table */
String [] columnHeaders = getLayoutDataFieldNames ();
for (int i = 0; i < columnHeaders.length; i++) {
TableColumn column = new TableColumn(table, SWT.NONE);
column.setText (columnHeaders [i]);
if (i == 0) column.setWidth (100);
else if (i == 1) column.setWidth (90);
else column.pack ();
}
}
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
table.addTraverseListener(new TraverseListener() {
public void keyTraversed(TraverseEvent e) {
if (e.detail == SWT.TRAVERSE_RETURN && e.stateMask == SWT.NONE) {
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
table.addTraverseListener(new TraverseListener() {
@Override
public void keyTraversed(TraverseEvent e) {
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
table.addTraverseListener(new TraverseListener() {
@Override
public void keyTraversed(TraverseEvent e) {
内容来源于网络,如有侵权,请联系作者删除!