|
MDateSelector | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.text.JTextComponent
javax.swing.JTextField
javax.swing.JFormattedTextField
mseries.ui.MDateField
public class MDateField
Date entry widget with built in Formatter/Parser and Calendar popup to facilitate input. The earliest and latest possible values may be set using the setMinimum and setMaximum methods, this causes the calendar popup to allow date within the range to be selected. Dates outside of the range may be entered by typing directly into the field.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JFormattedTextField |
|---|
JFormattedTextField.AbstractFormatter, JFormattedTextField.AbstractFormatterFactory |
| Nested classes/interfaces inherited from class javax.swing.JTextField |
|---|
JTextField.AccessibleJTextField |
| Nested classes/interfaces inherited from class javax.swing.text.JTextComponent |
|---|
JTextComponent.AccessibleJTextComponent, JTextComponent.DropLocation, JTextComponent.KeyBinding |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
MDateFormat |
df
Deprecated. |
| Fields inherited from class javax.swing.JFormattedTextField |
|---|
COMMIT, COMMIT_OR_REVERT, PERSIST, REVERT |
| Fields inherited from class javax.swing.JTextField |
|---|
notifyAction |
| Fields inherited from class javax.swing.text.JTextComponent |
|---|
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
MDateField()
Default Constructor |
|
MDateField(DateFormat df)
|
|
MDateField(int text)
Deprecated. |
|
| Method Summary | |
|---|---|
MDateSelectorConstraints |
getConstraints()
Gets the constraints object that contains the parameters used to configure the pull down calendar |
MDateFormat |
getDateFormatter()
|
JFormattedTextField.AbstractFormatter |
getDateFormatter(Object x)
Returns the date formatter |
Date |
getMaximum()
|
Date |
getMinimum()
Returns the earliest date |
Object |
getValue()
|
Date |
getValue(Date defaultValue)
|
boolean |
hasPopup()
|
protected void |
init()
|
void |
setConstraints(MDateSelectorConstraints c)
Sets the constraints object that contains the parameters used to configure the pull down calendar |
void |
setDateFormatter(MDateFormat df)
Deprecated. format should be set when the object is instantiated by passing an instance of DateFormat, NB this method does nothing |
void |
setMaximum(Date date)
Sets the latest value that may be selected for this field when the poup calendar in invoked. |
void |
setMinimum(Date date)
Sets the earliest value that may be selected for this field when the poup calendar in invoked. |
void |
setPopup(boolean hasPopup)
|
void |
setValue(Date date)
|
| Methods inherited from class javax.swing.JFormattedTextField |
|---|
commitEdit, getActions, getFocusLostBehavior, getFormatter, getFormatterFactory, getUIClassID, invalidEdit, isEditValid, processFocusEvent, processInputMethodEvent, setDocument, setFocusLostBehavior, setFormatter, setFormatterFactory, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public MDateFormat df
| Constructor Detail |
|---|
public MDateField(DateFormat df)
public MDateField(int text)
text - the display field sizepublic MDateField()
| Method Detail |
|---|
protected void init()
public void setDateFormatter(MDateFormat df)
df - the date formatterpublic JFormattedTextField.AbstractFormatter getDateFormatter(Object x)
x - not used, only inplace to allow the same method name as the depreicated method
public MDateFormat getDateFormatter()
public boolean hasPopup()
public void setConstraints(MDateSelectorConstraints c)
c - the constraints objectgetConstraints()public MDateSelectorConstraints getConstraints()
setConstraints(mseries.Calendar.MDateSelectorConstraints)public void setPopup(boolean hasPopup)
hasPopup - public void setMinimum(Date date)
date - the ealiest datepublic void setMaximum(Date date)
date - the latest datepublic Date getMinimum()
public Date getMaximum()
public Date getValue(Date defaultValue)
public void setValue(Date date)
date - public Object getValue()
getValue in class JFormattedTextField
|
MDateSelector | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||