|
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.Objectleon.view.graphic.LyGraphicalObject
leon.view.win.swing.LySwingObject
leon.view.win.swing.LySwingFieldItem
leon.view.win.swing.LySwingDate
public class LySwingDate
This class implements the Date selector object (as described in the dtd) for swing viewer.
An input field of Date type allows to display a graphical component allowing to input or to consult date and/or hour. It does not comprise any element. It is possible to specify the type of the date as well as the display format.
LyRelation
Nested Class Summary | |
---|---|
class |
LySwingDate._LyJSpecialSelector
Special Swing selector for the date elements. |
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static int |
IMAGE_H_OFFSET
Height of the selector's button image. |
static int |
IMAGE_W_OFFSET
Width of the selector's button image. |
Constructor Summary | |
---|---|
LySwingDate(LyDate date)
Class constructor of a Date object for the Swing target. |
Method Summary | |
---|---|
void |
actionPerformed(LyActionEvent actionEvent)
Checks the values and corrects them if an event is generated. |
void |
focusGained(java.awt.event.FocusEvent e)
Don't do anything if the focus is gained. |
void |
focusLost(java.awt.event.FocusEvent e)
If the focus is lost, a notify event must be sent. |
java.awt.Component |
getComponent()
(non-Javadoc). |
java.lang.String |
getLabel()
Gets the label for the time and date this object represents, without validations. |
void |
initialize()
Initializes the current date component. |
void |
itemStateChanged(java.awt.event.ItemEvent e)
When AM or PM is selected, a notify event must be sent. |
void |
keyPressed(java.awt.event.KeyEvent evt)
(non-Javadoc). |
void |
keyReleased(java.awt.event.KeyEvent evt)
(non-Javadoc). |
void |
keyTyped(java.awt.event.KeyEvent evt)
(non-Javadoc). |
void |
setEditable(boolean editable)
(non-Javadoc). |
void |
setEnabled(boolean status)
(non-Javadoc). |
void |
setLabel(java.lang.String label)
Sets the time and date components from the specified label. |
void |
setLabel(java.lang.String label,
boolean notify)
Sets the time and date components from the specified label. |
Methods inherited from class leon.view.win.swing.LySwingFieldItem |
---|
getActionTransmitter, getSelectionTransmitter |
Methods inherited from class leon.view.win.swing.LySwingObject |
---|
getBounds, getChildrenBounds, getDefaultFrame |
Methods inherited from class leon.view.graphic.LyGraphicalObject |
---|
expand, free, getController, getEnv, getEnvironment, getIdCode, getIntResource, getMessage, getMessage, getResource, getString, getString, getString, getViewComponent, getViewManager, isFreed, isFreeing, isImageAnimated, processDemand, processDemand, testResource, translate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface leon.view.graphic.LyGraphicalComponent |
---|
free, getViewComponent |
Field Detail |
---|
public static final java.lang.String __VERSION
public static int IMAGE_W_OFFSET
public static int IMAGE_H_OFFSET
Constructor Detail |
---|
public LySwingDate(LyDate date)
date
- a DATE component defined for every type of view targets. This date is initialized
specificaly for the Swing view.Method Detail |
---|
public void initialize()
_date
description, the component will be initialized to let the choice only of date, time or both,
with different formats.
public void setEditable(boolean editable)
setEditable
in interface LySetEditableInterface
LySetEditableInterface.setEditable(boolean)
public void setEnabled(boolean status)
setEnabled
in interface LySetEnabledInterface
LySetEnabledInterface.setEnabled(boolean)
public void actionPerformed(LyActionEvent actionEvent)
actionPerformed
in interface LyActionListener
LyActionListener.actionPerformed(leon.view.event.LyActionEvent)
public java.lang.String getLabel()
getLabel
in interface LyGetLabelInterface
LyGetLabelInterface.getLabel()
,
setLabel(String)
public void setLabel(java.lang.String label)
setLabel
in interface LyGraphicalDate
setLabel
in interface LySetLabelInterface
notify
- indicates if new label must be notified to control layer.LySetLabelInterface.setLabel(java.lang.String)
,
getLabel()
public void setLabel(java.lang.String label, boolean notify)
label
- the new label for date and time.notify
- indicates if new label must be notified to control layer.getLabel()
public void keyTyped(java.awt.event.KeyEvent evt)
keyTyped
in interface java.awt.event.KeyListener
KeyListener.keyTyped(java.awt.event.KeyEvent)
public void keyPressed(java.awt.event.KeyEvent evt)
keyPressed
in interface java.awt.event.KeyListener
KeyListener.keyPressed(java.awt.event.KeyEvent)
public void keyReleased(java.awt.event.KeyEvent evt)
keyReleased
in interface java.awt.event.KeyListener
KeyListener.keyReleased(java.awt.event.KeyEvent)
public void focusGained(java.awt.event.FocusEvent e)
focusGained
in interface java.awt.event.FocusListener
FocusListener.focusGained(java.awt.event.FocusEvent)
public void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener
FocusListener.focusLost(java.awt.event.FocusEvent)
,
LySwingDate._LyJSpecialSelector.notifyController()
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
public java.awt.Component getComponent()
getComponent
in interface LySwingComponent
getComponent
in class LySwingObject
LySwingComponent.getComponent()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |