private void initDurationPanel ( ) { m_durationPrefixLabel . setText ( Messages . get ( ) . key ( Messages . GUI_SERIALDATE_DURATION_PREFIX_0 ) ) ; m_durationAfterPostfixLabel . setText ( Messages . get ( ) . key ( Messages . GUI_SERIALDATE_DURATION_ENDTYPE_OCC_POSTFIX_0 ) ) ; m_seriesEndDate . setDateOnly ( true ) ; m_seriesEndDate . setAllowInvalidValue ( true ) ; m_seriesEndDate . setValue ( m_model . getSeriesEndDate ( ) ) ; m_seriesEndDate . getTextField ( ) . addFocusHandler ( new FocusHandler ( ) { public void onFocus ( FocusEvent event ) { if ( handleChange ( ) ) { onSeriesEndDateFocus ( event ) ; } } } ) ; }
Initialize elements from the duration panel .