Examples of MetadataMapModel


Examples of org.geoserver.web.util.MetadataMapModel

//            }
//            sdiModel = new Model<SpatialDatasetIdentifiers>(identifiers);
//        } else {
//            sdiModel = new Model<SpatialDatasetIdentifiers>(null);
//        }
        IModel<UniqueResourceIdentifiers> sdiModel = new MetadataMapModel(metadata, SPATIAL_DATASET_IDENTIFIER_TYPE.key, UniqueResourceIdentifiers.class);
        UniqueResourceIdentifiersEditor identifiersEditor = new UniqueResourceIdentifiersEditor(
                "spatialDatasetIdentifiers", sdiModel);
        identifiersContainer.add(identifiersEditor);
    }
View Full Code Here

Examples of org.geoserver.web.util.MetadataMapModel

    IModel model;

    public DynamicDimensionsTabPanel(String id, IModel model) {
        super(id, model);

        MetadataMapModel configsModel = new MetadataMapModel(new PropertyModel<MetadataMap>(model,
                "resource.metadata"), DefaultValueConfigurations.KEY,
                DefaultValueConfigurations.class);
        final LayerInfo layer = (LayerInfo) model.getObject();
        configurations = getConfigurations(model, configsModel);
        Editor editor = new Editor("editor", getEnabledDimensionNames(layer), configsModel);
View Full Code Here

Examples of org.geoserver.web.util.MetadataMapModel

        // Selection of the IModel associated to the metadata map
        final PropertyModel<MetadataMap> metadata = new PropertyModel<MetadataMap>(model,
                "metadata");

        // TextField associated to the root directory to map
        TextArea ecqlexp = new TextArea("ecqlexp", new MetadataMapModel(metadata,
                RESTUploadECQLPathMapper.EXPRESSION_KEY,String.class));
        // Addition of the validator
        ecqlexp.add(new IValidator<String>() {

            @Override
View Full Code Here

Examples of org.geoserver.web.util.MetadataMapModel

        final ResourceInfo resource = layer.getResource();

        final PropertyModel metadata = new PropertyModel(model, "resource.metadata");

        // time
        IModel time = new MetadataMapModel(metadata, ResourceInfo.TIME, DimensionInfo.class);
        if (time.getObject() == null) {
            time.setObject(new DimensionInfoImpl());
        }
        add(new DimensionEditor("time", time, resource, Date.class));

        // elevation
        IModel elevation = new MetadataMapModel(metadata, ResourceInfo.ELEVATION,
                DimensionInfo.class);
        if (elevation.getObject() == null) {
            elevation.setObject(new DimensionInfoImpl());
        }
        add(new DimensionEditor("elevation", elevation, resource, Number.class));

        // handle raster data custom dimensions
        final List<RasterDimensionModel> customDimensionModels = new ArrayList<RasterDimensionModel>();
View Full Code Here

Examples of org.geoserver.web.util.MetadataMapModel

        // Model associated to the metadata map
        final PropertyModel<MetadataMap> metadata = new PropertyModel<MetadataMap>(model,
                "metadata");
       
        // TextField associated to the root directory to map
        TextField rootField = new TextField("rootdir", new MetadataMapModel(metadata,
                RESTUtils.ROOT_KEY, String.class));
        add(rootField);
       
        // CheckBox associated to the root directory to map
        CheckBox quietCheckBox = new CheckBox("quiet"new MetadataMapModel(metadata,
                RESTUtils.QUIET_ON_NOT_FOUND_KEY, Boolean.class));
        add(quietCheckBox);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.