|
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.LySwingNumber
public class LySwingNumber
This class implements the Number object (as described in the dtd) for swing viewer.
An input field of Number type allows to display a graphical component allowing to input or to consult a number value. It does not comprise any element. It is possible to specify the minimum and the maximum values, the incrementation step, the number of decimals and the unit.
LyNumber
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LySwingNumber(LyNumber number)
Class constructor of a Number object for the Swing target. |
Method Summary | |
---|---|
void |
actionPerformed(LyActionEvent actionEvent)
(non-Javadoc). |
java.awt.Component |
getComponent()
(non-Javadoc). |
java.lang.String |
getLabel()
Accessor to the label (LyGetLabelInterface interface). |
void |
keyPressed(java.awt.event.KeyEvent e)
|
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent e)
|
void |
setContent()
Sets the content of this component. |
void |
setDecimals(int decimals)
(non-Javadoc). |
void |
setEditable(boolean editable)
Sets the editable status of the field item. |
void |
setEnabled(boolean status)
Sets the enabled status of this number component. |
void |
setFormat(java.lang.String format)
(non-Javadoc). |
void |
setLabel(java.lang.String label)
Sets the label of this component, with the correct number of decimals. |
void |
setPitch(double pitch)
(non-Javadoc). |
void |
setVMax(double vMax)
(non-Javadoc). |
void |
setVMin(double vMin)
(non-Javadoc). |
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
Constructor Detail |
---|
public LySwingNumber(LyNumber number)
number
- a NUMBER component defined for every type of view targets. This number
component is initialized specificaly for the Swing view.Method Detail |
---|
public void setContent()
LyJNumberSelector
associated with
this number description, sets its default values and registers the event listeners.
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
public void setEditable(boolean editable)
setEditable
in interface LySetEditableInterface
editable
- the new editable statusLySetEditableInterface.setEditable(boolean)
public void setEnabled(boolean status)
setEnabled
in interface LySetEnabledInterface
LySetEnabledInterface.setEnabled(boolean)
public void setLabel(java.lang.String label)
setLabel
in interface LyGraphicalNumber
setLabel
in interface LySetLabelInterface
label
- the new labelLySetLabelInterface.setLabel(String)
public java.lang.String getLabel()
LyGetLabelInterface
getLabel
in interface LyGetLabelInterface
public java.awt.Component getComponent()
getComponent
in interface LySwingComponent
getComponent
in class LySwingObject
LySwingComponent.getComponent()
public void actionPerformed(LyActionEvent actionEvent)
actionPerformed
in interface LyActionListener
LyActionListener.actionPerformed(leon.view.event.LyActionEvent)
public void setFormat(java.lang.String format)
setFormat
in interface LyGraphicalNumber
setFormat
in interface LySetNumberInterface
format
- New value of format.LySetNumberInterface.setFormat(java.lang.String)
public void setVMin(double vMin)
setVMin
in interface LyGraphicalNumber
setVMin
in interface LySetNumberInterface
vMin
- New value of the minimum.LySetNumberInterface.setVMin(double)
public void setVMax(double vMax)
setVMax
in interface LyGraphicalNumber
setVMax
in interface LySetNumberInterface
vMax
- New value of maximum.LySetNumberInterface.setVMax(double)
public void setPitch(double pitch)
setPitch
in interface LyGraphicalNumber
setPitch
in interface LySetNumberInterface
pitch
- New value of pitch.LySetNumberInterface.setPitch(double)
public void setDecimals(int decimals)
setDecimals
in interface LyGraphicalNumber
setDecimals
in interface LySetNumberInterface
decimals
- New value of the number of decimals.LySetNumberInterface.setDecimals(int)
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |