switch ( cmbActionType.getSelectionIndex( ) ) { case 0 : this.slValues.topControl = cmpURL; break; case 1 : this.slValues.topControl = cmpTooltip; break; case 2 : this.slValues.topControl = cmpVisiblity; break; case 3 : this.slValues.topControl = cmpScript; break; case 4 : this.slValues.topControl = cmpHighlight; break; case 5 : this.slValues.topControl = cmpCallback; break; default : this.slValues.topControl = cmpDefault; break; } grpValue.layout( );
switchUI();
	public void clear( )	{		cmbTriggerType.select( 0 );		cmbActionType.select( 0 );		switch ( cmbActionType.getSelectionIndex( ) )		{			case 0 :				this.slValues.topControl = cmpURL;				break;			case 1 :				this.slValues.topControl = cmpTooltip;				break;			case 2 :				this.slValues.topControl = cmpVisiblity;				break;			case 3 :				this.slValues.topControl = cmpScript;				break;			case 4 :				this.slValues.topControl = cmpHighlight;				break;			case 5 :				this.slValues.topControl = cmpCallback;				break;			default :				this.slValues.topControl = cmpDefault;				break;		}		grpValue.layout( );	}