本文整理了Java中org.eclipse.swt.widgets.Text.addFocusListener()
方法的一些代码示例,展示了Text.addFocusListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Text.addFocusListener()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Text
类名称:Text
方法名:addFocusListener
暂无
代码示例来源:origin: pentaho/pentaho-kettle
public void addFocusListener( FocusListener lsFocus ) {
wText.addFocusListener( lsFocus );
}
代码示例来源:origin: pentaho/pentaho-kettle
public void addFocusListener( FocusListener lsFocus ) {
wText.addFocusListener( lsFocus );
}
代码示例来源:origin: pentaho/pentaho-kettle
props.setLook( text );
text.setText( name );
text.addFocusListener( new FocusAdapter() {
@Override
public void focusLost( FocusEvent arg0 ) {
代码示例来源:origin: pentaho/pentaho-kettle
props.setLook( text );
text.setText( name );
text.addFocusListener( new FocusAdapter() {
@Override
public void focusLost( FocusEvent arg0 ) {
代码示例来源:origin: pentaho/pentaho-kettle
props.setLook( text );
text.setText( name );
text.addFocusListener( new FocusAdapter() {
@Override
public void focusLost( FocusEvent arg0 ) {
代码示例来源:origin: pentaho/pentaho-kettle
props.setLook( text );
text.setText( name );
text.addFocusListener( new FocusAdapter() {
@Override
public void focusLost( FocusEvent arg0 ) {
代码示例来源:origin: pentaho/pentaho-kettle
props.setLook( text );
text.setText( name );
text.addFocusListener( new FocusAdapter() {
@Override
public void focusLost( FocusEvent arg0 ) {
代码示例来源:origin: pentaho/pentaho-kettle
props.setLook( text );
text.setText( name );
text.addFocusListener( new FocusAdapter() {
@Override
public void focusLost( FocusEvent arg0 ) {
代码示例来源:origin: pentaho/pentaho-kettle
wInputStep.addFocusListener( new FocusAdapter() {
@Override
public void focusLost( FocusEvent event ) {
wDescription.addFocusListener( new FocusAdapter() {
@Override
public void focusLost( FocusEvent event ) {
wOutputStep.addFocusListener( new FocusAdapter() {
@Override
public void focusLost( FocusEvent event ) {
代码示例来源:origin: pentaho/pentaho-kettle
GridData gdSeq = new GridData( GridData.FILL_HORIZONTAL );
wSeq.setLayoutData( gdSeq );
wSeq.addFocusListener( new FocusListener() {
public void focusGained( FocusEvent arg0 ) {
input.setTechKeyCreation( CombinationLookupMeta.CREATION_METHOD_SEQUENCE );
代码示例来源:origin: pentaho/pentaho-kettle
wInputString.addFocusListener( new FocusListener() {
@Override
public void focusGained( FocusEvent focusEvent ) {
代码示例来源:origin: pentaho/pentaho-kettle
GridData gdSeq = new GridData( GridData.FILL_HORIZONTAL );
wSeq.setLayoutData( gdSeq );
wSeq.addFocusListener( new FocusListener() {
public void focusGained( FocusEvent arg0 ) {
input.setTechKeyCreation( DimensionLookupMeta.CREATION_METHOD_SEQUENCE );
代码示例来源:origin: pentaho/pentaho-kettle
textWidget.addFocusListener( lsFocusText );
代码示例来源:origin: org.eclipse.scout.sdk.s2e/org.eclipse.scout.sdk.s2e.nls
/**
* @param listener
* @see org.eclipse.swt.widgets.Control#addFocusListener(org.eclipse.swt.events.FocusListener)
*/
public void addFocusListener(FocusListener listener) {
m_text.addFocusListener(listener);
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
/**
*
*/
private void createUITextFocusListener() {
// Required to enable Ctrl-V paste operations
text.addFocusListener(new FocusAdapter() {
@Override
public void focusGained(FocusEvent e) {
ITextSelection selection = new TextSelection(1, 1);
part.getPage().getPDEEditor().getContributor().updateSelectableActions(selection);
}
});
}
代码示例来源:origin: org.eclipse.scout.sdk.s2e/org.eclipse.scout.sdk.s2e.nls
@Override
public void addFocusListener(FocusListener listener) {
m_text.addFocusListener(listener);
}
代码示例来源:origin: org.eclipse.scout.sdk.s2e/org.eclipse.scout.sdk.s2e.nls
@Override
public void addFocusListener(FocusListener listener) {
m_text.addFocusListener(listener);
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
private StringPreference(Text control, String label, String key) {
super(control, label, key, FilteredPreferenceTree.TEXT_VALUE_MATCHER);
fControl.addModifyListener(e -> updateValue());
fControl.addFocusListener(new FocusAdapter() {
@Override
public void focusGained(FocusEvent e) {
fControl.setSelection(0, fControl.getCharCount());
}
});
}
代码示例来源:origin: org.codehaus.openxma/xmartclient
public void addListeners(Object control, EventAdapter adapter) {
if(control instanceof Text) {
((Text)control).addFocusListener(adapter);
((Text)control).addModifyListener(adapter);
((Text)control).addVerifyListener(adapter);
} else if(control instanceof Label) {
// no listener needed
} else if(control instanceof Button) {
((Button)control).addSelectionListener(adapter);
} else if(control instanceof DatePicker) {
((DatePicker)control).getDateTextField().addFocusListener(adapter);
((DatePicker)control).getDateTextField().addModifyListener(adapter);
((DatePicker)control).getDateTextField().addVerifyListener(adapter);
} else throw new IllegalArgumentException("unsupported control type: "+control.getClass().getName());
}
代码示例来源:origin: com.eclipsesource.tabris/tabris
private void createText( Composite uiParent ) {
if( text == null ) {
text = new Text( uiParent, SWT.SEARCH | SWT.ICON_SEARCH | SWT.ICON_CANCEL );
text.setData( RWT.CUSTOM_VARIANT, CUSTOM_VARIANT_TABRIS_UI );
text.setLayoutData( createRowData( TEXT_WIDTH, SWT.DEFAULT, false ) );
text.setVisible( false );
text.addListener( SWT.DefaultSelection, new TextDefaultSelectionListener() );
text.addFocusListener( new TextFocusListener() );
}
}
内容来源于网络,如有侵权,请联系作者删除!