LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.jquery.component.gantt.line
Class LyJQLine

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.web.LyWebObject
          extended by leon.view.web.jquery.component.LyJQInternalView
              extended by leon.view.web.jquery.component.gantt.line.LyJQLine
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalLine, LyViewComponent, LyFreeInterface, LySetColorInterface, LySetFontInterface, LySetHiddenInterface, LySetImageInterface, LySetLabelInterface, LySetSelectedInterface, LyWebComponent

public class LyJQLine
extends LyJQInternalView
implements LyGraphicalLine

LyJQLine


Field Summary
 
Fields inherited from class leon.view.web.LyWebObject
__VERSION, WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID
 
Fields inherited from interface leon.view.graphic.LyGraphicalLine
__VERSION
 
Constructor Summary
LyJQLine(LyLine lyLine)
          LyJQLine constructor
 
Method Summary
 void addComponent(LyComponent components, int pos)
          Inserts a sub-component components at given position.
 int computeHeight()
          Computes the height of the line.
 void free()
          Free resources allocated to this component.
 java.lang.String getFmkId()
          get the fmk id
 java.util.Date getLimitDate(boolean max)
          Gets the limit date for this line (minimum or maximum).
 java.util.List<LyLine> getLines()
          get lines
 LyGantt getParentGantt()
          Gets the parent Gantt component of the line.
 java.lang.String getReloadScript()
          TODO slachiheb Add a comment
 float getXEndPosition()
           
 float getXStartPosition()
           
 void refresh()
          Refresh frame containing this web object.
 void removeComponent(LyComponent components)
          Removes a sub-component components.
 void setColor(java.lang.String color)
          TODO slachiheb Add a comment
 void setFont(java.lang.String font)
          Updates attribute font to the given value.
 void setHidden(boolean hidden)
          TODO slachiheb Add a comment
 void setImage(java.lang.String image)
          Updates attribute image to the given value.
 void setLabel(java.lang.String label)
          Updates attribute label to the given value.
 void setOpen(boolean open)
          Updates attribute open to the given value.
 void setSelected(boolean selected)
          Updates attribute selected to the given value.
 void setSuperLineColor(java.lang.String superLineColor)
          Updates attribute superLineColor to the given value.
 void setSuperLineHidden(boolean superLineHidden)
          Updates attribute superLineHidden to the given value.
 void setSuperLineLabel(java.lang.String superLineLabel)
          Updates attribute superLineLabel to the given value.
 void setTooltip(java.lang.String tooltip)
          Updates attribute tooltip to the given value.
 void writeHtml(LyWebPageWriter pw)
          Write HTML description corresponding to this component.
 
Methods inherited from class leon.view.web.jquery.component.LyJQInternalView
getConvertedHTML, getEncoding, getId, getJavascriptStrId, getJSWithoutTranslateString, getTreatedInternalId, isIE, setProperty
 
Methods inherited from class leon.view.web.LyWebObject
addFileScript, decodeUrl, displayUpPage, encodeUrl, encodeUrlXhtml, expandUrl, getDisabledImageUrl, getFontSize, getFontString, getFontString, getFontString, getHexColor, getHexColor, getHtmlEntitiesString, getHtmlString, getImageSize, getImageSize, getImageUrl, getJavascriptString, getLastFrameName, getLyFont, getMessage, getRootUrl, getRootURL, getScrollHeightForSplitter, getUrl, getWebViewManager, replaceUrl, replaceUrl, setUpdating, updateRefreshInfo, writeJson
 
Methods inherited from class leon.view.graphic.LyGraphicalObject
expand, getBounds, getChildrenBounds, getController, getEnv, getEnvironment, getIdCode, getIntResource, getMessage, getResource, getString, getString, getString, getViewComponent, getViewManager, isFreed, isFreeing, isImageAnimated, processDemand, processDemand, testResource, translate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface leon.view.graphic.LyGraphicalComponent
getViewComponent
 

Constructor Detail

LyJQLine

public LyJQLine(LyLine lyLine)
LyJQLine constructor

Parameters:
viewComponent -
Method Detail

computeHeight

public int computeHeight()
Computes the height of the line.

Returns:
the line height

getParentGantt

public LyGantt getParentGantt()
Gets the parent Gantt component of the line.

Returns:
the parent Gantt component

getLines

public java.util.List<LyLine> getLines()
get lines

Returns:
lines list

free

public void free()
Description copied from class: LyGraphicalObject
Free resources allocated to this component.

Specified by:
free in interface LyGraphicalComponent
Specified by:
free in interface LyFreeInterface
Overrides:
free in class LyWebObject
See Also:
LyGraphicalComponent.free()

setLabel

public void setLabel(java.lang.String label)
Description copied from interface: LyGraphicalLine
Updates attribute label to the given value.

Specified by:
setLabel in interface LyGraphicalLine
Specified by:
setLabel in interface LySetLabelInterface
Parameters:
label - New value of label.
See Also:
LyGraphicalLine.setLabel(java.lang.String)

setImage

public void setImage(java.lang.String image)
Description copied from interface: LyGraphicalLine
Updates attribute image to the given value.

Specified by:
setImage in interface LyGraphicalLine
Specified by:
setImage in interface LySetImageInterface
Parameters:
image - New value of image.
See Also:
LyGraphicalLine.setImage(java.lang.String)

setTooltip

public void setTooltip(java.lang.String tooltip)
Description copied from interface: LyGraphicalLine
Updates attribute tooltip to the given value.

Specified by:
setTooltip in interface LyGraphicalLine
Parameters:
tooltip - New value of tooltip.
See Also:
LyGraphicalLine.setTooltip(java.lang.String)

setSelected

public void setSelected(boolean selected)
Description copied from interface: LyGraphicalLine
Updates attribute selected to the given value.

Specified by:
setSelected in interface LyGraphicalLine
Specified by:
setSelected in interface LySetSelectedInterface
Parameters:
selected - Boolean indicating if attribute selected is set or unset.
See Also:
LyGraphicalLine.setSelected(boolean)

setOpen

public void setOpen(boolean open)
Description copied from interface: LyGraphicalLine
Updates attribute open to the given value.

Specified by:
setOpen in interface LyGraphicalLine
Parameters:
open - Boolean indicating if attribute open is set or unset.
See Also:
LyGraphicalLine.setOpen(boolean)

getFmkId

public java.lang.String getFmkId()
get the fmk id


setHidden

public void setHidden(boolean hidden)
TODO slachiheb Add a comment

Specified by:
setHidden in interface LyGraphicalLine
Specified by:
setHidden in interface LySetHiddenInterface
Parameters:
hidden - Boolean indicating if attribute hidden is set or unset.
See Also:
LyGraphicalLine.setHidden(boolean)

setFont

public void setFont(java.lang.String font)
Description copied from interface: LyGraphicalLine
Updates attribute font to the given value.

Specified by:
setFont in interface LyGraphicalLine
Specified by:
setFont in interface LySetFontInterface
Parameters:
font - New value of font.
See Also:
LyGraphicalLine.setFont(java.lang.String)

setColor

public void setColor(java.lang.String color)
TODO slachiheb Add a comment

Specified by:
setColor in interface LyGraphicalLine
Specified by:
setColor in interface LySetColorInterface
Parameters:
color - New value of color.
See Also:
LyGraphicalLine.setColor(java.lang.String)

setSuperLineColor

public void setSuperLineColor(java.lang.String superLineColor)
Description copied from interface: LyGraphicalLine
Updates attribute superLineColor to the given value.

Specified by:
setSuperLineColor in interface LyGraphicalLine
Parameters:
superLineColor - New value of superLineColor.
See Also:
LyGraphicalLine.setSuperLineColor(java.lang.String)

setSuperLineLabel

public void setSuperLineLabel(java.lang.String superLineLabel)
Description copied from interface: LyGraphicalLine
Updates attribute superLineLabel to the given value.

Specified by:
setSuperLineLabel in interface LyGraphicalLine
Parameters:
superLineLabel - New value of superLineLabel.
See Also:
LyGraphicalLine.setSuperLineLabel(java.lang.String)

setSuperLineHidden

public void setSuperLineHidden(boolean superLineHidden)
Description copied from interface: LyGraphicalLine
Updates attribute superLineHidden to the given value.

Specified by:
setSuperLineHidden in interface LyGraphicalLine
Parameters:
superLineHidden - Boolean indicating if attribute superLineHidden is set or unset.
See Also:
LyGraphicalLine.setSuperLineHidden(boolean)

addComponent

public void addComponent(LyComponent components,
                         int pos)
Description copied from interface: LyGraphicalLine
Inserts a sub-component components at given position.

Specified by:
addComponent in interface LyGraphicalLine
Parameters:
components - The components to add to components list.
pos - Position where the sub-component is inserted.
See Also:
LyGraphicalLine.addComponent(leon.view.LyComponent, int)

removeComponent

public void removeComponent(LyComponent components)
Description copied from interface: LyGraphicalLine
Removes a sub-component components.

Specified by:
removeComponent in interface LyGraphicalLine
Parameters:
components - The components to remove to components list.
See Also:
LyGraphicalLine.removeComponent(leon.view.LyComponent)

writeHtml

public void writeHtml(LyWebPageWriter pw)
Description copied from interface: LyWebComponent
Write HTML description corresponding to this component.

Specified by:
writeHtml in interface LyWebComponent
Parameters:
pw - the page writer
See Also:
LyWebComponent.writeHtml(leon.view.web.LyWebPageWriter)

getReloadScript

public java.lang.String getReloadScript()
TODO slachiheb Add a comment

Specified by:
getReloadScript in class LyJQInternalView
Returns:
reload component script
See Also:
LyJQInternalView.getReloadScript()

getLimitDate

public java.util.Date getLimitDate(boolean max)
Gets the limit date for this line (minimum or maximum). Browse all line sub-components and retrieve their minimum (or maximum) dates.

Parameters:
max - indicate if maximum or minimum date must be returned and if end date is null, we consider begin date instead.
Returns:
the maximum date if max is true and if the end date is not null, the minimum date otherwise

refresh

public void refresh()
Refresh frame containing this web object.

Overrides:
refresh in class LyWebObject

getXStartPosition

public float getXStartPosition()

getXEndPosition

public float getXEndPosition()

(c) January 2013 - W4 S.A.

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