public void setDateOnly ( boolean dateOnly ) { if ( m_dateOnly != dateOnly ) { m_dateOnly = dateOnly ; if ( m_dateOnly ) { m_time . removeFromParent ( ) ; m_am . removeFromParent ( ) ; m_pm . removeFromParent ( ) ; } else { m_timeField . add ( m_time ) ; m_timeField . add ( m_am ) ; m_timeField . add ( m_pm ) ; } } }
Sets the value if the date only should be shown .