|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo2.app.Component
echopointng.ComponentEx
echopointng.AbleComponent
echopointng.PopUp
echopointng.DropDown
echopointng.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.
| Field Summary | |
|---|---|
static Style |
DEFAULT_TEXT_FIELD_STYLE
The default appearance of the TextField component with the DateField |
| Fields inherited from class echopointng.DropDown |
|---|
DEFAULT_ALIGNMENT, DEFAULT_STYLE |
| Fields inherited from class echopointng.ComponentEx |
|---|
PROPERTY_HIDDEN |
| Fields inherited from interface echopointng.able.Expandable |
|---|
EXPANDED_CHANGED_PROPERTY, PROPERTY_EXPANSION_GROUP, PROPERTY_EXPANSION_MODEL |
| Fields inherited from interface echopointng.able.AccessKeyable |
|---|
PROPERTY_ACCESS_KEY |
| Fields inherited from interface echopointng.able.Borderable |
|---|
PROPERTY_BORDER |
| Fields inherited from interface echopointng.able.MouseCursorable |
|---|
CURSOR_AUTO, CURSOR_CROSSHAIR, CURSOR_CUSTOM_URI, CURSOR_DEFAULT, CURSOR_E_RESIZE, CURSOR_HELP, CURSOR_MOVE, CURSOR_N_RESIZE, CURSOR_NE_RESIZE, CURSOR_NW_RESIZE, CURSOR_POINTER, CURSOR_S_RESIZE, CURSOR_SE_RESIZE, CURSOR_SW_RESIZE, CURSOR_TEXT, CURSOR_W_RESIZE, CURSOR_WAIT, PROPERTY_MOUSE_CURSOR, PROPERTY_MOUSE_CURSOR_URI |
| Fields inherited from interface echopointng.able.Insetable |
|---|
DEFAULT_INSETS, DEFAULT_OUTSETS, PROPERTY_INSETS, PROPERTY_OUTSETS |
| Fields inherited from interface echopointng.able.Widthable |
|---|
PROPERTY_WIDTH |
| Fields inherited from interface echopointng.able.Heightable |
|---|
PROPERTY_HEIGHT |
| Fields inherited from interface echopointng.able.ToolTipable |
|---|
PROPERTY_TOOL_TIP_TEXT |
| Constructor Summary | |
|---|---|
DateField()
Constructs a DateField with the date format as
DateFormat.getDateInstance() and the current date via
Calendar.getInstance(). |
|
DateField(java.util.Calendar startDate)
Constructs a DateField with the date format as
DateFormat.getDateInstance() and the specified
startDate. |
|
| Method Summary | |
|---|---|
DateChooser |
getDateChooser()
|
java.text.DateFormat |
getDateFormat()
|
java.util.Calendar |
getDisplayedDate()
A shortcurt method to the underlying DateChooser's model getDisplayedDate() method. |
CalendarSelectionModel |
getModel()
Short hand method for getDateChooser().getModel(). |
java.util.Calendar |
getSelectedDate()
A shortcurt method to the underlying DateChooser's model getSelectedDate() method. |
java.lang.String |
getText()
Returns the text of the DateField's TextField. |
TextField |
getTextField()
|
boolean |
isUpdateFromTextField()
|
void |
processInput(java.lang.String inputName,
java.lang.Object inputValue)
Processes client input specific to the Component
received from the UpdateManager. |
void |
setDateChooser(DateChooser newValue)
|
void |
setDateFormat(java.text.DateFormat newValue)
|
void |
setDisplayedDate(java.util.Calendar newDisplayedDate)
Sets the displayed date within the DateChooser's model. |
void |
setModel(CalendarSelectionModel newValue)
Sets the CalendarSelectionModel to be used on the underlying DateChooser component. |
void |
setSelectedDate(java.util.Calendar newSelectedDate)
Sets the selected date within the DateChooser's model. |
void |
setTextField(TextField newValue)
|
void |
setUpdateFromTextField(boolean newValue)
Set to true, the Datefield will update the CalendarSelectionModel when changes are made to the TextField. |
protected void |
updateDateFromText()
Called to update the calendar selection model from the current text field contents. |
protected void |
updateTextFromDate()
Called to update the text field from the current calendar selection model. |
void |
validate()
A life-cycle method invoked before the component is rendered to ensure it is in a valid state. |
| Methods inherited from class echopointng.AbleComponent |
|---|
getAccessKey, getBorder, getHeight, getInsets, getMouseCursor, getMouseCursorURI, getOutsets, getToolTipText, getWidth, setAccessKey, setBorder, setHeight, setInsets, setMouseCursor, setMouseCursorURI, setOutsets, setToolTipText, setWidth |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Field Detail |
|---|
public static final Style DEFAULT_TEXT_FIELD_STYLE
| Constructor Detail |
|---|
public DateField()
DateField with the date format as
DateFormat.getDateInstance() and the current date via
Calendar.getInstance().
public DateField(java.util.Calendar startDate)
DateField with the date format as
DateFormat.getDateInstance() and the specified
startDate.
| Method Detail |
|---|
public void processInput(java.lang.String inputName,
java.lang.Object inputValue)
ComponentComponent
received from the UpdateManager.
Derivative implementations should take care to invoke
super.processInput().
processInput in class PopUpinputName - the name of the inputinputValue - the value of the inputPopUp.processInput(java.lang.String, java.lang.Object)public DateChooser getDateChooser()
public java.text.DateFormat getDateFormat()
public java.util.Calendar getDisplayedDate()
public CalendarSelectionModel getModel()
getDateChooser().getModel().
public java.util.Calendar getSelectedDate()
public TextField getTextField()
public java.lang.String getText()
DateField's TextField.
DateField's TextField.public boolean isUpdateFromTextField()
public void setDateChooser(DateChooser newValue)
newValue - -
The new DateChooser to use.public void setDateFormat(java.text.DateFormat newValue)
newValue - -
The dateFormat to set.public void setDisplayedDate(java.util.Calendar newDisplayedDate)
DateChooser's model.
newDisplayedDate - -
the new displayed datepublic void setModel(CalendarSelectionModel newValue)
newValue - -
The new CalendarSelectionModel to usepublic void setSelectedDate(java.util.Calendar newSelectedDate)
DateChooser's model.
This will also have the effect og setting the text of the
TextField since the DateField is listening to the
udnerlying CalendarSelectionModel.
newSelectedDate - -
the new selected datepublic void setTextField(TextField newValue)
newValue - -
The textField to set.public void setUpdateFromTextField(boolean newValue)
newValue - -
true or falseprotected void updateDateFromText()
isUpdateFromTextField() currently
returns true.
protected void updateTextFromDate()
public void validate()
Componentsuper.validate()
out of convention.
validate in class PopUpComponent.validate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||