m_childServiceComponent.setNullSelectionAllowed(false); m_childServiceComponent.setWidth(100.0f, Unit.PERCENTAGE); m_childServiceComponent.setVisible(false); m_childServiceComponent.setImmediate(true); m_childServiceComponent.setValidationVisible(true); m_ipServiceComponent.setNullSelectionAllowed(false); m_ipServiceComponent.setWidth(100.0f, Unit.PERCENTAGE); m_ipServiceComponent.setVisible(false); m_ipServiceComponent.setImmediate(true); m_ipServiceComponent.setValidationVisible(true); m_applicationComponent.setNullSelectionAllowed(false); m_applicationComponent.setWidth(100.0f, Unit.PERCENTAGE); m_applicationComponent.setVisible(false); m_applicationComponent.setImmediate(true); m_applicationComponent.setValidationVisible(true); m_childServiceComponent.setVisible(m_typeSelect.getValue() == EdgeType.CHILD_SERVICE); m_childServiceComponent.setRequired(m_typeSelect.getValue() == EdgeType.CHILD_SERVICE); m_ipServiceComponent.setVisible(m_typeSelect.getValue() == EdgeType.IP_SERVICE); m_ipServiceComponent.setRequired(m_typeSelect.getValue() == EdgeType.IP_SERVICE); m_reductionKeyComponent.setVisible(m_typeSelect.getValue() == EdgeType.REDUCTION_KEY); m_reductionKeyComponent.setRequired(m_typeSelect.getValue() == EdgeType.REDUCTION_KEY); m_applicationComponent.setVisible(m_typeSelect.getValue() == EdgeType.APPLICATION); m_applicationComponent.setRequired(m_typeSelect.getValue() == EdgeType.APPLICATION); m_friendlyNameField.setVisible(m_typeSelect.getValue() == EdgeType.REDUCTION_KEY || m_typeSelect.getValue() == EdgeType.IP_SERVICE);
hasAlarmData.setValue(enable); alarmDataAlarmType.setVisible(enable); alarmDataAutoClean.setVisible(enable); alarmDataReductionKey.setVisible(enable);
alarmDataAlarmType.setDescription("<b>1</b> to be a problem that has a possible resolution, alarm-type set to <b>2</b> to be a resolution event, and alarm-type set to <b>3</b> for events that have no possible resolution"); alarmDataAlarmType.setNullSelectionAllowed(false); alarmDataAlarmType.setVisible(false); alarmDataAlarmType.setRequired(true); eventLayout.addComponent(alarmDataAlarmType);