|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.event.KeyAdapter
leon.view.win.swing.LySwingFormKeyHandler
public class LySwingFormKeyHandler
This class implments a key listener for swing form components. When enter is pressed, the form is validated. When escape is pressed, the form is canceled.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static java.lang.String |
DEMAND_APPLY
Demand identifiers for application. |
static java.lang.String |
DEMAND_CANCEL
Demand identifiers for cancelling. |
static java.lang.String |
DEMAND_VALIDATE
Demand identifiers for validation. |
Constructor Summary | |
---|---|
LySwingFormKeyHandler(LyActionTransmitter actionTransmitter)
Class constructor of a handler object for the keys in a Swing form. |
|
LySwingFormKeyHandler(LyActionTransmitter actionTransmitter,
LyGetValueInterface valueInterface)
Class constructor of a handler object for the keys in a Swing form. |
Method Summary | |
---|---|
void |
actionPerformed(java.lang.String id)
Invoked when an the button is pressed. |
void |
keyPressed(java.awt.event.KeyEvent e)
Apply the correct action when a key event is generated. |
void |
keyReleased(java.awt.event.KeyEvent e)
Apply the correct action when a key event is generated. |
void |
setIgnoreCtrlTab(boolean status)
Indicates if the CTRL-TAB event should be notified. |
void |
setNotifyCancel(boolean status)
Indicates if the CANCEL event should be notified. |
void |
setNotifyTab(boolean status)
Indicates if the TAB event should be notified. |
void |
setNotifyValidate(boolean status)
Indicates if the VALIDATE event should be notified. |
Methods inherited from class java.awt.event.KeyAdapter |
---|
keyTyped |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
public static java.lang.String DEMAND_VALIDATE
LyFormController.DEMAND_VALIDATE
.
public static java.lang.String DEMAND_APPLY
LyFormController.DEMAND_APPLY
.
public static java.lang.String DEMAND_CANCEL
LyAreaController.DEMAND_CANCEL
.
Constructor Detail |
---|
public LySwingFormKeyHandler(LyActionTransmitter actionTransmitter)
actionTransmitter
- an action transmitter that processes the key events of the formpublic LySwingFormKeyHandler(LyActionTransmitter actionTransmitter, LyGetValueInterface valueInterface)
actionTransmitter
- an action transmitter that processes the key events of the formMethod Detail |
---|
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
keyReleased
in class java.awt.event.KeyAdapter
e
- the key event with the event informationsKeyListener.keyReleased(java.awt.event.KeyEvent)
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
keyPressed
in class java.awt.event.KeyAdapter
e
- the key event with the event informationsKeyListener.keyPressed(java.awt.event.KeyEvent)
public void actionPerformed(java.lang.String id)
id
- source event id (DEMAND_VALIDATE
or DEMAND_CANCEL
)LyActionListener.actionPerformed(LyActionEvent)
public void setNotifyValidate(boolean status)
status
- new validation statuspublic void setNotifyCancel(boolean status)
status
- new validation statuspublic void setNotifyTab(boolean status)
status
- new validation statuspublic void setIgnoreCtrlTab(boolean status)
status
- new validation status
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |