|
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.LySwingText
public class LySwingText
This class implements the Text object (as described in the dtd) for swing viewer.
An input field of Text type allows to display a graphical input or text consultation component. It does not comprise any element. It is possible to specify if the text should be hidden, if it should respect a given format, if it can be divided into several lines and the maximum number of characters that it can contain.
LyText
Nested Class Summary | |
---|---|
class |
LySwingText._LyJScrollPane
Handles text areas scoll panels. |
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static java.lang.String |
CHANGE_KEY_MAPPING
Change the default key binding. |
Constructor Summary | |
---|---|
LySwingText(LyText text)
Class constructor of a Text object for the Swing target. |
Method Summary | |
---|---|
void |
actionPerformed(LyActionEvent actionEvent)
(non-Javadoc). |
void |
changedUpdate(javax.swing.event.DocumentEvent e)
Nothing is done when document events are triggered at a changed property. |
void |
focusGained(java.awt.event.FocusEvent e)
(non-Javadoc). |
void |
focusLost(java.awt.event.FocusEvent e)
(non-Javadoc). |
LyJAutoCompletionViewer |
getAutoCompletionViewer()
|
java.awt.Component |
getComponent()
(non-Javadoc). |
void |
initialize()
Builds the text component and places it in the scroll panel if needed. |
void |
insertUpdate(javax.swing.event.DocumentEvent e)
Restores the text component at every insertion update. |
boolean |
isEditable()
Indicates if the field item is editable or not. |
void |
keyPressed(java.awt.event.KeyEvent e)
Keeps the focus when the user pressed the Enter key and it is necessary to keep it. |
void |
keyReleased(java.awt.event.KeyEvent e)
Nothing is done when a key is released. |
void |
keyTyped(java.awt.event.KeyEvent e)
Nothing is done when a key is typed. |
void |
removeUpdate(javax.swing.event.DocumentEvent e)
Restores the text component at every removing update. |
void |
setContent()
Registers keyboard events for this text component. |
void |
setEditable(boolean editable)
Sets the editable status of the field item. |
void |
setEnabled(boolean status)
Sets the text component editable status. |
void |
setLabel(java.lang.String labelNew)
(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
public static java.lang.String CHANGE_KEY_MAPPING
Constructor Detail |
---|
public LySwingText(LyText text)
text
- a TEXT component defined for every type of view targets. This text is initialized
specificaly for the Swing view.Method Detail |
---|
public void initialize()
public void setContent()
public void actionPerformed(LyActionEvent actionEvent)
actionPerformed
in interface LyActionListener
LyActionListener.actionPerformed(leon.view.event.LyActionEvent)
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
e
- discarded key eventKeyListener.keyTyped(java.awt.event.KeyEvent)
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
KeyListener.keyPressed(java.awt.event.KeyEvent)
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
e
- discarded key eventKeyListener.keyTyped(java.awt.event.KeyEvent)
public void changedUpdate(javax.swing.event.DocumentEvent e)
changedUpdate
in interface javax.swing.event.DocumentListener
e
- discarded document eventDocumentListener.changedUpdate(javax.swing.event.DocumentEvent)
public void insertUpdate(javax.swing.event.DocumentEvent e)
insertUpdate
in interface javax.swing.event.DocumentListener
DocumentListener.insertUpdate(javax.swing.event.DocumentEvent)
public void removeUpdate(javax.swing.event.DocumentEvent e)
removeUpdate
in interface javax.swing.event.DocumentListener
DocumentListener.removeUpdate(javax.swing.event.DocumentEvent)
public LyJAutoCompletionViewer getAutoCompletionViewer()
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)
public void setLabel(java.lang.String labelNew)
setLabel
in interface LyGraphicalText
setLabel
in interface LySetLabelInterface
labelNew
- new labelLySetLabelInterface.setLabel(java.lang.String)
public void setEditable(boolean editable)
setEditable
in interface LySetEditableInterface
editable
- new statusLySetEditableInterface.setEditable(boolean)
public boolean isEditable()
public void setEnabled(boolean status)
setEnabled
in interface LySetEnabledInterface
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 |