Package org.nuiton.jaxx.widgets.datetime
Class DateEditorModel
- java.lang.Object
-
- org.jdesktop.beans.AbstractBean
-
- org.jdesktop.beans.AbstractSerializableBean
-
- org.nuiton.jaxx.widgets.datetime.DateEditorModel
-
- All Implemented Interfaces:
Serializable,ModelToBean
public class DateEditorModel extends org.jdesktop.beans.AbstractSerializableBean implements ModelToBean
Created on 9/9/14.- Since:
- 2.12
- Author:
- Tony Chemit - dev@tchemit.fr
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ObjectbeanOptional bean where to push back dates.protected Calendarcalendarprotected DatedateFull date (date + time)protected booleaneditableIs date editable ?protected booleanfillStateState to be able to custom the model.protected StringpropertyOptional bean property where to push back the day date.static StringPROPERTY_DATEstatic StringPROPERTY_EDITABLEstatic StringPROPERTY_VALUE_IS_ADJUSTINGprotected booleanvalueIsAdjustingTo stop propagate events when we are doing some modifications on the model.
-
Constructor Summary
Constructors Constructor Description DateEditorModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Predicate<DateEditorModel>canUpdateBeanValuePredicate()protected voidfireDate(Date oldDate)protected voidfireValueIsAdjusting(boolean oldValue)ObjectgetBean()DategetDate()StringgetProperty()booleanisEditable()booleanisValueIsAdjusting()voidsetBean(Object bean)voidsetDate(Date date)voidsetEditable(boolean editable)voidsetProperty(String property)voidsetValueIsAdjusting(boolean valueIsAdjusting)-
Methods inherited from class org.jdesktop.beans.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
-
-
-
-
Field Detail
-
PROPERTY_DATE
public static final String PROPERTY_DATE
- See Also:
- Constant Field Values
-
PROPERTY_EDITABLE
public static final String PROPERTY_EDITABLE
- See Also:
- Constant Field Values
-
PROPERTY_VALUE_IS_ADJUSTING
public static final String PROPERTY_VALUE_IS_ADJUSTING
- See Also:
- Constant Field Values
-
fillState
protected final boolean fillState
State to be able to custom the model. will be pass tofalseby theDateTimeEditorHandler#init(DateTimeEditor).- See Also:
- Constant Field Values
-
calendar
protected final Calendar calendar
-
bean
protected Object bean
Optional bean where to push back dates.
-
property
protected String property
Optional bean property where to push back the day date.
-
editable
protected boolean editable
Is date editable ?
-
date
protected Date date
Full date (date + time)
-
valueIsAdjusting
protected boolean valueIsAdjusting
To stop propagate events when we are doing some modifications on the model.
-
-
Method Detail
-
getProperty
public String getProperty()
-
setProperty
public void setProperty(String property)
-
getBean
public Object getBean()
- Specified by:
getBeanin interfaceModelToBean
-
setBean
public void setBean(Object bean)
-
isEditable
public boolean isEditable()
-
setEditable
public void setEditable(boolean editable)
-
isValueIsAdjusting
public boolean isValueIsAdjusting()
-
setValueIsAdjusting
public void setValueIsAdjusting(boolean valueIsAdjusting)
-
getDate
public Date getDate()
-
setDate
public void setDate(Date date)
-
fireDate
protected void fireDate(Date oldDate)
-
fireValueIsAdjusting
protected void fireValueIsAdjusting(boolean oldValue)
-
canUpdateBeanValuePredicate
protected Predicate<DateEditorModel> canUpdateBeanValuePredicate()
-
-