|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextapp.echo.app.Component
echopoint.jquery.DateField
public class DateField
DateField is a drop down component that contains a text field and a drop down calendar.
The text field is updated with the contents of the DateField calendar.
DateField is both a date- and time picker.
If the component should be used as a time-picker the DateFormat must include an hour field, e.g. setDateFormat("dd.MM.yyyy HH:mm")
It is based on the jQuery plugin DynDateTime
| Field Summary | |
|---|---|
static String |
cssReference
|
static String |
DATE_CHANGED_PROPERTY
|
static ImageReference |
imageReference
|
protected static Logger |
logger
The logger to use to log the download progress. |
static String |
PROPERTY_BORDER
|
static String |
PROPERTY_CALENDAR_ICON
|
static String |
PROPERTY_CSS
|
static String |
PROPERTY_DATEFORMAT
|
static String |
PROPERTY_EDITABLE
|
static String |
PROPERTY_FIRST_DAY_OF_WEEK
|
static String |
PROPERTY_INPUT_HEIGHT
|
static String |
PROPERTY_INPUT_WIDTH
|
static String |
PROPERTY_INSETS
|
static String |
PROPERTY_LANGUAGE
|
static String |
PROPERTY_SHOW_WEEKS
|
| Fields inherited from interface echopoint.able.Widthable |
|---|
PROPERTY_WIDTH |
| Fields inherited from interface echopoint.able.Heightable |
|---|
PROPERTY_HEIGHT |
| Fields inherited from interface echopoint.able.Alignable |
|---|
PROPERTY_ALIGNMENT |
| Constructor Summary | |
|---|---|
DateField()
Creates a new CalendarSelect. |
|
DateField(Calendar calendar)
|
|
DateField(Date date)
Creates a new CalendarSelect. |
|
| Method Summary | |
|---|---|
Alignment |
getAlignment()
Returns the alignment of the DateField component. |
Border |
getBorder()
Returns the border surrounding the entire component. |
String |
getCSS()
Returns the cascading style sheet for this calendar. |
Date |
getDate()
Returns the selected date. |
String |
getDateFormat()
|
String |
getDateStr()
|
static String |
getFileAsString(String resource)
|
int |
getFirstDayOfWeek()
Returns the first day of the week |
Extent |
getHeight()
Returns the height extent of DateField component. |
ImageReference |
getIcon()
Returns the icon displayed in the calendar button. |
Extent |
getInputHeight()
Returns the input field height. |
Extent |
getInputWidth()
Returns the input field width. |
Insets |
getInsets()
Returns the inset margin of the content. |
boolean |
getShowWeeks()
Returns the status of week number display |
Extent |
getWidth()
Returns the width extent of the DateField component. |
boolean |
isEditable()
Determines the editable state of this component. |
void |
processInput(String inputName,
Object inputValue)
|
void |
setAlignment(Alignment newValue)
Sets the alignment of the DateField component. |
void |
setBorder(Border newValue)
Sets the border surrounding the entire component. |
void |
setCSS(String newValue)
Sets the cascading style sheet for this calendar. |
void |
setDate(Date newValue)
Sets the selected date. |
void |
setDateFormat(String dateFormat)
Sets the date format for this calendar. |
void |
setEditable(boolean newValue)
Sets the editable state of this component. |
void |
setFirstDayOfWeek(int newValue)
Sets the the first day of week. |
void |
setHeight(Extent newValue)
Sets the height extent of the DateField component. |
void |
setIcon(ImageReference newValue)
Sets the icon displayed in the calendar button. |
void |
setInputHeight(Extent newValue)
Sets the editable state of this component. |
void |
setInputWidth(Extent newValue)
Sets the width of the input field for the date. |
void |
setInsets(Insets newValue)
Sets the inset margin of the content. |
void |
setShowWeeks(boolean newValue)
Sets the display of week numbers |
void |
setWidth(Extent newValue)
Sets the width extent of the DateField component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface echopoint.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Field Detail |
|---|
protected static final Logger logger
public static final String DATE_CHANGED_PROPERTY
public static final String PROPERTY_EDITABLE
public static final String PROPERTY_DATEFORMAT
public static final String PROPERTY_BORDER
public static final String PROPERTY_CALENDAR_ICON
public static final String PROPERTY_CSS
public static final String PROPERTY_INSETS
public static final String PROPERTY_LANGUAGE
public static final ImageReference imageReference
public static final String cssReference
public static final String PROPERTY_INPUT_WIDTH
public static final String PROPERTY_INPUT_HEIGHT
public static final String PROPERTY_SHOW_WEEKS
public static final String PROPERTY_FIRST_DAY_OF_WEEK
| Constructor Detail |
|---|
public DateField()
CalendarSelect.
public DateField(Calendar calendar)
public DateField(Date date)
CalendarSelect.
date - the initially selected date| Method Detail |
|---|
public void setDateFormat(String dateFormat)
throws IllegalArgumentException
dateFormat -
IllegalArgumentExceptionpublic String getDateFormat()
public void setInsets(Insets newValue)
newValue - the new inset marginpublic Insets getInsets()
public void setIcon(ImageReference newValue)
newValue - the new iconpublic String getCSS()
public void setCSS(String newValue)
newValue - the new iconpublic Alignment getAlignment()
getAlignment in interface Alignablepublic void setAlignment(Alignment newValue)
setAlignment in interface AlignablenewValue - the new alignmentpublic ImageReference getIcon()
public Border getBorder()
public void setWidth(Extent newValue)
setWidth in interface WidthablenewValue - - the new width extent of the DateField componentpublic Extent getWidth()
getWidth in interface Widthablepublic void setHeight(Extent newValue)
setHeight in interface HeightablenewValue - - the new height extent of the DateField componentpublic Extent getHeight()
getHeight in interface Heightablepublic Date getDate()
public String getDateStr()
public void processInput(String inputName,
Object inputValue)
processInput in class ComponentComponent.processInput(java.lang.String, java.lang.Object)public void setBorder(Border newValue)
newValue - the new borderpublic void setDate(Date newValue)
newValue - the new datepublic void setEditable(boolean newValue)
newValue - the new editable statepublic boolean isEditable()
true if this component is editablepublic static String getFileAsString(String resource)
public Extent getInputWidth()
public void setInputWidth(Extent newValue)
newValue - the new width of the input fieldpublic Extent getInputHeight()
public void setInputHeight(Extent newValue)
newValue - the new height of the input fieldpublic int getFirstDayOfWeek()
public void setFirstDayOfWeek(int newValue)
newValue - (0=Sunday, 1= Monday etc.)public boolean getShowWeeks()
public void setShowWeeks(boolean newValue)
newValue - Should week numbers be displayed?
|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||