LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.win.swing
Class LySwingFile

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.win.swing.LySwingObject
          extended by leon.view.win.swing.LySwingFieldItem
              extended by leon.view.win.swing.LySwingFile
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, LyActionListener, LyEventTransmitter, LyGraphicalComponent, LyGraphicalFieldItem, LyGraphicalFile, LyViewComponent, LyFreeInterface, LySetEditableInterface, LySetEnabledInterface, LySetLabelInterface, LySwingComponent

public class LySwingFile
extends LySwingFieldItem
implements LySwingComponent, LyActionListener, LySetEditableInterface, LySetEnabledInterface, LySetLabelInterface, LyGraphicalFile, java.awt.event.ActionListener

This class implements the File selector object (as described in the dtd) for swing viewer.

An input field of File type allows to display a graphical component allowing to select a file. The type of file can be specified (text, image, audio, video). According to the form in which this field is present, the graphical component allows to choose the location of the file and/or to view the access path to the file.

See Also:
LyFile

Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LySwingFile(LyFile file)
          Class constructor of a File object for the Swing target.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Invoked when an action occurs.
 void actionPerformed(LyActionEvent actionEvent)
          Invoked when an action occurs.
 java.awt.Component getComponent()
          (non-Javadoc).
 java.lang.String getLabel()
          Gets the label of the file component.
 void initialize()
          Initialize this object.
 void setContent()
          Sets the inital value of this object.
 void setEditable(boolean editable)
          (Modification) Accessor (LySetEditableInterface interface).
 void setEnabled(boolean enabled)
          Indicates the parent enablen status.
 void setLabel(java.lang.String label)
          Sets the label of the file component.
 
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

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LySwingFile

public LySwingFile(LyFile file)
Class constructor of a File object for the Swing target.

Parameters:
file - a FILE component defined for every type of view targets. This component is initialized specificaly for the Swing view.
Method Detail

initialize

public void initialize()
Initialize this object. Builds the graphic component according to its type and registers its events.


setContent

public void setContent()
Sets the inital value of this object.


setEditable

public void setEditable(boolean editable)
Description copied from interface: LySetEditableInterface
(Modification) Accessor (LySetEditableInterface interface).

Specified by:
setEditable in interface LySetEditableInterface

setEnabled

public void setEnabled(boolean enabled)
Indicates the parent enablen status.

Specified by:
setEnabled in interface LySetEnabledInterface
See Also:
LySetEnabledInterface.setEnabled(boolean)

actionPerformed

public void actionPerformed(LyActionEvent actionEvent)
Description copied from interface: LyActionListener
Invoked when an action occurs. (LyActionListener interface)

Specified by:
actionPerformed in interface LyActionListener

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Invoked when an action occurs.

Specified by:
actionPerformed in interface java.awt.event.ActionListener

getLabel

public java.lang.String getLabel()
Gets the label of the file component.

Returns:
the title of the choice selector
See Also:
setLabel(String)

setLabel

public void setLabel(java.lang.String label)
Sets the label of the file component.

Specified by:
setLabel in interface LyGraphicalFile
Specified by:
setLabel in interface LySetLabelInterface
Parameters:
label - new label
See Also:
getLabel(), LySetLabelInterface.setLabel(String)

getComponent

public java.awt.Component getComponent()
Description copied from class: LySwingObject
(non-Javadoc).

Specified by:
getComponent in interface LySwingComponent
Overrides:
getComponent in class LySwingObject
Returns:
this Swing view component
See Also:
LySwingComponent.getComponent()

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com