LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyHRefs

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyFieldItem
          extended by leon.view.LyHRefs
All Implemented Interfaces:
LyGetIdInterface, LyUpdateViewContentInterface

public class LyHRefs
extends LyFieldItem
implements LyGetIdInterface

The LyHRefs class is a generated Java implementation that corresponds to the element HREFS of the descriptive grammar of the views (views.dtd). <HREFS> : List of Hyperlinks An input field of Hyperlinks type allows displaying a graphical component containing a set of hyperlinks. Such a component is a simple list of hyperlinks such as described below. It does not contain any attribute.

See Also:
See also tag HREFS 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
LyHRefs()
          Default constructor.
 
Method Summary
 void addHRef(LyHRef hRef)
          Adds a sub-component hRef.
 LyComponent cloneComponent()
          Method for cloning a component.
 java.lang.String getBean()
          Gets value of bean.
 java.lang.String getColor()
          Gets value of color.
 java.lang.String getDisabledFontColor()
          Gets value of disabledFontColor.
 java.lang.String getFont()
          Gets value of font.
 java.lang.String getFontColor()
          Gets value of fontColor.
 java.lang.String getHighlightColor()
          Gets value of highlightColor.
 LyHRef getHRef(int i)
          Get sub-component HRef of index i.
 int getHRefCount()
          Get sub-component HRef count.
 java.lang.String getId()
          Gets value of id.
 int getNCols()
          Gets value of nCols.
 int getNRows()
          Gets value of nRows.
 LyHRefs getTemplate()
          Gets value of template.
 java.lang.String getVisitedFontColor()
          Gets value of visitedFontColor.
 void insertHRef(LyHRef hRef, int pos)
          Inserts a sub-component hRef at given position.
 boolean isBorder()
          Checks if value of attribute border is set.
 boolean isDefaultColor()
          Checks whether the color attribute is valuated to the default value.
 boolean isDefaultDisabledFontColor()
          Checks whether the disabledFontColor 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 isDefaultHighlightColor()
          Checks whether the highlightColor attribute is valuated to the default value.
 boolean isDefaultVisitedFontColor()
          Checks whether the visitedFontColor attribute is valuated to the default value.
 void removeHRef(LyHRef hRef)
          Removes a sub-component hRef.
 void setBean(java.lang.String bean)
          Initializes attribute bean to the given value.
 void setBorder(boolean border)
          Initializes attribute border to the given value.
 void setColor(java.lang.String color)
          Initializes attribute color to the given value.
 void setDisabledFontColor(java.lang.String disabledFontColor)
          Initializes attribute disabledFontColor to the given value.
 void setFont(java.lang.String font)
          Initializes attribute font to the given value.
 void setFontColor(java.lang.String fontColor)
          Initializes attribute fontColor to the given value.
 void setHighlightColor(java.lang.String highlightColor)
          Initializes attribute highlightColor to the given value.
 void setId(java.lang.String id)
          Initializes attribute id to the given value.
 void setNCols(int nCols)
          Initializes attribute nCols to the given value.
 void setNRows(int nRows)
          Initializes attribute nRows to the given value.
 void setTemplate(LyHRefs template)
          Initializes attribute template to the given value.
 void setVisitedFontColor(java.lang.String visitedFontColor)
          Initializes attribute visitedFontColor 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.LyFieldItem
addBeanData, buildBean, free, getBeanComponent, getBeanData, getBeanDatas, getChild, getChildCount, getErrorMessage, getFieldValue, getValue, setBeanComponent, setBeanDatas, setFieldValue, setLabel, updateViewContent, validateInput
 
Methods inherited from class leon.view.LyComponent
addComponent, addData, addEventFunction, clearChildrenBounds, freeze, getBounds, 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

LyHRefs

public LyHRefs()
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 LyHRefs getTemplate()
Gets value of template.

Returns:
value of template.

getBean

public java.lang.String getBean()
Gets value of bean.

Overrides:
getBean in class LyFieldItem
Returns:
value of bean.

isBorder

public boolean isBorder()
Checks if value of attribute border is set.

Returns:
true if border is set, false otherwise.

getNCols

public int getNCols()
Gets value of nCols.

Returns:
value of nCols.

getNRows

public int getNRows()
Gets value of nRows.

Returns:
value of nRows.

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.

getDisabledFontColor

public java.lang.String getDisabledFontColor()
Gets value of disabledFontColor.

Returns:
value of disabledFontColor.

isDefaultDisabledFontColor

public boolean isDefaultDisabledFontColor()
Checks whether the disabledFontColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getVisitedFontColor

public java.lang.String getVisitedFontColor()
Gets value of visitedFontColor.

Returns:
value of visitedFontColor.

isDefaultVisitedFontColor

public boolean isDefaultVisitedFontColor()
Checks whether the visitedFontColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getHighlightColor

public java.lang.String getHighlightColor()
Gets value of highlightColor.

Returns:
value of highlightColor.

isDefaultHighlightColor

public boolean isDefaultHighlightColor()
Checks whether the highlightColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getHRef

public LyHRef getHRef(int i)
Get sub-component HRef of index i.

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

getHRefCount

public int getHRefCount()
Get sub-component HRef count.

Returns:
sub-component HRef 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(LyHRefs template)
Initializes attribute template to the given value.

Parameters:
template - New value of template.

setBean

public void setBean(java.lang.String bean)
Initializes attribute bean to the given value.

Overrides:
setBean in class LyFieldItem
Parameters:
bean - New value of bean.

setBorder

public void setBorder(boolean border)
Initializes attribute border to the given value.

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

setNCols

public void setNCols(int nCols)
Initializes attribute nCols to the given value.

Parameters:
nCols - New value of nCols.

setNRows

public void setNRows(int nRows)
Initializes attribute nRows to the given value.

Parameters:
nRows - New value of nRows.

setFont

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

Parameters:
font - New value of font.

setColor

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

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.

setDisabledFontColor

public void setDisabledFontColor(java.lang.String disabledFontColor)
Initializes attribute disabledFontColor to the given value.

Parameters:
disabledFontColor - New value of disabledFontColor.

setVisitedFontColor

public void setVisitedFontColor(java.lang.String visitedFontColor)
Initializes attribute visitedFontColor to the given value.

Parameters:
visitedFontColor - New value of visitedFontColor.

setHighlightColor

public void setHighlightColor(java.lang.String highlightColor)
Initializes attribute highlightColor to the given value.

Parameters:
highlightColor - New value of highlightColor.

addHRef

public void addHRef(LyHRef hRef)
Adds a sub-component hRef.

Parameters:
hRef - The hRef to add to hRefs list.

insertHRef

public void insertHRef(LyHRef hRef,
                       int pos)
Inserts a sub-component hRef at given position.

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

removeHRef

public void removeHRef(LyHRef hRef)
Removes a sub-component hRef.

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

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