Package org.nuiton.jaxx.widgets.datetime
Class UnlimitedTimeEditorModel
- java.lang.Object
-
- io.ultreia.java4all.bean.AbstractJavaBean
-
- org.nuiton.jaxx.widgets.datetime.UnlimitedTimeEditorModel
-
- All Implemented Interfaces:
io.ultreia.java4all.bean.GetterProducer,io.ultreia.java4all.bean.JavaBean,io.ultreia.java4all.bean.SetterProducer,ModelToBean
public class UnlimitedTimeEditorModel extends io.ultreia.java4all.bean.AbstractJavaBean implements ModelToBean
Created on 11/30/14.- Since:
- 2.18
- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Field Summary
Fields Modifier and Type Field Description protected ObjectbeanOptional bean where to push back dates.protected booleanfillStateState to be able to custom the model.static StringPROPERTY_HOURSstatic StringPROPERTY_MINUTESstatic StringPROPERTY_TIMEstatic StringPROPERTY_VALUE_IS_ADJUSTINGprotected StringpropertyTimeOptional bean property where to push back the time date.protected IntegertimeTime in minutes.protected booleanvalueIsAdjustingTo stop propagate events when we are doing some modifications on the model.
-
Constructor Summary
Constructors Constructor Description UnlimitedTimeEditorModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Predicate<UnlimitedTimeEditorModel>canUpdateBeanValuePredicate()protected voidfireTime(Integer oldTime)protected voidfireValueIsAdjusting(boolean oldValue)ObjectgetBean()intgetHours()intgetHours(Integer time)intgetMinutes()intgetMinutes(Integer time)StringgetPropertyTime()IntegergetTime()booleanisValueIsAdjusting()voidsetBean(Object bean)voidsetHours(Integer hour)voidsetMinutes(Integer minutes)voidsetPropertyTime(String propertyTime)voidsetTime(Integer time)protected voidsetTime(Integer hour, Integer minute)voidsetValueIsAdjusting(boolean valueIsAdjusting)-
Methods inherited from class io.ultreia.java4all.bean.AbstractJavaBean
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getChild, getJavaBeanType, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, javaBeanDefinition, pcs, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener, vcs
-
-
-
-
Field Detail
-
PROPERTY_TIME
public static final String PROPERTY_TIME
- See Also:
- Constant Field Values
-
PROPERTY_HOURS
public static final String PROPERTY_HOURS
- See Also:
- Constant Field Values
-
PROPERTY_MINUTES
public static final String PROPERTY_MINUTES
- 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
-
bean
protected Object bean
Optional bean where to push back dates.
-
propertyTime
protected String propertyTime
Optional bean property where to push back the time date.
-
time
protected Integer time
Time in minutes.
-
valueIsAdjusting
protected boolean valueIsAdjusting
To stop propagate events when we are doing some modifications on the model.
-
-
Method Detail
-
getPropertyTime
public String getPropertyTime()
-
setPropertyTime
public void setPropertyTime(String propertyTime)
-
getBean
public Object getBean()
- Specified by:
getBeanin interfaceModelToBean
-
setBean
public void setBean(Object bean)
-
getTime
public Integer getTime()
-
setTime
public void setTime(Integer time)
-
getHours
public int getHours()
-
setHours
public void setHours(Integer hour)
-
getMinutes
public int getMinutes()
-
setMinutes
public void setMinutes(Integer minutes)
-
isValueIsAdjusting
public boolean isValueIsAdjusting()
-
setValueIsAdjusting
public void setValueIsAdjusting(boolean valueIsAdjusting)
-
getHours
public int getHours(Integer time)
-
getMinutes
public int getMinutes(Integer time)
-
fireTime
protected void fireTime(Integer oldTime)
-
fireValueIsAdjusting
protected void fireValueIsAdjusting(boolean oldValue)
-
canUpdateBeanValuePredicate
protected Predicate<UnlimitedTimeEditorModel> canUpdateBeanValuePredicate()
-
-