Package org.nuiton.jaxx.widgets.datetime
Class TimeEditorModel
java.lang.Object
org.jdesktop.beans.AbstractBean
org.jdesktop.beans.AbstractSerializableBean
org.nuiton.jaxx.widgets.datetime.TimeEditorModel
- All Implemented Interfaces:
Serializable,ModelToBean
public class TimeEditorModel extends org.jdesktop.beans.AbstractSerializableBean implements ModelToBean
Created on 11/30/14.
- Since:
- 2.18
- Author:
- Tony Chemit - chemit@codelutin.com
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected SerializablebeanOptional bean where to push back dates.protected Calendarcalendarprotected booleanfillStateState to be able to custom the model. will be pass tofalseby theDateTimeEditorHandler.init(DateTimeEditor).static StringPROPERTY_TIMEstatic StringPROPERTY_TIME_IN_MINUTESstatic StringPROPERTY_VALUE_IS_ADJUSTINGprotected StringpropertyTimeOptional bean property where to push back the time date.protected DatetimeTimeprotected booleanvalueIsAdjustingTo stop propagate events when we are doing some modifications on the model. -
Constructor Summary
Constructors Constructor Description TimeEditorModel() -
Method Summary
Modifier and Type Method Description protected com.google.common.base.Predicate<TimeEditorModel>canUpdateBeanValuePredicate()protected voidfireTime(Date oldTime)protected voidfireTimeInMinutes(Integer oldDate)protected voidfireValueIsAdjusting(boolean oldValue)SerializablegetBean()protected IntegergetHour(Date date)protected IntegergetMinute(Date date)StringgetPropertyTime()DategetTime()IntegergetTimeInMinutes()booleanisValueIsAdjusting()voidsetBean(Serializable bean)voidsetHour(Integer hour)voidsetMinute(Integer minute)voidsetPropertyTime(String propertyTime)protected voidsetTime(Integer hour, Integer minute)voidsetTime(Date time)voidsetTimeInMinutes(Integer time)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 Details
-
PROPERTY_TIME
- See Also:
- Constant Field Values
-
PROPERTY_TIME_IN_MINUTES
- See Also:
- Constant Field Values
-
PROPERTY_VALUE_IS_ADJUSTING
- See Also:
- Constant Field Values
-
bean
Optional bean where to push back dates. -
propertyTime
Optional bean property where to push back the time date. -
time
Time -
fillState
protected boolean fillStateState to be able to custom the model. will be pass tofalseby theDateTimeEditorHandler.init(DateTimeEditor). -
valueIsAdjusting
protected boolean valueIsAdjustingTo stop propagate events when we are doing some modifications on the model. -
calendar
-
-
Constructor Details
-
TimeEditorModel
public TimeEditorModel()
-
-
Method Details
-
getPropertyTime
-
setPropertyTime
-
getBean
- Specified by:
getBeanin interfaceModelToBean
-
setBean
-
isValueIsAdjusting
public boolean isValueIsAdjusting() -
setValueIsAdjusting
public void setValueIsAdjusting(boolean valueIsAdjusting) -
setHour
-
setMinute
-
getTimeInMinutes
-
setTimeInMinutes
-
getTime
-
setTime
-
getHour
-
getMinute
-
setTime
-
fireTime
-
fireTimeInMinutes
-
fireValueIsAdjusting
protected void fireValueIsAdjusting(boolean oldValue) -
canUpdateBeanValuePredicate
-