|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.view.LyComponent
leon.view.LyConstraintBase
public abstract class LyConstraintBase
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).
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 java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyConstraintBase()
Method Detail |
---|
public static final LyConstraintBase.Fill getFill(java.lang.String token)
token
- Token string
public static final LyConstraintBase.HAlign getHAlign(java.lang.String token)
token
- Token string
public static final LyConstraintBase.VAlign getVAlign(java.lang.String token)
token
- Token string
public LyComponent cloneComponent()
cloneComponent
in class LyComponent
public int getColSpan()
public int getRowSpan()
public boolean isRemainder()
public LyConstraintBase.Fill getFill()
public LyConstraintBase.HAlign getHAlign()
public LyConstraintBase.VAlign getVAlign()
public int getCellPadding()
public int getLeftPadding()
public int getRightPadding()
public int getTopPadding()
public int getBottomPadding()
public int getCellSpacing()
public double getColWeight()
public double getRowWeight()
public int getNCols()
public int getNRows()
public void setColSpan(int colSpan)
colSpan
- New value of colSpan.public void setRowSpan(int rowSpan)
rowSpan
- New value of rowSpan.public void setRemainder(boolean remainder)
remainder
- Boolean indicating if attribute remainder is set or unset.public void setFill(LyConstraintBase.Fill fill)
fill
- New value of fill.
java.lang.IllegalArgumentException
- if fill parameter is null.public void setHAlign(LyConstraintBase.HAlign hAlign)
hAlign
- New value of hAlign.
java.lang.IllegalArgumentException
- if hAlign parameter is null.public void setVAlign(LyConstraintBase.VAlign vAlign)
vAlign
- New value of vAlign.
java.lang.IllegalArgumentException
- if vAlign parameter is null.public void setCellPadding(int cellPadding)
cellPadding
- New value of cellPadding.public void setLeftPadding(int leftPadding)
leftPadding
- New value of leftPadding.public void setRightPadding(int rightPadding)
rightPadding
- New value of rightPadding.public void setTopPadding(int topPadding)
topPadding
- New value of topPadding.public void setBottomPadding(int bottomPadding)
bottomPadding
- New value of bottomPadding.public void setCellSpacing(int cellSpacing)
cellSpacing
- New value of cellSpacing.public void setColWeight(double colWeight)
colWeight
- New value of colWeight.public void setRowWeight(double rowWeight)
rowWeight
- New value of rowWeight.public void setNCols(int nCols)
nCols
- New value of nCols.public void setNRows(int nRows)
nRows
- New value of nRows.public void writeXml(java.io.PrintWriter pw, boolean debug)
writeXml
in class LyComponent
pw
- the printWriter on which the XML is written.debug
- true if debug mode (full dump).
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |