public void updateColor ( TestColor color ) { switch ( color ) { case green : m_forwardButton . setEnabled ( true ) ; m_confirmCheckbox . setVisible ( false ) ; m_status . setValue ( STATUS_GREEN ) ; break ; case yellow : m_forwardButton . setEnabled ( false ) ; m_confirmCheckbox . setVisible ( true ) ; m_status . setValue ( STATUS_YELLOW ) ; break ; case red : m_forwardButton . setEnabled ( false ) ; m_confirmCheckbox . setVisible ( true ) ; m_status . setValue ( STATUS_RED ) ; break ; default : break ; } }
Sets test status .