LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.win.swing
Class LySwingConstraint

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.win.swing.LySwingObject
          extended by leon.view.win.swing.LySwingConstraint
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalConstraint, LyViewComponent, LyFreeInterface, LySwingComponent

public class LySwingConstraint
extends LySwingObject
implements LyGraphicalConstraint

This class implements the internal description of a Constraint object as described in the dtd.

A constraint allows to specify for a given graphical component the way it will be placed inside its parent (to be specific, the graphical component that contains it).

See Also:
LyComponent

Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LySwingConstraint(LyConstraint constraint)
          Class constructor of a constraint object.
 
Method Summary
static java.awt.GridBagConstraints buildConstraint(LyComponent dataNode, LyConstraint requestedConstraint, java.awt.GridBagConstraints defaultGB)
          Builds a contraint object for the layout of a label or component.
static void dump(java.awt.GridBagConstraints c)
          Prints the content of the given GridBagConstraints (useful for debug).
 
Methods inherited from class leon.view.win.swing.LySwingObject
getBounds, getChildrenBounds, getComponent, 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

LySwingConstraint

public LySwingConstraint(LyConstraint constraint)
Class constructor of a constraint object.

Parameters:
constraint - a constraint object that is applied to a swing component.
Method Detail

buildConstraint

public static java.awt.GridBagConstraints buildConstraint(LyComponent dataNode,
                                                          LyConstraint requestedConstraint,
                                                          java.awt.GridBagConstraints defaultGB)
Builds a contraint object for the layout of a label or component. The constraints are the same for every data node component. The only change that appears is on the requestedConstraint parameter which applies another constraint to the original. If no requested constraint is specified (its value is null), then the default GridBagConstaint is returned.

Parameters:
dataNode - the component to build its constraints, not used in this implementation
requestedConstraint - the constraints to apply on the dataNode component
defaultGB - a default GridBagConstraint to use if no other constraint is usable
Returns:
the constraints of the specified component

dump

public static void dump(java.awt.GridBagConstraints c)
Prints the content of the given GridBagConstraints (useful for debug).

Parameters:
c - the GridBagConstraints to dump

(c) January 2013 - W4 S.A.

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