|
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.LySwingFormField
public class LySwingFormField
This class implements the internal description of a Field object as described in the dtd.
A field is contained in a form and allows to show or to input application data. It is principally made up of a label (optional) and an input field depending of the type of the data (text, number, date, color...). It is possible to associate a tool bar and a help entry to this field.
LyFormField
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LySwingFormField(LyFormField formField)
Class constructor of a Field object for the Swing target. |
Method Summary | |
---|---|
void |
actionPerformed(LyActionEvent actionEvent)
(non-Javadoc). |
java.awt.Container |
createPanel(java.awt.LayoutManager layout)
Creates a panel. |
LyActionTransmitter |
getActionTransmitter()
(non-Javadoc). |
java.awt.Component |
getCaptionComponent()
Returns the current caption component. |
java.awt.Component |
getComponent()
(non-Javadoc). |
java.awt.Component |
getFullComponent()
Returns all the components of the current form. |
java.awt.Component |
getItemComponent()
Returns the current item component. |
LySelectionTransmitter |
getSelectionTransmitter()
(non-Javadoc). |
void |
resetContent()
(non-Javadoc). |
void |
resetContent(boolean full)
(non-Javadoc). |
void |
selectionPerformed(LySelectionEvent selectionEvent)
(non-Javadoc). |
void |
setChecked(boolean checked)
(non-Javadoc) |
void |
setContent()
Sets the default content of the current field component. |
void |
setEditable(boolean editable)
(non-Javadoc). |
void |
setEditable(boolean editable,
boolean init)
Sets the editable status of this field item. |
void |
setEnabled(boolean enabled)
(non-Javadoc). |
void |
setEnabled(boolean enabled,
boolean init)
Sets the enabled status of this form field. |
void |
setFocus()
Gives the focus to this formField. |
void |
setHidden(boolean hidden)
(non-Javadoc). |
void |
setMessage(java.lang.String message)
Updates attribute message to the given value. |
void |
setOptional(boolean optional)
(non-Javadoc). |
void |
setState(short state)
Sets the state of this field. |
void |
setToolBar(LyToolBar toolBar)
Set the toolbar for the form field. |
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 LySwingFormField(LyFormField formField)
formField
- a FIELD component defined for every type of view targets. This component is
filled with the default values.Method Detail |
---|
public void setContent()
public void resetContent()
resetContent
in interface LyResetContentInterface
LyResetContentInterface.resetContent()
public void resetContent(boolean full)
resetContent
in interface LyResetContentInterface
full
- indicates whether old components must be removed from graphical view.LyResetContentInterface.resetContent(boolean)
public void setEditable(boolean editable, boolean init)
editable
- new statusinit
- indicates if called by initialisation of the component. If true, the field
toolbar is uneditable, if false, the toolbar follows the field status.public java.awt.Container createPanel(java.awt.LayoutManager layout)
layout
- the LayoutManager to use
public java.awt.Component getCaptionComponent()
public java.awt.Component getItemComponent()
public java.awt.Component getComponent()
getComponent
in interface LySwingComponent
getComponent
in class LySwingObject
LySwingComponent.getComponent()
public java.awt.Component getFullComponent()
public void actionPerformed(LyActionEvent actionEvent)
actionPerformed
in interface LyActionListener
LyActionListener.actionPerformed(leon.view.event.LyActionEvent)
public void selectionPerformed(LySelectionEvent selectionEvent)
selectionPerformed
in interface LySelectionListener
selectionEvent
- description of the selection which has occuredLySelectionListener.selectionPerformed(leon.view.event.LySelectionEvent)
public void setEditable(boolean editable)
setEditable
in interface LyGraphicalFormField
setEditable
in interface LySetEditableInterface
editable
- Boolean indicating if attribute editable is set or unset.LySetEditableInterface.setEditable(boolean)
public void setOptional(boolean optional)
setOptional
in interface LyGraphicalFormField
setOptional
in interface LySetOptionalInterface
optional
- Boolean indicating if attribute optional is set or unset.LySetOptionalInterface.setOptional(boolean)
public void setState(short state)
setState
in interface LyGraphicalFormField
setState
in interface LySetStateInterface
state
- the state value that defines this field's foreground color. This is one of the
following value:
LySetStateInterface.setState(short)
public void setMessage(java.lang.String message)
setMessage
in interface LyGraphicalFormField
message
- New value of message.public void setEnabled(boolean enabled)
setEnabled
in interface LyGraphicalFormField
setEnabled
in interface LySetEnabledInterface
enabled
- Boolean indicating if attribute enabled is set or unset.LySetEnabledInterface.setEnabled(boolean)
public void setEnabled(boolean enabled, boolean init)
enabled
- new statusinit
- indicates if called by initialisation of the componentpublic void setChecked(boolean checked)
setChecked
in interface LyGraphicalFormField
checked
- Boolean indicating if attribute checked is set or unset.LyGraphicalFormField.setChecked(boolean)
public void setHidden(boolean hidden)
setHidden
in interface LyGraphicalFormField
setHidden
in interface LySetHiddenInterface
hidden
- Boolean indicating if attribute hidden is set or unset.LyGraphicalFormField.setHidden(boolean)
public void setToolBar(LyToolBar toolBar)
setToolBar
in interface LyGraphicalFormField
toolBar
- New value of toolBarLyGraphicalFormField.setToolBar(LyToolBar)
public LyActionTransmitter getActionTransmitter()
getActionTransmitter
in interface LyEventTransmitter
LyEventTransmitter.getActionTransmitter()
public LySelectionTransmitter getSelectionTransmitter()
getSelectionTransmitter
in interface LyEventTransmitter
LyEventTransmitter.getSelectionTransmitter()
public void setFocus()
setFocus
in interface LySetFocusInterface
LySetFocusInterface.setFocus()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |