LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyConstraintBase

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyConstraintBase
Direct Known Subclasses:
LyConstraint

public abstract class LyConstraintBase
extends LyComponent

The LyConstraintBase class is a generated Java implementation that corresponds to the element CONSTRAINT of the descriptive grammar of the views (views.dtd). <CONSTRAINT> : Positioning Constraint A constraint allows specifying for a given graphical component the way it will be placed inside its parent (i.e. the graphical component that contains it).

See Also:
LyComponent, See also tag CONSTRAINT of grammar leon_views.dtd.

Nested Class Summary
static class LyConstraintBase.Fill
          Possible values for attribute 'fill'.
static class LyConstraintBase.HAlign
          Possible values for attribute 'hAlign'.
static class LyConstraintBase.VAlign
          Possible values for attribute 'vAlign'.
 
Nested classes/interfaces inherited from class leon.view.LyComponent
LyComponent.EventType
 
Field Summary
static java.lang.String __VERSION
           
 
Fields inherited from class leon.view.LyComponent
_nbComponents, INIT_RESOURCE_ID, INTERNAL_ID_SEP, REWRITING_MODE, SEP_ID
 
Constructor Summary
LyConstraintBase()
          Default constructor.
 
Method Summary
 LyComponent cloneComponent()
          Method for cloning a component.
 int getBottomPadding()
          Gets value of bottomPadding.
 int getCellPadding()
          Gets value of cellPadding.
 int getCellSpacing()
          Gets value of cellSpacing.
 int getColSpan()
          Gets value of colSpan.
 double getColWeight()
          Gets value of colWeight.
 LyConstraintBase.Fill getFill()
          Gets value of fill.
static LyConstraintBase.Fill getFill(java.lang.String token)
          Utility method to get fill value from a string.
 LyConstraintBase.HAlign getHAlign()
          Gets value of hAlign.
static LyConstraintBase.HAlign getHAlign(java.lang.String token)
          Utility method to get hAlign value from a string.
 int getLeftPadding()
          Gets value of leftPadding.
 int getNCols()
          Gets value of nCols.
 int getNRows()
          Gets value of nRows.
 int getRightPadding()
          Gets value of rightPadding.
 int getRowSpan()
          Gets value of rowSpan.
 double getRowWeight()
          Gets value of rowWeight.
 int getTopPadding()
          Gets value of topPadding.
 LyConstraintBase.VAlign getVAlign()
          Gets value of vAlign.
static LyConstraintBase.VAlign getVAlign(java.lang.String token)
          Utility method to get vAlign value from a string.
 boolean isRemainder()
          Checks if value of attribute remainder is set.
 void setBottomPadding(int bottomPadding)
          Initializes attribute bottomPadding to the given value.
 void setCellPadding(int cellPadding)
          Initializes attribute cellPadding to the given value.
 void setCellSpacing(int cellSpacing)
          Initializes attribute cellSpacing to the given value.
 void setColSpan(int colSpan)
          Initializes attribute colSpan to the given value.
 void setColWeight(double colWeight)
          Initializes attribute colWeight to the given value.
 void setFill(LyConstraintBase.Fill fill)
          Initializes attribute fill to the given value.
 void setHAlign(LyConstraintBase.HAlign hAlign)
          Initializes attribute hAlign to the given value.
 void setLeftPadding(int leftPadding)
          Initializes attribute leftPadding to the given value.
 void setNCols(int nCols)
          Initializes attribute nCols to the given value.
 void setNRows(int nRows)
          Initializes attribute nRows to the given value.
 void setRemainder(boolean remainder)
          Initializes attribute remainder to the given value.
 void setRightPadding(int rightPadding)
          Initializes attribute rightPadding to the given value.
 void setRowSpan(int rowSpan)
          Initializes attribute rowSpan to the given value.
 void setRowWeight(double rowWeight)
          Initializes attribute rowWeight to the given value.
 void setTopPadding(int topPadding)
          Initializes attribute topPadding to the given value.
 void setVAlign(LyConstraintBase.VAlign vAlign)
          Initializes attribute vAlign to the given value.
 void writeXml(java.io.PrintWriter pw, boolean debug)
          Method to rewrite XML corresponding to this component.
 
Methods inherited from class leon.view.LyComponent
addComponent, addData, addEventFunction, clearChildrenBounds, free, freeze, getBounds, getChild, getChildCount, getChildFromCache, getChildrenBounds, getComponent, getComponent, getComponent, getComponent, getComponent, getComponentAt, getComponentAt, getComponentByInternalId, getComponentByLabel, getComponents, getComponentWithModel, getData, getDatas, getEnvironment, getEventFunctions, getId, getIdCode, getInternalId, getInternalView, getInternalView, getLock, getModel, getParent, getParentArea, getParentForm, getParentFormFieldId, getParentSplitter, getParentSplitter, getParentTab, getParentTab, getParentTabs, getParentTabs, getParentView, getRootController, getSetVisibleParent, getTag, getViewManager, isFreed, isFreeing, registerChildrenBounds, removeComponent, reset, resetChildrenCache, resetEventFunctions, setDatas, setInternalView, setVisible, useEventDefaultFunction, writeXml
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

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

LyConstraintBase

public LyConstraintBase()
Default constructor.

Method Detail

getFill

public static final LyConstraintBase.Fill getFill(java.lang.String token)
Utility method to get fill value from a string.

Parameters:
token - Token string
Returns:
Fill value corresponding to this token

