Package jaxx.runtime.swing.editor
Class SimpleTimeEditorModel
- java.lang.Object
-
- org.jdesktop.beans.AbstractBean
-
- org.jdesktop.beans.AbstractSerializableBean
-
- jaxx.runtime.swing.editor.SimpleTimeEditorModel
-
- All Implemented Interfaces:
Serializable
public class SimpleTimeEditorModel extends org.jdesktop.beans.AbstractSerializableBean- Since:
- 2.6
- Author:
- Tony Chemit - chemit@codelutin.com
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected SerializablebeanBean where to push data.protected DatedateReal date which contains the edited time.protected booleanisSecondEditableIs second editable ?protected StringpropertyProperty of the bean to use.static StringPROPERTY_BEANstatic StringPROPERTY_DATEstatic StringPROPERTY_PROPERTYstatic StringPROPERTY_SECOND_EDITABLEstatic StringPROPERTY_TIME_MODELprotected IntegertimeModelTime model in seconds.
-
Constructor Summary
Constructors Constructor Description SimpleTimeEditorModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SerializablegetBean()DategetDate()intgetHour()intgetMinute()StringgetProperty()intgetSecond()IntegergetTimeModel()booleanisSecondEditable()voidsetBean(Serializable bean)voidsetDate(Date date)voidsetProperty(String property)voidsetSecondEditable(boolean isSecondEditable)voidsetTimeModel(Integer timeModel)-
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_TIME_MODEL
public static final String PROPERTY_TIME_MODEL
- See Also:
- Constant Field Values
-
PROPERTY_PROPERTY
public static final String PROPERTY_PROPERTY
- See Also:
- Constant Field Values
-
PROPERTY_BEAN
public static final String PROPERTY_BEAN
- See Also:
- Constant Field Values
-
PROPERTY_SECOND_EDITABLE
public static final String PROPERTY_SECOND_EDITABLE
- See Also:
- Constant Field Values
-
bean
protected Serializable bean
Bean where to push data.
-
property
protected String property
Property of the bean to use.
-
timeModel
protected Integer timeModel
Time model in seconds.
-
date
protected Date date
Real date which contains the edited time.
-
isSecondEditable
protected boolean isSecondEditable
Is second editable ?
-
-
Method Detail
-
getBean
public Serializable getBean()
-
setBean
public void setBean(Serializable bean)
-
getProperty
public String getProperty()
-
setProperty
public void setProperty(String property)
-
getDate
public Date getDate()
-
setDate
public void setDate(Date date)
-
getTimeModel
public Integer getTimeModel()
-
setTimeModel
public void setTimeModel(Integer timeModel)
-
getSecond
public int getSecond()
-
getMinute
public int getMinute()
-
getHour
public int getHour()
-
setSecondEditable
public void setSecondEditable(boolean isSecondEditable)
-
isSecondEditable
public boolean isSecondEditable()
-
-