Class SimpleTimeEditorModel

java.lang.Object
org.jdesktop.beans.AbstractBean
org.jdesktop.beans.AbstractSerializableBean
jaxx.runtime.swing.editor.SimpleTimeEditorModel
All Implemented Interfaces:
java.io.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 java.io.Serializable bean
    Bean where to push data.
    protected java.util.Date date
    Real date which contains the edited time.
    protected boolean isSecondEditable
    Is second editable ?
    protected java.lang.String property
    Property of the bean to use.
    static java.lang.String PROPERTY_BEAN  
    static java.lang.String PROPERTY_DATE  
    static java.lang.String PROPERTY_PROPERTY  
    static java.lang.String PROPERTY_SECOND_EDITABLE  
    static java.lang.String PROPERTY_TIME_MODEL  
    protected java.lang.Integer timeModel
    Time model in seconds.
  • Constructor Summary

    Constructors
    Constructor Description
    SimpleTimeEditorModel()  
  • Method Summary

    Modifier and Type Method Description
    java.io.Serializable getBean()  
    java.util.Date getDate()  
    int getHour()  
    int getMinute()  
    java.lang.String getProperty()  
    int getSecond()  
    java.lang.Integer getTimeModel()  
    boolean isSecondEditable()  
    void setBean​(java.io.Serializable bean)  
    void setDate​(java.util.Date date)  
    void setProperty​(java.lang.String property)  
    void setSecondEditable​(boolean isSecondEditable)  
    void setTimeModel​(java.lang.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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • PROPERTY_DATE

      public static final java.lang.String PROPERTY_DATE
      See Also:
      Constant Field Values
    • PROPERTY_TIME_MODEL

      public static final java.lang.String PROPERTY_TIME_MODEL
      See Also:
      Constant Field Values
    • PROPERTY_PROPERTY

      public static final java.lang.String PROPERTY_PROPERTY
      See Also:
      Constant Field Values
    • PROPERTY_BEAN

      public static final java.lang.String PROPERTY_BEAN
      See Also:
      Constant Field Values
    • PROPERTY_SECOND_EDITABLE

      public static final java.lang.String PROPERTY_SECOND_EDITABLE
      See Also:
      Constant Field Values
    • bean

      protected java.io.Serializable bean
      Bean where to push data.
    • property

      protected java.lang.String property
      Property of the bean to use.
    • timeModel

      protected java.lang.Integer timeModel
      Time model in seconds.
    • date

      protected java.util.Date date
      Real date which contains the edited time.
    • isSecondEditable

      protected boolean isSecondEditable
      Is second editable ?
  • Constructor Details

    • SimpleTimeEditorModel

      public SimpleTimeEditorModel()
  • Method Details

    • getBean

      public java.io.Serializable getBean()
    • setBean

      public void setBean​(java.io.Serializable bean)
    • getProperty

      public java.lang.String getProperty()
    • setProperty

      public void setProperty​(java.lang.String property)
    • getDate

      public java.util.Date getDate()
    • setDate

      public void setDate​(java.util.Date date)
    • getTimeModel

      public java.lang.Integer getTimeModel()
    • setTimeModel

      public void setTimeModel​(java.lang.Integer timeModel)
    • getSecond

      public int getSecond()
    • getMinute

      public int getMinute()
    • getHour

      public int getHour()
    • setSecondEditable

      public void setSecondEditable​(boolean isSecondEditable)
    • isSecondEditable

      public boolean isSecondEditable()