getHAlign

public static final LyConstraintBase.HAlign getHAlign(java.lang.String token)
Utility method to get hAlign value from a string.

Parameters:
token - Token string
Returns:
HAlign value corresponding to this token

getVAlign

public static final LyConstraintBase.VAlign getVAlign(java.lang.String token)
Utility method to get vAlign value from a string.

Parameters:
token - Token string
Returns:
VAlign value corresponding to this token

cloneComponent

public LyComponent cloneComponent()
Method for cloning a component.

Specified by:
cloneComponent in class LyComponent

getColSpan

public int getColSpan()
Gets value of colSpan.

Returns:
value of colSpan.

getRowSpan

public int getRowSpan()
Gets value of rowSpan.

Returns:
value of rowSpan.

isRemainder

public boolean isRemainder()
Checks if value of attribute remainder is set.

Returns:
true if remainder is set, false otherwise.

getFill

public LyConstraintBase.Fill getFill()
Gets value of fill.

Returns:
value of fill.

getHAlign

public LyConstraintBase.HAlign getHAlign()
Gets value of hAlign.

Returns:
value of hAlign.

getVAlign

public LyConstraintBase.VAlign getVAlign()
Gets value of vAlign.

Returns:
value of vAlign.

getCellPadding

public int getCellPadding()
Gets value of cellPadding.

Returns:
value of cellPadding.

getLeftPadding

public int getLeftPadding()
Gets value of leftPadding.

Returns:
value of leftPadding.

getRightPadding

public int getRightPadding()
Gets value of rightPadding.

Returns:
value of rightPadding.

getTopPadding

public int getTopPadding()
Gets value of topPadding.

Returns:
value of topPadding.

getBottomPadding

public int getBottomPadding()
Gets value of bottomPadding.

Returns:
value of bottomPadding.

getCellSpacing

public int getCellSpacing()
Gets value of cellSpacing.

Returns:
value of cellSpacing.

getColWeight

public double getColWeight()
Gets value of colWeight.

Returns:
value of colWeight.

getRowWeight

public double getRowWeight()
Gets value of rowWeight.

Returns:
value of rowWeight.

getNCols

public int getNCols()
Gets value of nCols.

Returns:
value of nCols.

getNRows

public int getNRows()
Gets value of nRows.

Returns:
value of nRows.

setColSpan

public void setColSpan(int colSpan)
Initializes attribute colSpan to the given value.

Parameters:
colSpan - New value of colSpan.

setRowSpan

public void setRowSpan(int rowSpan)
Initializes attribute rowSpan to the given value.

Parameters:
rowSpan - New value of rowSpan.

setRemainder

public void setRemainder(boolean remainder)
Initializes attribute remainder to the given value.

Parameters:
remainder - Boolean indicating if attribute remainder is set or unset.

setFill

public void setFill(LyConstraintBase.Fill fill)
Initializes attribute fill to the given value.

Parameters:
fill - New value of fill.
Throws:
java.lang.IllegalArgumentException - if fill parameter is null.

setHAlign

public void setHAlign(LyConstraintBase.HAlign hAlign)
Initializes attribute hAlign to the given value.

Parameters:
hAlign - New value of hAlign.
Throws:
java.lang.IllegalArgumentException - if hAlign parameter is null.

setVAlign

public void setVAlign(LyConstraintBase.VAlign vAlign)
Initializes attribute vAlign to the given value.

Parameters:
vAlign - New value of vAlign.
Throws:
java.lang.IllegalArgumentException - if vAlign parameter is null.

setCellPadding

public void setCellPadding(int cellPadding)
Initializes attribute cellPadding to the given value.

Parameters:
cellPadding - New value of cellPadding.

setLeftPadding

public void setLeftPadding(int leftPadding)
Initializes attribute leftPadding to the given value.

Parameters:
leftPadding - New value of leftPadding.

setRightPadding

public void setRightPadding(int rightPadding)
Initializes attribute rightPadding to the given value.

Parameters:
rightPadding - New value of rightPadding.

setTopPadding

public void setTopPadding(int topPadding)
Initializes attribute topPadding to the given value.

Parameters:
topPadding - New value of topPadding.

setBottomPadding

public void setBottomPadding(int bottomPadding)
Initializes attribute bottomPadding to the given value.

Parameters:
bottomPadding - New value of bottomPadding.

setCellSpacing

public void setCellSpacing(int cellSpacing)
Initializes attribute cellSpacing to the given value.

Parameters:
cellSpacing - New value of cellSpacing.

setColWeight

public void setColWeight(double colWeight)
Initializes attribute colWeight to the given value.

Parameters:
colWeight - New value of colWeight.

setRowWeight

public void setRowWeight(double rowWeight)
Initializes attribute rowWeight to the given value.

Parameters:
rowWeight - New value of rowWeight.

setNCols

public void setNCols(int nCols)
Initializes attribute nCols to the given value.

Parameters:
nCols - New value of nCols.

setNRows

public void setNRows(int nRows)
Initializes attribute nRows to the given value.

Parameters:
nRows - New value of nRows.

writeXml

public void writeXml(java.io.PrintWriter pw,
                     boolean debug)
Method to rewrite XML corresponding to this component.

Specified by:
writeXml in class LyComponent
Parameters:
pw - the printWriter on which the XML is written.
debug - true if debug mode (full dump).

(c) January 2013 - W4 S.A.

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