leon.view
Class LyDate
java.lang.Object
leon.view.LyComponent
leon.view.LyFieldItem
leon.view.LyDateBase
leon.view.LyDate
- All Implemented Interfaces:
- LyGetIdInterface, LyGetLabelInterface, LySetLabelInterface, LyUpdateViewContentInterface
public class LyDate
- extends LyDateBase
The LyDate 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:
See also tag DATE of
grammar leon_views.dtd.
Field Summary |
static int |
EDITTABLE_DATE_MIN_SIZE
minimum size for date component in edit table |
static boolean |
SHOW_ARROWS
Indicates if we use arrows for formatted date inputs. |
Constructor Summary |
LyDate()
Default constructor. |
Method Summary |
static LyDateBase.Type |
getType(int type)
Utility method to get date type from environment date type. |
static short |
getType(LyDateBase.Type type)
Utility method to get environment date type from date type. |
boolean |
isShowArrows()
Checks if value of attribute showArrows is set. |
void |
showArrows(boolean showArrows)
Initializes attribute showArrows to the given value. |
Methods inherited from class leon.view.LyDateBase |
cloneComponent, getArrowDown, getArrowDownBig, getArrowUp, getBean, getColor, getDisabledColor, getFont, getFontColor, getFormat, getId, getLabel, getNCols, getTemplate, getType, getType, isArrows, isDefaultArrowDown, isDefaultArrowDownBig, isDefaultArrowUp, isDefaultColor, isDefaultDisabledColor, isDefaultFont, isDefaultFontColor, setArrowDown, setArrowDownBig, setArrows, setArrowUp, setBean, setColor, setDisabledColor, setFont, setFontColor, setFormat, setId, setLabel, setNCols, setTemplate, setType, writeXml |
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 |
SHOW_ARROWS
public static boolean SHOW_ARROWS
- Indicates if we use arrows for formatted date inputs.
EDITTABLE_DATE_MIN_SIZE
public static int EDITTABLE_DATE_MIN_SIZE
- minimum size for date component in edit table
LyDate
public LyDate()
- Default constructor.
getType
public static final short getType(LyDateBase.Type type)
- Utility method to get environment date type from date type.
- Parameters:
token
- Token string
- Returns:
- Type value corresponding to this token
getType
public static final LyDateBase.Type getType(int type)
- Utility method to get date type from environment date type.
- Parameters:
type
- Environment date type.
- Returns:
- Type value corresponding to given date type.
showArrows
public void showArrows(boolean showArrows)
- Initializes attribute showArrows to the given value.
- Parameters:
showArrows
- Boolean indicating if attribute showArrows is set or unset.
isShowArrows
public boolean isShowArrows()
- Checks if value of attribute showArrows is set.
- Returns:
- true if showArrows is set, false otherwise.
Website: W4 S.A., contact us: support@w4global.com