LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyLine

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyLine
All Implemented Interfaces:
LyGetIdInterface, LyGetLabelInterface, LySetColorInterface, LySetFontInterface, LySetHiddenInterface, LySetImageInterface, LySetLabelInterface, LySetSelectedInterface

public class LyLine
extends LyComponent
implements LyGetIdInterface, LyGetLabelInterface, LySetLabelInterface, LySetImageInterface, LySetSelectedInterface, LySetHiddenInterface, LySetFontInterface, LySetColorInterface

The LyLine class is a generated Java implementation that corresponds to the element LINE of the descriptive grammar of the views (views.dtd). <LINE> : Line of a planning This element represents a line of a gantt.

See Also:
See also tag LINE 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
LyLine()
          Default constructor.
 
Method Summary
 void addInterval(LyInterval interval)
          Adds a sub-component interval.
 void addLine(LyLine line)
          Adds a sub-component line.
 LyComponent cloneComponent()
          Method for cloning a component.
 java.lang.String getColor()
          Gets value of color.
 LyComponent getComponent(int i)
          Get sub-component Component of index i.
 int getComponentCount()
          Get sub-component Component count.
 java.lang.String getFont()
          Gets value of font.
 java.lang.String getFontColor()
          Gets value of fontColor.
 java.lang.String getId()
          Gets value of id.
 java.lang.String getImage()
          Gets value of image.
 java.lang.String getLabel()
          Gets value of label.
 java.lang.String getSuperLineColor()
          Gets value of superLineColor.
 java.lang.String getSuperLineLabel()
          Gets value of superLineLabel.
 LyLine getTemplate()
          Gets value of template.
 java.lang.String getTooltip()
          Gets value of tooltip.
 void insertInterval(LyInterval interval, int pos)
          Inserts a sub-component interval at given position.
 void insertLine(LyLine line, int pos)
          Inserts a sub-component line at given position.
 boolean isAllowHiding()
          Checks if value of attribute allowHiding is set.
 boolean isDefaultColor()
          Checks whether the color attribute is valuated to the default value.
 boolean isDefaultFont()
          Checks whether the font attribute is valuated to the default value.
 boolean isDefaultFontColor()
          Checks whether the fontColor attribute is valuated to the default value.
 boolean isDefaultSuperLineColor()
          Checks whether the superLineColor attribute is valuated to the default value.
 boolean isHidden()
          Checks if value of attribute hidden is set.
 boolean isOpen()
          Checks if value of attribute open is set.
 boolean isSelected()
          Checks if value of attribute selected is set.
 boolean isSuperLineHidden()
          Checks if value of attribute superLineHidden is set.
 void removeInterval(LyInterval interval)
          Removes a sub-component interval.
 void removeLine(LyLine line)
          Removes a sub-component line.
 void setAllowHiding(boolean allowHiding)
          Initializes attribute allowHiding to the given value.
 void setColor(java.lang.String color)
          Sets attribute color to the given value.
 void setFont(java.lang.String font)
          Sets attribute font to the given value.
 void setFontColor(java.lang.String fontColor)
          Initializes attribute fontColor to the given value.
 void setHidden(boolean hidden)
          Sets attribute hidden to the given value.
 void setId(java.lang.String id)
          Initializes attribute id to the given value.
 void setImage(java.lang.String image)
          Sets attribute image to the given value.
 void setLabel(java.lang.String label)
          Sets attribute label to the given value.
 void setOpen(boolean open)
          Sets attribute open to the given value.
 void setSelected(boolean selected)
          Sets attribute selected to the given value.
 void setSuperLineColor(java.lang.String superLineColor)
          Sets attribute superLineColor to the given value.
 void setSuperLineHidden(boolean superLineHidden)
          Sets attribute superLineHidden to the given value.
 void setSuperLineLabel(java.lang.String superLineLabel)
          Sets attribute superLineLabel to the given value.
 void setTemplate(LyLine template)
          Initializes attribute template to the given value.
 void setTooltip(java.lang.String tooltip)
          Sets attribute tooltip 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, 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

LyLine

public LyLine()
Default constructor.

Method Detail

cloneComponent

public LyComponent cloneComponent()
Method for cloning a component.

Specified by:
cloneComponent in class LyComponent

getId

public java.lang.String getId()
Gets value of id.

Specified by:
getId in interface LyGetIdInterface
Overrides:
getId in class LyComponent
Returns:
value of id.

getTemplate

public LyLine getTemplate()
Gets value of template.

Returns:
value of template.

getLabel

public java.lang.String getLabel()
Gets value of label.

Specified by:
getLabel in interface LyGetLabelInterface
Returns:
value of label.

getImage

public java.lang.String getImage()
Gets value of image.

