Package com.volantis.mcs.policies.variants.selection

Examples of com.volantis.mcs.policies.variants.selection.DeviceReference


        setProject(project);

        deviceList.addCheckStateListener(new ICheckStateListener() {
            public void checkStateChanged(CheckStateChangedEvent event) {
                DeviceReference deviceRef = (DeviceReference) event.getElement();
                fireSelectionEvent(deviceRef, event.getChecked());
            }
        });

        filter.addModifyListener(new ModifyListener() {
View Full Code Here


            // Append the devices
            refs = selection.getModifiableDeviceReferences();
            if (refs != null && !refs.isEmpty()) {
                Iterator it = refs.iterator();
                while (it.hasNext()) {
                    DeviceReference deviceReference =
                            (DeviceReference) it.next();
                    appendText(deviceReference.getDeviceName());
                }
            }
        }
View Full Code Here

     *
     * @param element The node from which to add mappings
     */
    private void initialiseNode(Element element) {
        String deviceName = element.getAttributeValue(DeviceRepositorySchemaConstants.DEVICE_NAME_ATTRIBUTE);
        DeviceReference deviceRef = POLICY_FACTORY.createDeviceReference(deviceName);
        elementToDeviceRef.put(element, deviceRef);
        deviceRefToElement.put(deviceRef, element);

        Iterator it = element.getChildren().iterator();
        while (it.hasNext()) {
View Full Code Here

     *         was null and an entry had to be added.
     */
    private Map targetVariantAtDevices(
            Variant variant, List devices, Map device2Variant) {
        for (int j = 0; j < devices.size(); j++) {
            DeviceReference reference = (DeviceReference) devices.get(j);
            String deviceName = reference.getDeviceName();
            if (device2Variant == null) {
                device2Variant = new HashMap();
            }
            device2Variant.put(deviceName, variant);
        }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.policies.variants.selection.DeviceReference

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.