public class SwtFocusAction extends java.lang.Object implements org.eclipse.swt.events.FocusListener
Modifier and Type | Field and Description |
---|---|
protected SwtMng |
guiMng |
private SwtProperties |
propertiesGui |
(package private) java.lang.String |
sCmdEnter |
(package private) java.lang.String |
sCmdRelease |
private GralUserAction |
userAction
Reference to the users method.
|
Constructor and Description |
---|
SwtFocusAction(SwtMng guiMng,
GralUserAction userCmdGui,
java.lang.String sCmdEnter,
java.lang.String sCmdRelease)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
exec(org.eclipse.swt.events.FocusEvent ev,
java.lang.String sCmd) |
void |
focusGained(org.eclipse.swt.events.FocusEvent ev) |
void |
focusLost(org.eclipse.swt.events.FocusEvent ev) |
(package private) void |
setUserAction(GralUserAction userAction) |
private GralUserAction userAction
java.lang.String sCmdEnter
java.lang.String sCmdRelease
private final SwtProperties propertiesGui
public SwtFocusAction(SwtMng guiMng, GralUserAction userCmdGui, java.lang.String sCmdEnter, java.lang.String sCmdRelease)
guiMng
- The Gui-manageruserCmdGui
- The users method for the action.sCmdPress
- command string provided as first parameter on mouse button press.sCmdRelease
- sCmdDoubleClick
- void setUserAction(GralUserAction userAction)
public void focusGained(org.eclipse.swt.events.FocusEvent ev)
focusGained
in interface org.eclipse.swt.events.FocusListener
public void focusLost(org.eclipse.swt.events.FocusEvent ev)
focusLost
in interface org.eclipse.swt.events.FocusListener
private void exec(org.eclipse.swt.events.FocusEvent ev, java.lang.String sCmd)