LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyMapContent

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

public class LyMapContent
extends LyComponent

The LyMapContent class is a generated Java implementation that corresponds to the element MAP_CONTENT of the descriptive grammar of the views (views.dtd). <MAP_CONTENT> : Map content A map content allows grouping together in a same group various elements that can be placed on a map (nodes, links, images, regions).

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

Nested Class Summary
 
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
LyMapContent()
          Default constructor.
 
Method Summary
 void addMapLink(LyMapLink mapLink)
          Adds a sub-component mapLink.
 void addMapNode(LyMapNode mapNode)
          Adds a sub-component mapNode.
 void addMapRegion(LyMapRegion mapRegion)
          Adds a sub-component mapRegion.
 LyComponent cloneComponent()
          Method for cloning a component.
 LyComponent getComponent(int i)
          Get sub-component Component of index i.
 int getComponentCount()
          Get sub-component Component count.
 void insertMapLink(LyMapLink mapLink, int pos)
          Inserts a sub-component mapLink at given position.
 void insertMapNode(LyMapNode mapNode, int pos)
          Inserts a sub-component mapNode at given position.
 void insertMapRegion(LyMapRegion mapRegion, int pos)
          Inserts a sub-component mapRegion at given position.
 void removeMapLink(LyMapLink mapLink)
          Removes a sub-component mapLink.
 void removeMapNode(LyMapNode mapNode)
          Removes a sub-component mapNode.
 void removeMapRegion(LyMapRegion mapRegion)
          Removes a sub-component mapRegion.
 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

LyMapContent

public LyMapContent()
Default constructor.

Method Detail

cloneComponent

public LyComponent cloneComponent()
Method for cloning a component.

Specified by:
cloneComponent in class LyComponent

getComponent

public LyComponent getComponent(int i)
Get sub-component Component of index i.

Parameters:
i - the index of the Component to get.
Returns:
sub-component Component of index i.

getComponentCount

public int getComponentCount()
Get sub-component Component count.

Returns:
sub-component Component count.

addMapNode

public void addMapNode(LyMapNode mapNode)
Adds a sub-component mapNode.

Parameters:
mapNode - The mapNode to add to components list.

insertMapNode

public void insertMapNode(LyMapNode mapNode,
                          int pos)
Inserts a sub-component mapNode at given position.

Parameters:
mapNode - The mapNode to add to components list.
pos - Position where the sub-component is inserted.

removeMapNode

public void removeMapNode(LyMapNode mapNode)
Removes a sub-component mapNode.

Parameters:
mapNode - The mapNode to remove to components list.
Throws:
java.lang.IllegalStateException - if components list is empty.
java.lang.IllegalArgumentException - if components list doesn't contain mapNode.

addMapLink

public void addMapLink(LyMapLink mapLink)
Adds a sub-component mapLink.

Parameters:
mapLink - The mapLink to add to components list.

insertMapLink

public void insertMapLink(LyMapLink mapLink,
                          int pos)
Inserts a sub-component mapLink at given position.

Parameters:
mapLink - The mapLink to add to components list.
pos - Position where the sub-component is inserted.

removeMapLink

public void removeMapLink(LyMapLink mapLink)
Removes a sub-component mapLink.

Parameters:
mapLink - The mapLink to remove to components list.
Throws:
java.lang.IllegalStateException - if components list is empty.
java.lang.IllegalArgumentException - if components list doesn't contain mapLink.

addMapRegion

public void addMapRegion(LyMapRegion mapRegion)
Adds a sub-component mapRegion.

Parameters:
mapRegion - The mapRegion to add to components list.

insertMapRegion

public void insertMapRegion(LyMapRegion mapRegion,
                            int pos)
Inserts a sub-component mapRegion at given position.

Parameters:
mapRegion - The mapRegion to add to components list.
pos - Position where the sub-component is inserted.

removeMapRegion

public void removeMapRegion(LyMapRegion mapRegion)
Removes a sub-component mapRegion.

Parameters:
mapRegion - The mapRegion to remove to components list.
Throws:
java.lang.IllegalStateException - if components list is empty.
java.lang.IllegalArgumentException - if components list doesn't contain mapRegion.

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