Returns:
value of image.

getTooltip

public java.lang.String getTooltip()
Gets value of tooltip.

Returns:
value of tooltip.

isSelected

public boolean isSelected()
Checks if value of attribute selected is set.

Returns:
true if selected is set, false otherwise.

isOpen

public boolean isOpen()
Checks if value of attribute open is set.

Returns:
true if open is set, false otherwise.

isHidden

public boolean isHidden()
Checks if value of attribute hidden is set.

Returns:
true if hidden is set, false otherwise.

getFont

public java.lang.String getFont()
Gets value of font.

Returns:
value of font.

isDefaultFont

public boolean isDefaultFont()
Checks whether the font attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getColor

public java.lang.String getColor()
Gets value of color.

Returns:
value of color.

isDefaultColor

public boolean isDefaultColor()
Checks whether the color attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getFontColor

public java.lang.String getFontColor()
Gets value of fontColor.

Returns:
value of fontColor.

isDefaultFontColor

public boolean isDefaultFontColor()
Checks whether the fontColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getSuperLineColor

public java.lang.String getSuperLineColor()
Gets value of superLineColor.

Returns:
value of superLineColor.

isDefaultSuperLineColor

public boolean isDefaultSuperLineColor()
Checks whether the superLineColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getSuperLineLabel

public java.lang.String getSuperLineLabel()
Gets value of superLineLabel.

Returns:
value of superLineLabel.

isSuperLineHidden

public boolean isSuperLineHidden()
Checks if value of attribute superLineHidden is set.

Returns:
true if superLineHidden is set, false otherwise.

isAllowHiding

public boolean isAllowHiding()
Checks if value of attribute allowHiding is set.

Returns:
true if allowHiding is set, false otherwise.

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.

setId

public void setId(java.lang.String id)
Initializes attribute id to the given value.

Parameters:
id - New value of id.

setTemplate

public void setTemplate(LyLine template)
Initializes attribute template to the given value.

Parameters:
template - New value of template.

setLabel

public void setLabel(java.lang.String label)
Sets attribute label to the given value.

Specified by:
setLabel in interface LySetLabelInterface
Parameters:
label - New value of label.

setImage

public void setImage(java.lang.String image)
Sets attribute image to the given value.

Specified by:
setImage in interface LySetImageInterface
Parameters:
image - New value of image.

setTooltip

public void setTooltip(java.lang.String tooltip)
Sets attribute tooltip to the given value.

Parameters:
tooltip - New value of tooltip.

setSelected

public void setSelected(boolean selected)
Sets attribute selected to the given value.

Specified by:
setSelected in interface LySetSelectedInterface
Parameters:
selected - Boolean indicating if attribute selected is set or unset.

setOpen

public void setOpen(boolean open)
Sets attribute open to the given value.

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

setHidden

public void setHidden(boolean hidden)
Sets attribute hidden to the given value.

Specified by:
setHidden in interface LySetHiddenInterface
Parameters:
hidden - Boolean indicating if attribute hidden is set or unset.

setFont

public void setFont(java.lang.String font)
Sets attribute font to the given value.

Specified by:
setFont in interface LySetFontInterface
Parameters:
font - New value of font.

setColor

public void setColor(java.lang.String color)
Sets attribute color to the given value.

Specified by:
setColor in interface LySetColorInterface
Parameters:
color - New value of color.

setFontColor

public void setFontColor(java.lang.String fontColor)
Initializes attribute fontColor to the given value.

Parameters:
fontColor - New value of fontColor.

setSuperLineColor

public void setSuperLineColor(java.lang.String superLineColor)
Sets attribute superLineColor to the given value.

Parameters:
superLineColor - New value of superLineColor.

setSuperLineLabel

public void setSuperLineLabel(java.lang.String superLineLabel)
Sets attribute superLineLabel to the given value.

Parameters:
superLineLabel - New value of superLineLabel.

setSuperLineHidden

public void setSuperLineHidden(boolean superLineHidden)
Sets attribute superLineHidden to the given value.

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

setAllowHiding

public void setAllowHiding(boolean allowHiding)
Initializes attribute allowHiding to the given value.

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

addInterval

public void addInterval(LyInterval interval)
Adds a sub-component interval.

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

insertInterval

public void insertInterval(LyInterval interval,
                           int pos)
Inserts a sub-component interval at given position.

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

removeInterval

public void removeInterval(LyInterval interval)
Removes a sub-component interval.

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

addLine

public void addLine(LyLine line)
Adds a sub-component line.

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

insertLine

public void insertLine(LyLine line,
                       int pos)
Inserts a sub-component line at given position.

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

removeLine

public void removeLine(LyLine line)
Removes a sub-component line.

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

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