|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nl.coderight.jazz.form.FormField<V> nl.coderight.jazz.form.FormControl<Date> nl.coderight.jazz.form.control.CalendarControl
public class CalendarControl
Displays a combo that shows a date with a CalendarField as popup.
CalendarField
Nested Class Summary | |
---|---|
protected class |
CalendarControl.CalendarPopup
|
Field Summary |
---|
Fields inherited from class nl.coderight.jazz.form.FormField |
---|
Config |
Constructor Summary | |
---|---|
CalendarControl(String bindID,
int length)
|
Method Summary | |
---|---|
void |
copy()
|
protected ComboBoxUI |
createCalendarUI(JComboBox combo,
CalendarControl.CalendarPopup popup)
|
void |
cut()
|
ValidationError |
getError()
|
String |
getText()
|
Date |
getValue()
Returns field value. |
boolean |
isEditable()
|
boolean |
isValid()
|
protected void |
onChange()
|
void |
paste()
|
void |
setBackground(Color color)
Sets field background color. |
void |
setCopyAction(Action action)
|
void |
setCutAction(Action action)
|
void |
setDefaultCalendarDate(Date date)
Sets the default selected date for the calendar popup. |
void |
setEditable(boolean editable)
|
void |
setFormat(DateFormat dateFormat)
Sets format for date field. |
void |
setInputPrompt(String text)
|
void |
setLength(int length)
|
void |
setMask(String mask)
|
void |
setMask(String mask,
boolean containsLiteralCharacters)
|
void |
setMaxLength(int maxLength)
|
void |
setNextButtonEnabled(boolean enabled)
|
void |
setNextIcon(Icon icon)
|
void |
setOnChangeEvent(Event onChangeEvent)
|
void |
setOverwriteMode(boolean overwrite)
|
void |
setPasteAction(Action action)
|
void |
setPreviousButtonEnabled(boolean enabled)
|
void |
setPreviousIcon(Icon icon)
|
void |
setRequired(boolean required)
|
void |
setRequiredMessage(Message message)
|
void |
setValidator(Validator<Date> validator)
|
void |
setValue(Date value)
Sets field value. |
void |
showYearSpinner(boolean show)
Displays a spinner for year selection. |
void |
validate()
|
Methods inherited from class nl.coderight.jazz.form.FormControl |
---|
addField, addField, focus, focusField, focusNextField, focusPreviousField, getBindID, getFields, getFocusComponent, hasFocus, registerKeyboardAction, setComponent, setEnabled, setLayout, setTitle |
Methods inherited from class nl.coderight.jazz.form.FormField |
---|
dispatchEvent, dispose, focusNextField, focusPreviousField, getBackground, getBorder, getComponent, getCursor, getDataBinding, getForeground, getForm, getLabel, getParent, getPreferredSize, getToolTip, isBindable, isChanged, isEnabled, isFocusable, isOpaque, isReadonly, isShowing, isValueChanged, isVisible, onClick, onDoubleClick, onFocusGained, onFocusLost, onMouseEnter, onMouseLeave, onPopup, setBindID, setBorder, setChanged, setComponent, setCursor, setDataBinding, setFocusable, setForeground, setOnFocusGainedEvent, setOnFocusLostEvent, setOpaque, setPopupMenu, setPreferredSize, setReadonly, setToolTip, setVisible, translate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CalendarControl(String bindID, int length)
Method Detail |
---|
public Date getValue()
FormField
getValue
in class FormField<Date>
public void setValue(Date value)
FormField
setValue
in class FormField<Date>
public void setInputPrompt(String text)
public void setPreviousIcon(Icon icon)
public void setNextIcon(Icon icon)
public void setNextButtonEnabled(boolean enabled)
public void setPreviousButtonEnabled(boolean enabled)
public void setBackground(Color color)
FormField
setBackground
in class FormField<Date>
public void setFormat(DateFormat dateFormat)
public void showYearSpinner(boolean show)
public void setDefaultCalendarDate(Date date)
public void setLength(int length)
public void setMaxLength(int maxLength)
public void setMask(String mask)
public void setMask(String mask, boolean containsLiteralCharacters)
public void setOverwriteMode(boolean overwrite)
public boolean isEditable()
isEditable
in interface Editable
public void setEditable(boolean editable)
setEditable
in interface Editable
public void setCopyAction(Action action)
public void setCutAction(Action action)
public void setPasteAction(Action action)
public void copy()
copy
in interface ClipboardSupport
public void cut()
cut
in interface ClipboardSupport
public void paste()
paste
in interface ClipboardSupport
public String getText()
public void setRequired(boolean required)
public void setRequiredMessage(Message message)
public void setValidator(Validator<Date> validator)
public void validate() throws ValidationException
validate
in interface Validation
ValidationException
public boolean isValid()
isValid
in interface Validation
public ValidationError getError()
getError
in interface Validation
public void setOnChangeEvent(Event onChangeEvent)
protected void onChange()
onChange
in class FormField<Date>
protected ComboBoxUI createCalendarUI(JComboBox combo, CalendarControl.CalendarPopup popup)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |