public class DateTimeEditorModel extends org.jdesktop.beans.AbstractSerializableBean implements ModelToBean
| Modifier and Type | Field and Description |
|---|---|
protected Object |
bean
Optional bean where to push back dates.
|
protected Calendar |
calendar |
protected Date |
date
Full date (date + time)
|
protected boolean |
dateEditable
Is date editable ?
|
protected boolean |
fillState
State to be able to custom the model.
|
static String |
PROPERTY_DATE |
static String |
PROPERTY_DATE_EDITABLE |
static String |
PROPERTY_DAY_DATE |
static String |
PROPERTY_TIME_DATE |
static String |
PROPERTY_TIME_EDITABLE |
static String |
PROPERTY_TIME_IN_MINUTES |
static String |
PROPERTY_VALUE_IS_ADJUSTING |
protected String |
propertyDate
Optional bean property where to push back the full date.
|
protected String |
propertyDayDate
Optional bean property where to push back the day date.
|
protected String |
propertyTimeDate
Optional bean property where to push back the time date.
|
protected boolean |
timeEditable
Is time editable ?
|
protected boolean |
valueIsAdjusting
To stop propagate events when we are doing some modifications on the model.
|
| Constructor and Description |
|---|
DateTimeEditorModel() |
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListenerpublic static final String PROPERTY_DAY_DATE
public static final String PROPERTY_TIME_DATE
public static final String PROPERTY_TIME_IN_MINUTES
public static final String PROPERTY_DATE
public static final String PROPERTY_TIME_EDITABLE
public static final String PROPERTY_DATE_EDITABLE
public static final String PROPERTY_VALUE_IS_ADJUSTING
protected final boolean fillState
false by the DateTimeEditorHandler.init(DateTimeEditor).protected final Calendar calendar
protected Object bean
protected String propertyDayDate
protected String propertyTimeDate
protected String propertyDate
protected boolean dateEditable
protected boolean timeEditable
protected Date date
protected boolean valueIsAdjusting
public String getPropertyDayDate()
public void setPropertyDayDate(String propertyDayDate)
public String getPropertyTimeDate()
public void setPropertyTimeDate(String propertyTimeDate)
public String getPropertyDate()
public void setPropertyDate(String propertyDate)
public Object getBean()
getBean in interface ModelToBeanpublic void setBean(Object bean)
public boolean isDateEditable()
public void setDateEditable(boolean dateEditable)
public boolean isTimeEditable()
public void setTimeEditable(boolean timeEditable)
public boolean isValueIsAdjusting()
public void setValueIsAdjusting(boolean valueIsAdjusting)
public void setHour(Integer hour)
public void setMinute(Integer minute)
public Integer getTimeInMinutes()
public void setTimeInMinutes(Integer time)
public Date getTimeDate()
public void setTimeDate(Date timeDate)
public Date getDayDate()
public void setDayDate(Date dayDate)
public Date getDate()
public void setDate(Date date)
protected void fireTimeDate(Date oldDate)
protected void fireTimeInMinutes(Integer oldDate)
protected void fireDayDate(Date oldDate)
protected void fireDate(Date oldDate)
protected void fireValueIsAdjusting(boolean oldValue)
protected Predicate<DateTimeEditorModel> canUpdateBeanValuePredicate()
Copyright © 2008–2018 Ultreia.io. All rights reserved.