abstract class BaseFocusControlListener
extends java.lang.Object
implements org.eclipse.swt.events.FocusListener, org.eclipse.swt.events.ControlListener
| Modifier and Type | Field and Description |
|---|---|
protected org.eclipse.swt.widgets.Control |
control |
protected static java.lang.String |
EMPTY_STRING |
| Constructor and Description |
|---|
BaseFocusControlListener(org.eclipse.swt.widgets.Control control)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
controlMoved(org.eclipse.swt.events.ControlEvent e) |
void |
controlResized(org.eclipse.swt.events.ControlEvent e) |
protected abstract void |
fillPromptText()
Fill the prompt text
|
void |
focusGained(org.eclipse.swt.events.FocusEvent e) |
void |
focusLost(org.eclipse.swt.events.FocusEvent e) |
protected abstract void |
hidePrompt()
Code when the focus behiaviour is "Hide"
|
protected abstract void |
highLightPrompt()
Code when the focus behiaviour is "Highlight"
|
protected abstract boolean |
isFilled() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected org.eclipse.swt.widgets.Control control
protected static final java.lang.String EMPTY_STRING
BaseFocusControlListener(org.eclipse.swt.widgets.Control control)
control - control on which this listener will be attachedpublic void focusGained(org.eclipse.swt.events.FocusEvent e)
focusGained in interface org.eclipse.swt.events.FocusListenerFocusListener.focusGained(org.eclipse.swt.events.FocusEvent)protected abstract void hidePrompt()
protected abstract void highLightPrompt()
public void focusLost(org.eclipse.swt.events.FocusEvent e)
focusLost in interface org.eclipse.swt.events.FocusListenerFocusListener.focusLost(org.eclipse.swt.events.FocusEvent)protected abstract boolean isFilled()
true if the widget is filled, false
otherwiseprotected abstract void fillPromptText()
public void controlMoved(org.eclipse.swt.events.ControlEvent e)
controlMoved in interface org.eclipse.swt.events.ControlListenerControlListener.controlMoved(org.eclipse.swt.events.ControlEvent)public void controlResized(org.eclipse.swt.events.ControlEvent e)
controlResized in interface org.eclipse.swt.events.ControlListenerControlListener.controlResized(org.eclipse.swt.events.ControlEvent)