LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.info
Class LyFieldConstraint

java.lang.Object
  extended by leon.info.LyTag
      extended by leon.info.LyFieldConstraint
All Implemented Interfaces:
java.lang.Cloneable

public class LyFieldConstraint
extends LyTag

The LyFieldConstraint class implements constraint associated to a field.


Nested Class Summary
static class LyFieldConstraint.Fill
          Fill values.
static class LyFieldConstraint.HAlign
          Horizontal alignment values.
static class LyFieldConstraint.Type
          Type values
static class LyFieldConstraint.VAlign
          Vertical alignment values.
 
Nested classes/interfaces inherited from class leon.info.LyTag
LyTag.Model
 
Field Summary
static java.lang.String __version
           
static int DEFAULT_VALUE
          Default value for all the attributes of the constraint.
static int REMAINDER
          Remainder value for colspan and rowspan attributes.
 
Fields inherited from class leon.info.LyTag
__VERSION
 
Constructor Summary
LyFieldConstraint(LyFieldConstraint.Type type, int colSpan, int rowSpan, boolean remainder, int colWeight, int rowWeight, LyFieldConstraint.Fill fill, LyFieldConstraint.HAlign hAlign, LyFieldConstraint.VAlign vAlign)
          Constructor with all required attributes.
 
Method Summary
 boolean equals(LyFieldConstraint constraint)
          Check if this field constraint is equal to the given one.
 boolean equals(java.lang.Object constraint)
          Check if this field constraint is equal to the given one.
 LyAction getAction()
          Gets action where the constraint is used.
 int getColSpan()
          Gets value of colSpan.
 int getColWeight()
          Gets value of colWeight.
 LyFieldConstraint.Fill getFill()
          Gets value of fill.
 LyFieldConstraint.HAlign getHAlign()
          Gets value of hAlign.
 int getRowSpan()
          Gets value of rowSpan.
 int getRowWeight()
          Gets value of rowWeight.
 LyFieldConstraint.Type getType()
          Gets type.
 LyFieldConstraint.VAlign getVAlign()
          Gets value of vAlign.
 boolean isRemainder()
          Gets value of remainder.
 
Methods inherited from class leon.info.LyTag
clone, getApplication, getCommentsEnd, getCommentsStart, getEnvironment, getId, getModelType, getParent, getRootProject, hasAncestor, isExtern, setCommentsEnd, setCommentsStart, wasCloned
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__version

public static final java.lang.String __version
See Also:
Constant Field Values

DEFAULT_VALUE

public static final int DEFAULT_VALUE
Default value for all the attributes of the constraint.

See Also:
Constant Field Values

REMAINDER

public static final int REMAINDER
Remainder value for colspan and rowspan attributes.

See Also:
Constant Field Values
Constructor Detail

LyFieldConstraint

public LyFieldConstraint(LyFieldConstraint.Type type,
                         int colSpan,
                         int rowSpan,
                         boolean remainder,
                         int colWeight,
                         int rowWeight,
                         LyFieldConstraint.Fill fill,
                         LyFieldConstraint.HAlign hAlign,
                         LyFieldConstraint.VAlign vAlign)
Constructor with all required attributes.

Method Detail

getType

public LyFieldConstraint.Type getType()
Gets type.

Returns:
type of the constraint.

getAction

public LyAction getAction()
Gets action where the constraint is used.

Returns:
Action where the constraint is used (may be null when used in all forms, excepted when explicitly specified for a given action).

getColSpan

public int getColSpan()
Gets value of colSpan.

Returns:
value of colSpan.

getRowSpan

public int getRowSpan()
Gets value of rowSpan.

Returns:
value of rowSpan.

getColWeight

public int getColWeight()
Gets value of colWeight. Weight (width) of the column that the component occupies

Returns:
value of colWeight.

getRowWeight

public int getRowWeight()
Gets value of rowWeight. Weight (height) of the row that the component occupies

Returns:
value of rowWeight.

isRemainder

public boolean isRemainder()
Gets value of remainder.

Returns:
true if remainder is set

getFill

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

Returns:
value of fill.

getHAlign

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

Returns:
value of hAlign.

getVAlign

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

Returns:
value of vAlign.

equals

public boolean equals(java.lang.Object constraint)
Check if this field constraint is equal to the given one.

Overrides:
equals in class java.lang.Object

equals

public boolean equals(LyFieldConstraint constraint)
Check if this field constraint is equal to the given one.


(c) January 2013 - W4 S.A.

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