private void setPresets() {
		TriggerType selectedTrigger = (TriggerType) drpTriggerType.getSelected();

		comboField.setVisible(
				selectedTrigger != TriggerType.DateField && selectedTrigger != TriggerType.NumberField);
		dateField.setVisible(selectedTrigger == TriggerType.DateField);
		numberField.setVisible(selectedTrigger == TriggerType.NumberField);

		// If a group action selected, then target can only be the field (as it is defined in a group)
		switch ((ControlActionType) drpActionType.getSelected()) {
			case ENABLEIN_DISABLEIN:
			case SHOWIN_HIDEIN:
				drpTargetType.setSelected(TargetType.WFIELD);
				drpTargetType.setDisabled(true);
				break;
			default:
				drpTargetType.setDisabled(false);
		}
	}
private void setPresets ( ) { TriggerType selectedTrigger = ( TriggerType ) drpTriggerType . getSelected ( ) ; comboField . setVisible ( selectedTrigger != TriggerType . DateField && selectedTrigger != TriggerType . NumberField ) ; dateField . setVisible ( selectedTrigger == TriggerType . DateField ) ; numberField . setVisible ( selectedTrigger == TriggerType . NumberField ) ; switch ( ( ControlActionType ) drpActionType . getSelected ( ) ) { case ENABLEIN_DISABLEIN : case SHOWIN_HIDEIN : drpTargetType . setSelected ( TargetType . WFIELD ) ; drpTargetType . setDisabled ( true ) ; break ; default : drpTargetType . setDisabled ( false ) ; } }
Setup the default values for the configuration options.