public void addFocusListener( FocusListener lsFocus ) { wText.addFocusListener( lsFocus ); }
public void addFocusListener( FocusListener lsFocus ) { wText.addFocusListener( lsFocus ); }
props.setLook( text ); text.setText( name ); text.addFocusListener( new FocusAdapter() { @Override public void focusLost( FocusEvent arg0 ) {
props.setLook( text ); text.setText( name ); text.addFocusListener( new FocusAdapter() { @Override public void focusLost( FocusEvent arg0 ) {
props.setLook( text ); text.setText( name ); text.addFocusListener( new FocusAdapter() { @Override public void focusLost( FocusEvent arg0 ) {
props.setLook( text ); text.setText( name ); text.addFocusListener( new FocusAdapter() { @Override public void focusLost( FocusEvent arg0 ) {
props.setLook( text ); text.setText( name ); text.addFocusListener( new FocusAdapter() { @Override public void focusLost( FocusEvent arg0 ) {
props.setLook( text ); text.setText( name ); text.addFocusListener( new FocusAdapter() { @Override public void focusLost( FocusEvent arg0 ) {
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 ) {
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 );
wInputString.addFocusListener( new FocusListener() { @Override public void focusGained( FocusEvent focusEvent ) {
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 );
textWidget.addFocusListener( lsFocusText );
/** * @param listener * @see org.eclipse.swt.widgets.Control#addFocusListener(org.eclipse.swt.events.FocusListener) */ public void addFocusListener(FocusListener listener) { m_text.addFocusListener(listener); }
/** * */ 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); } }); }
@Override public void addFocusListener(FocusListener listener) { m_text.addFocusListener(listener); }
@Override public void addFocusListener(FocusListener listener) { m_text.addFocusListener(listener); }
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()); } }); }
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()); }
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() ); } }