LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.win.swing
Class LySwingNotice

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.LySwingPanel
                  extended by leon.view.win.swing.LySwingNotice
All Implemented Interfaces:
LyEventTransmitter, LyGraphicalComponent, LyGraphicalFieldItem, LyGraphicalNotice, LyGraphicalPanel, LyViewComponent, LyFreeInterface, LySetPopupMenuInterface, LySwingComponent

public class LySwingNotice
extends LySwingPanel
implements LySwingComponent, LyGraphicalNotice

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

An information panel allows to display an insert having an informative purpose. It is possible to assign an icon, a label and a progress bar to an information panel.

See Also:
LyForm

Field Summary
static java.lang.String __VERSION
           
 int BORDER_SIZE
          Number of pixels of the border.
 
Constructor Summary
LySwingNotice(LyNotice notice)
          Class constructor of an Information panel object for the Swing target.
 
Method Summary
 void checkMultiLineLabel(java.awt.Component comp)
          Sets up correctly the label rows and columns if it's multilined.
 javax.swing.JPanel createContentPanel()
          Creates and configures the internal panel's container.
 java.awt.Container createInternalPanel()
          Creates and configures the internal panel.
 java.awt.Component getComponent()
          (non-Javadoc).
 void initialize()
          Builds the panel and sets its background color as well as the layout to use.
 void setContent()
          Fills the panel with default properties.
 
Methods inherited from class leon.view.win.swing.LySwingPanel
setPopupMenu
 
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

BORDER_SIZE

public int BORDER_SIZE
Number of pixels of the border.

Constructor Detail

LySwingNotice

public LySwingNotice(LyNotice notice)
Class constructor of an Information panel object for the Swing target.

Parameters:
notice - a NOTICE component defined for every type of view targets. This information panel is initialized specificaly for the Swing view.
Method Detail

initialize

public void initialize()
Builds the panel and sets its background color as well as the layout to use.


setContent

public void setContent()
Fills the panel with default properties.


createInternalPanel

public java.awt.Container createInternalPanel()
Creates and configures the internal panel. Initializes its display properties as well as the layout to use.

Returns:
the configured internal panel

createContentPanel

public javax.swing.JPanel createContentPanel()
Creates and configures the internal panel's container.

Returns:
an empty panel

checkMultiLineLabel

public void checkMultiLineLabel(java.awt.Component comp)
Sets up correctly the label rows and columns if it's multilined.

Parameters:
comp - the label component

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()

(c) January 2013 - W4 S.A.

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