LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyLayout

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyLayout

public class LyLayout
extends LyComponent

The LyLayout class is a generated Java implementation that corresponds to the element LAYOUT of the descriptive grammar of the views (views.dtd). <LAYOUT> : GEOGRAPHIC Places the nodes, the regions and the images according to their coordinates (x, y, z attributes). A layout manager allows placing the nodes of a map according to a predefined layout. In most cases, the coordinates of the nodes are not used.

See Also:
See also tag LAYOUT of grammar leon_views.dtd.

Nested Class Summary
static class LyLayout.Fill
          Possible values for attribute 'fill'.
static class LyLayout.HAlign
          Possible values for attribute 'hAlign'.
static class LyLayout.Style
          Possible values for attribute 'style'.
static class LyLayout.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
LyLayout()
          Default constructor.
 
Method Summary
 LyComponent cloneComponent()
          Method for cloning a component.
 java.lang.String getBorderSizes()
          Gets value of borderSizes.
 java.lang.String getCenter()
          Gets value of center.
 int getDeltaBorder()
          Gets value of deltaBorder.
 int getDeltaNode()
          Gets value of deltaNode.
 LyLayout.Fill getFill()
          Gets value of fill.
static LyLayout.Fill getFill(java.lang.String token)
          Utility method to get fill value from a string.
 LyLayout.HAlign getHAlign()
          Gets value of hAlign.
static LyLayout.HAlign getHAlign(java.lang.String token)
          Utility method to get hAlign value from a string.
 java.lang.String getJavaName()
          Gets value of javaName.
 java.lang.String getLabelStyles()
          Gets value of labelStyles.
 java.lang.String getSelectBorderSize()
          Gets value of selectBorderSize.
 LyLayout.Style getStyle()
          Gets value of style.
static LyLayout.Style getStyle(java.lang.String token)
          Utility method to get style value from a string.
 LyLayout.VAlign getVAlign()
          Gets value of vAlign.
static LyLayout.VAlign getVAlign(java.lang.String token)
          Utility method to get vAlign value from a string.
 void setBorderSizes(java.lang.String borderSizes)
          Sets attribute borderSizes to the given value.
 void setCenter(java.lang.String center)
          Initializes attribute center to the given value.
 void setDeltaBorder(int deltaBorder)
          Initializes attribute deltaBorder to the given value.
 void setDeltaNode(int deltaNode)
          Initializes attribute deltaNode to the given value.
 void setFill(LyLayout.Fill fill)
          Initializes attribute fill to the given value.
 void setHAlign(LyLayout.HAlign hAlign)
          Initializes attribute hAlign to the given value.
 void setJavaName(java.lang.String javaName)
          Initializes attribute javaName to the given value.
 void setLabelStyles(java.lang.String labelStyles)
          Sets attribute labelStyles to the given value.
 void setSelectBorderSize(java.lang.String selectBorderSize)
          Initializes attribute selectBorderSize to the given value.
 void setStyle(LyLayout.Style style)
          Initializes attribute style to the given value.
 void setVAlign(LyLayout.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

LyLayout

public LyLayout()
Default constructor.

Method Detail

getStyle

public static final LyLayout.Style getStyle(java.lang.String token)
Utility method to get style value from a string.

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

getHAlign

public static final LyLayout.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 LyLayout.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

getFill

public static final LyLayout.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

cloneComponent

public LyComponent cloneComponent()
Method for cloning a component.

Specified by:
cloneComponent in class LyComponent

getStyle

public LyLayout.Style getStyle()
Gets value of style.

Returns:
value of style.

getCenter

public java.lang.String getCenter()
Gets value of center.

Returns:
value of center.

getDeltaNode

public int getDeltaNode()
Gets value of deltaNode.

Returns:
value of deltaNode.

getDeltaBorder

public int getDeltaBorder()
Gets value of deltaBorder.

Returns:
value of deltaBorder.

getSelectBorderSize

public java.lang.String getSelectBorderSize()
Gets value of selectBorderSize.

Returns:
value of selectBorderSize.

getBorderSizes

public java.lang.String getBorderSizes()
Gets value of borderSizes.

Returns:
value of borderSizes.

getLabelStyles

public java.lang.String getLabelStyles()
Gets value of labelStyles.

Returns:
value of labelStyles.

getHAlign

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

Returns:
value of hAlign.

getVAlign

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

Returns:
value of vAlign.

getFill

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

Returns:
value of fill.

getJavaName

public java.lang.String getJavaName()
Gets value of javaName.

Returns:
value of javaName.

setStyle

public void setStyle(LyLayout.Style style)
Initializes attribute style to the given value.

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

setCenter

public void setCenter(java.lang.String center)
Initializes attribute center to the given value.

Parameters:
center - New value of center.

setDeltaNode

public void setDeltaNode(int deltaNode)
Initializes attribute deltaNode to the given value.

Parameters:
deltaNode - New value of deltaNode.

setDeltaBorder

public void setDeltaBorder(int deltaBorder)
Initializes attribute deltaBorder to the given value.

Parameters:
deltaBorder - New value of deltaBorder.

setSelectBorderSize

public void setSelectBorderSize(java.lang.String selectBorderSize)
Initializes attribute selectBorderSize to the given value.

Parameters:
selectBorderSize - New value of selectBorderSize.

setBorderSizes

public void setBorderSizes(java.lang.String borderSizes)
Sets attribute borderSizes to the given value.

Parameters:
borderSizes - New value of borderSizes.

setLabelStyles

public void setLabelStyles(java.lang.String labelStyles)
Sets attribute labelStyles to the given value.

Parameters:
labelStyles - New value of labelStyles.

setHAlign

public void setHAlign(LyLayout.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(LyLayout.VAlign vAlign)
Initializes attribute vAlign to the given value.

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

setFill

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

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

setJavaName

public void setJavaName(java.lang.String javaName)
Initializes attribute javaName to the given value.

Parameters:
javaName - New value of javaName.

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