本文整理了Java中org.eclipse.swt.widgets.Button.setFocus()
方法的一些代码示例,展示了Button.setFocus()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setFocus()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Button
类名称:Button
方法名:setFocus
暂无
代码示例来源:origin: pentaho/pentaho-kettle
public boolean setFocus() {
return wBox.setFocus();
}
代码示例来源:origin: pentaho/pentaho-kettle
public void getData() {
if ( text != null ) {
wDesc.setText( text );
}
if ( readonly ) {
wOK.setFocus();
} else {
wDesc.setFocus();
}
}
代码示例来源:origin: pentaho/pentaho-kettle
protected void openDialog() {
shell.pack();
// Set the focus on the OK button
wOK.setFocus();
Rectangle shellBounds = getParent().getBounds();
Point dialogSize = shell.getSize();
shell.setLocation( shellBounds.x + ( shellBounds.width - dialogSize.x ) / 2, shellBounds.y
+ ( shellBounds.height - dialogSize.y ) / 2 );
shell.open();
while ( !shell.isDisposed() ) {
if ( !display.readAndDispatch() ) {
display.sleep();
}
}
}
代码示例来源:origin: pentaho/pentaho-kettle
wOK.setFocus();
代码示例来源:origin: pentaho/pentaho-kettle
Rectangle screenSize = display.getPrimaryMonitor().getBounds();
shell.setLocation( ( screenSize.width - shell.getBounds().width ) / 2, ( screenSize.height - shell.getBounds().height ) / 2 );
closeButton.setFocus();
shell.open();
while ( !shell.isDisposed() ) {
代码示例来源:origin: pentaho/pentaho-kettle
wLaunch.setFocus();
shell.setDefaultButton( wLaunch );
代码示例来源:origin: pentaho/pentaho-kettle
wOK.setFocus();
shell.pack();
shell.open();
代码示例来源:origin: pentaho/pentaho-kettle
button.setFocus();
代码示例来源:origin: pentaho/pentaho-kettle
wOK.setFocus();
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface
@Override
public void setFocus() {
if (checkBox != null) {
checkBox.setFocus();
}
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface
public void setFocus() {
if (checkBox != null) {
checkBox.setFocus();
}
}
代码示例来源:origin: inspectIT/inspectIT
/**
* {@inheritDoc}
*/
@Override
protected void createButtonsForButtonBar(Composite parent) {
createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CLOSE_LABEL, true).setFocus();
}
代码示例来源:origin: BiglySoftware/BiglyBT
@Override
public void widgetSelected(SelectionEvent event) {
// force focusout on osx
apply.setFocus();
save();
}
});
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
@Override
boolean mnemonicHit (char key) {
if (labelHandle == 0) return false;
boolean result = super.mnemonicHit (labelHandle, key);
if (result) setFocus ();
return result;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
@Override
boolean mnemonicHit (char key) {
if (labelHandle == 0) return false;
boolean result = super.mnemonicHit (labelHandle, key);
if (result) setFocus ();
return result;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.compare
@Override
public void applyData(Object data) {
if (ComparePreferencePage.CAPPING_DISABLED.equals(data)) {
fTextCompareTab.getParent().setSelection(fTextCompareTab);
fDisableCappingCheckBox.setFocus();
}
}
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface
@Override
protected void doSetFocus() {
button.setFocus();
// add a FocusListener to the button
button.addFocusListener(getButtonFocusListener());
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
@Override
protected void createButtonsForButtonBar(Composite parent) {
super.createButtonsForButtonBar(parent);
Button ok= getButton(IDialogConstants.OK_ID);
ok.setText( RefactoringMessages.ChangeExceptionHandler_undo_button);
Button abort= createButton(parent, IDialogConstants.CANCEL_ID, RefactoringMessages.ChangeExceptionHandler_abort_button, true);
abort.moveBelow(ok);
abort.setFocus();
}
@Override
代码示例来源:origin: inspectIT/inspectIT
/**
* {@inheritDoc}
*/
@Override
protected void createButtonsForButtonBar(Composite parent) {
createButton(parent, IDialogConstants.DETAILS_ID, IDialogConstants.SHOW_DETAILS_LABEL, false);
createButton(parent, IDialogConstants.CLIENT_ID, "Send Error Report", false);
createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CLOSE_LABEL, true).setFocus();
}
代码示例来源:origin: BiglySoftware/BiglyBT
@Override
public void widgetSelected(SelectionEvent event) {
// force focusout on osx
apply.setFocus();
save();
apply.getShell().dispose();
}
});
内容来源于网络,如有侵权,请联系作者删除!