Package org.jboss.as.console.client.shared.properties

Examples of org.jboss.as.console.client.shared.properties.PropertyRecord


        // do nothing
    }
   
    @Override
    public void launchNewPropertyDialoge(String reference) {
        PropertyRecord proto = factory.property().as();
        proto.setKey("name");
        proto.setValue("value");

        properties.add(proto);
        propEditor.setProperties("", properties);
    }
View Full Code Here


    @Override
    public void setValue(List<PropertyRecord> properties) {
        // clone the PropertyRecords so that you can cancel the edit
        List<PropertyRecord> props = new ArrayList<PropertyRecord>(properties.size());
        for (PropertyRecord property : properties) {
            PropertyRecord clone = factory.property().as();
            clone.setKey(property.getKey());
            clone.setValue(property.getValue());
            clone.setBootTime(property.isBootTime());
            props.add(clone);
        }

        this.value = props;
        this.propertyEditor.setProperties("", props);
View Full Code Here

                public void onClick(ClickEvent event) {
                    // save

                    // Not using form.getUpdatedEntity() here as this goes through a JSON
                    // serialization phase which causes issues with multi-line values
                    PropertyRecord property = factory.property().as();
                    property.setKey(nameItem.getValue());
                    property.setValue(valueItem.getValue());

                    presenter.onCreateProperty(reference, property);
                    presenter.closePropertyDialoge();
                }
            },
View Full Code Here

                ModelNode response = result.get();
                ModelNode model = response.get(RESULT);

                List<PropertyRecord> properties = new ArrayList<PropertyRecord>();
                for (String key : model.keys()) {
                    PropertyRecord property = factory.property().as();
                    property.setKey(key);
                    property.setValue(model.get(key).get("value").asString());
                    properties.add(property);
                }
                getView().updateProperties(properties);
            }
        });
View Full Code Here

                    OSGiConfigAdminData data = factory.osgiConfigAdminData().as();
                    data.setPid(pid);

                    List<PropertyRecord> properties = new ArrayList<PropertyRecord>();
                    for(Property property : model.get(pid).get("entries").asPropertyList()) {
                        PropertyRecord record = factory.property().as();
                        record.setKey(property.getName());
                        record.setValue(property.getValue().asString());
                        properties.add(record);
                    }
                    data.setProperties(properties);
                    casDataList.add(data);
                }
View Full Code Here

    public void launchNewPropertyDialoge(String reference) {
        addEmptyProperty();
    }

    private void addEmptyProperty() {
        PropertyRecord proto = factory.property().as();
        proto.setKey(Console.CONSTANTS.common_label_name().toLowerCase());
        proto.setValue(Console.CONSTANTS.common_label_value().toLowerCase());

        properties.add(proto);
        propEditor.setProperties("", properties);
    }
View Full Code Here

        {
            List<Property> model = modelNode.get("config-properties").asPropertyList();
            result = new ArrayList<PropertyRecord>(model.size());
            for(Property prop : model)
            {
                PropertyRecord record = propertyAdapter.fromDMR(prop.getValue());
                record.setKey(prop.getName());
                result.add(record);
            }
        }
        else
        {
View Full Code Here

                    List<Property> properties = result.get(RESULT).asPropertyList();
                    List<PropertyRecord> records = new ArrayList<PropertyRecord>(properties.size());

                    for(Property prop : properties)
                    {
                        PropertyRecord record = factory.property().as();
                        record.setKey(prop.getName());
                        ModelNode payload = prop.getValue().asObject();
                        record.setValue(payload.get("value").asString());
                        record.setBootTime(payload.get("boot-time").asBoolean());

                        records.add(record);
                    }

                    callback.onSuccess(records);
View Full Code Here

                    List<Property> properties = result.get(RESULT).asPropertyList();
                    List<PropertyRecord> records = new ArrayList<PropertyRecord>(properties.size());

                    for(Property prop : properties)
                    {
                        PropertyRecord record = factory.property().as();
                        record.setKey(prop.getName());
                        ModelNode payload = prop.getValue().asObject();
                        record.setValue(payload.get("value").asString());
                        record.setBootTime(payload.get("boot-time").asBoolean());

                        records.add(record);
                    }

                    callback.onSuccess(records);
View Full Code Here

                    List<Property> properties = response.get(RESULT).asPropertyList();
                    List<PropertyRecord> environment = new ArrayList<PropertyRecord>(properties.size());

                    for(Property prop : properties)
                    {
                        PropertyRecord model = factory.property().as();
                        model.setKey(prop.getName());
                        model.setValue(prop.getValue().asString());

                        environment.add(model);

                    }
View Full Code Here

TOP

Related Classes of org.jboss.as.console.client.shared.properties.PropertyRecord

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.