LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.win.swing
Class LySwingCommands

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.win.swing.LySwingObject
          extended by leon.view.win.swing.LySwingCommands
All Implemented Interfaces:
LyActionListener, LyEventTransmitter, LyGraphicalCommands, LyGraphicalComponent, LyViewComponent, LyFreeInterface, LySwingComponent

public class LySwingCommands
extends LySwingObject
implements LySwingComponent, LyActionListener, LyGraphicalCommands, LyEventTransmitter

This class implements the Command bar object (as described in the dtd) for swing viewer.

A command bar allows to display a set of command buttons (Validate, Cancel, Close, etc.). This bar is generally located at the bottom of a page or window.

See Also:
LyCommands, LyCommand, LySwingCommand

Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LySwingCommands(LyCommands commands)
          Class constructor of a command bar object for the Swing target.
 
Method Summary
 void actionPerformed(LyActionEvent actionEvent)
          (non-Javadoc).
 void addCommand(java.awt.Component button)
          Adds a button component to the panel.
 void addSep()
          Adds a separator to the panel.
 java.awt.Container createLastBorderPanel(int align)
          Creates and configures the last border panel.
 java.awt.Container createPanel()
          Creates and configures the panel that contains all the commands.
 void free()
          (non-Javadoc).
 LyActionTransmitter getActionTransmitter()
          (non-Javadoc).
 java.awt.Component getComponent()
          (non-Javadoc).
 LySelectionTransmitter getSelectionTransmitter()
          This command bar doesn't handle selection events, so it has no selection transmitter.
 void initialize()
          Initializes the current commands panel.
 void setContent()
          Creates and configures all the command buttons for this command bar.
 
Methods inherited from class leon.view.win.swing.LySwingObject
getBounds, getChildrenBounds, getDefaultFrame
 
Methods inherited from class leon.view.graphic.LyGraphicalObject
expand, 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
getViewComponent
 

Field Detail

__VERSION

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

LySwingCommands

public LySwingCommands(LyCommands commands)
Class constructor of a command bar object for the Swing target.

Parameters:
commands - a COMMANDS component defined for every type of view targets. This command bar component is initialized specificaly for the Swing view.
Method Detail

initialize

public void initialize()
Initializes the current commands panel.


createPanel

public java.awt.Container createPanel()
Creates and configures the panel that contains all the commands.

Returns:
a new commands panel

createLastBorderPanel

public java.awt.Container createLastBorderPanel(int align)
Creates and configures the last border panel.

Parameters:
align - Specifies the alignment of the commands using the FlowLayout alignment values.
Returns:
the last border panel

setContent

public void setContent()
Creates and configures all the command buttons for this command bar.


actionPerformed

public void actionPerformed(LyActionEvent actionEvent)
(non-Javadoc).

Specified by:
actionPerformed in interface LyActionListener
See Also:
LyActionListener.actionPerformed(leon.view.event.LyActionEvent)

getActionTransmitter

public LyActionTransmitter getActionTransmitter()
(non-Javadoc).

Specified by:
getActionTransmitter in interface LyEventTransmitter
Returns:
the action transmitter of this component
See Also:
LyEventTransmitter.getActionTransmitter()

getSelectionTransmitter

public LySelectionTransmitter getSelectionTransmitter()
This command bar doesn't handle selection events, so it has no selection transmitter.

Specified by:
getSelectionTransmitter in interface LyEventTransmitter
Returns:
null
See Also:
LyEventTransmitter.getSelectionTransmitter()

free

public void free()
(non-Javadoc).

Specified by:
free in interface LyGraphicalComponent
Specified by:
free in interface LyFreeInterface
Overrides:
free in class LyGraphicalObject
See Also:
LyFreeInterface.free()

getComponent

public java.awt.Component getComponent()
(non-Javadoc).

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

addCommand

public void addCommand(java.awt.Component button)
Adds a button component to the panel.

Parameters:
button - the button component

addSep

public void addSep()
Adds a separator to the panel.


(c) January 2013 - W4 S.A.

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