LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyDateBase

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyFieldItem
          extended by leon.view.LyDateBase
All Implemented Interfaces:
LyGetIdInterface, LyGetLabelInterface, LySetLabelInterface, LyUpdateViewContentInterface
Direct Known Subclasses:
LyDate

public abstract class LyDateBase
extends LyFieldItem
implements LyGetIdInterface, LyGetLabelInterface, LySetLabelInterface

The LyDateBase class is a generated Java implementation that corresponds to the element DATE of the descriptive grammar of the views (views.dtd). <DATE> : Input Field of Date Type An input field of Date type allows displaying a graphical component allowing to input or to consult date and/or hour. It does not comprise any element. It is possible to specify the type of the date as well as the display format.

See Also:
LyFieldItem, See also tag DATE of grammar leon_views.dtd.

Nested Class Summary
static class LyDateBase.Type
          Possible values for attribute 'type'.
 
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
LyDateBase()
          Default constructor.
 
Method Summary
 LyComponent cloneComponent()
          Method for cloning a component.
 java.lang.String getArrowDown()
          Gets value of arrowDown.
 java.lang.String getArrowDownBig()
          Gets value of arrowDownBig.
 java.lang.String getArrowUp()
          Gets value of arrowUp.
 java.lang.String getBean()
          Gets value of bean.
 java.lang.String getColor()
          Gets value of color.
 java.lang.String getDisabledColor()
          Gets value of disabledColor.
 java.lang.String getFont()
          Gets value of font.
 java.lang.String getFontColor()
          Gets value of fontColor.
 java.lang.String getFormat()
          Gets value of format.
 java.lang.String getId()
          Gets value of id.
 java.lang.String getLabel()
          Gets value of label.
 int getNCols()
          Gets value of nCols.
 LyDate getTemplate()
          Gets value of template.
 LyDateBase.Type getType()
          Gets value of type.
static LyDateBase.Type getType(java.lang.String token)
          Utility method to get type value from a string.
 boolean isArrows()
          Checks if value of attribute arrows is set.
 boolean isDefaultArrowDown()
          Checks whether the arrowDown attribute is valuated to the default value.
 boolean isDefaultArrowDownBig()
          Checks whether the arrowDownBig attribute is valuated to the default value.
 boolean isDefaultArrowUp()
          Checks whether the arrowUp attribute is valuated to the default value.
 boolean isDefaultColor()
          Checks whether the color attribute is valuated to the default value.
 boolean isDefaultDisabledColor()
          Checks whether the disabledColor 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.
 void setArrowDown(java.lang.String arrowDown)
          Initializes attribute arrowDown to the given value.
 void setArrowDownBig(java.lang.String arrowDownBig)
          Initializes attribute arrowDownBig to the given value.
 void setArrows(boolean arrows)
          Initializes attribute arrows to the given value.
 void setArrowUp(java.lang.String arrowUp)
          Initializes attribute arrowUp to the given value.
 void setBean(java.lang.String bean)
          Initializes attribute bean to the given value.
 void setColor(java.lang.String color)
          Initializes attribute color to the given value.
 void setDisabledColor(java.lang.String disabledColor)
          Initializes attribute disabledColor 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 setFormat(java.lang.String format)
          Initializes attribute format to the given value.
 void setId(java.lang.String id)
          Initializes attribute id to the given value.
 void setLabel(java.lang.String label)
          Sets attribute label to the given value.
 void setNCols(int nCols)
          Initializes attribute nCols to the given value.
 void setTemplate(LyDate template)
          Initializes attribute template to the given value.
 void setType(LyDateBase.Type type)
          Initializes attribute type 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, 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

LyDateBase

public LyDateBase()
Default constructor.

Method Detail

getType

public static final LyDateBase.Type getType(java.lang.String token)
Utility method to get type value from a string.

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

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 LyDate 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.

getType

public LyDateBase.Type getType()
Gets value of type.

Returns:
value of type.

getFormat

public java.lang.String getFormat()
Gets value of format.

Returns:
value of format.

getBean

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

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

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.

getNCols

public int getNCols()
Gets value of nCols.

Returns:
value of nCols.

getDisabledColor

public java.lang.String getDisabledColor()
Gets value of disabledColor.

Returns:
value of disabledColor.

isDefaultDisabledColor

public boolean isDefaultDisabledColor()
Checks whether the disabledColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

isArrows

public boolean isArrows()
Checks if value of attribute arrows is set.

Returns:
true if arrows is set, false otherwise.

getArrowUp

public java.lang.String getArrowUp()
Gets value of arrowUp.

Returns:
value of arrowUp.

isDefaultArrowUp

public boolean isDefaultArrowUp()
Checks whether the arrowUp attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getArrowDown

public java.lang.String getArrowDown()
Gets value of arrowDown.

Returns:
value of arrowDown.

isDefaultArrowDown

public boolean isDefaultArrowDown()
Checks whether the arrowDown attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getArrowDownBig

public java.lang.String getArrowDownBig()
Gets value of arrowDownBig.

Returns:
value of arrowDownBig.

isDefaultArrowDownBig

public boolean isDefaultArrowDownBig()
Checks whether the arrowDownBig attribute is valuated to the default value.

Returns:
True if default, false otherwise.

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(LyDate 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
Overrides:
setLabel in class LyFieldItem
Parameters:
label - New value of label.

setType

public void setType(LyDateBase.Type type)
Initializes attribute type to the given value.

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

setFormat

public void setFormat(java.lang.String format)
Initializes attribute format to the given value.

Parameters:
format - New value of format.

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.

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.

setNCols

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

Parameters:
nCols - New value of nCols.

setDisabledColor

public void setDisabledColor(java.lang.String disabledColor)
Initializes attribute disabledColor to the given value.

Parameters:
disabledColor - New value of disabledColor.

setArrows

public void setArrows(boolean arrows)
Initializes attribute arrows to the given value.

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

setArrowUp

public void setArrowUp(java.lang.String arrowUp)
Initializes attribute arrowUp to the given value.

Parameters:
arrowUp - New value of arrowUp.

setArrowDown

public void setArrowDown(java.lang.String arrowDown)
Initializes attribute arrowDown to the given value.

Parameters:
arrowDown - New value of arrowDown.

setArrowDownBig

public void setArrowDownBig(java.lang.String arrowDownBig)
Initializes attribute arrowDownBig to the given value.

Parameters:
arrowDownBig - New value of arrowDownBig.

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