void initComponents() { updateFields(); add(minXLabel = new Label("minXL", new ResourceModel("minX"))); add(minYLabel = new Label("minYL", new ResourceModel("minY"))); add(maxXLabel = new Label("maxXL", new ResourceModel("maxX"))); add(maxYLabel = new Label("maxYL", new ResourceModel("maxY"))); add( minXInput = new DecimalTextField( "minX", new PropertyModel(this, "minX")) ); add( minYInput = new DecimalTextField( "minY", new PropertyModel(this, "minY")) ); add( maxXInput = new DecimalTextField( "maxX", new PropertyModel(this, "maxX") )); add( maxYInput = new DecimalTextField( "maxY", new PropertyModel(this, "maxY")) ); crsContainer = new WebMarkupContainer("crsContainer"); crsContainer.setVisible(false); crsPanel = new CRSPanel("crs", new PropertyModel(this, "crs")); crsContainer.add(crsPanel); add(crsContainer); }
void initComponents() { updateFields(); add(minXLabel = new Label("minXL", new ResourceModel("minX"))); add(minYLabel = new Label("minYL", new ResourceModel("minY"))); add(minZLabel = new Label("minZL", new ResourceModel("minZ"))); add(maxXLabel = new Label("maxXL", new ResourceModel("maxX"))); add(maxYLabel = new Label("maxYL", new ResourceModel("maxY"))); add(maxZLabel = new Label("maxZL", new ResourceModel("maxZ"))); add(minXInput = new DecimalTextField("minX", new PropertyModel<Double>(this, "minX"))); add(minYInput = new DecimalTextField("minY", new PropertyModel<Double>(this, "minY"))); add(minZInput = new DecimalTextField("minZ", new PropertyModel<Double>(this, "minZ"))); add(maxXInput = new DecimalTextField("maxX", new PropertyModel<Double>(this, "maxX"))); add(maxYInput = new DecimalTextField("maxY", new PropertyModel<Double>(this, "maxY"))); add(maxZInput = new DecimalTextField("maxZ", new PropertyModel<Double>(this, "maxZ"))); minZInput.setVisible(is3D()); minZLabel.setVisible(is3D()); maxZInput.setVisible(is3D()); maxZLabel.setVisible(is3D()); crsContainer = new WebMarkupContainer("crsContainer"); crsContainer.setVisible(false); crsPanel = new CRSPanel("crs", new PropertyModel<CoordinateReferenceSystem>(this, "crs")); crsContainer.add(crsPanel); add(crsContainer); }
crsContainer.setOutputMarkupId(true); form.add(crsContainer); crsContainer.add(crsField = new CRSPanel("crs")); crsContainer.setVisible(attribute.getBinding() != null && Geometry.class.isAssignableFrom(attribute.getBinding()));
crsContainer.setOutputMarkupId(true); form.add(crsContainer); crsContainer.add(crsField = new CRSPanel("crs")); crsContainer.setVisible( attribute.getBinding() != null
public PGRasterPanel(final String id, final IModel paramsModel, final Form storeEditForm) { super(id); server = addTextPanel(paramsModel, "server", true); port = addTextPanel(paramsModel, "port", true); SRSToCRSModel srsModel = new SRSToCRSModel(new PropertyModel(paramsModel, "ESPG:4326")); epsgcode = new CRSPanel("epsgcode", srsModel); epsgcode.setModelObject(DEFAULT_CRS); add(epsgcode); user = addTextPanel(paramsModel, "user", "Postgis user", true); password = addPasswordPanel(paramsModel, "password"); database = addTextPanel(paramsModel, "database", "Postgis Database", true); table = addTextPanel(paramsModel, "table", true); schema = addTextPanel(paramsModel, "schema", true); schema.setModelValue(new String[] {"public"}); fileext = addTextPanel(paramsModel, "fileext", "tiles file extension filter", false); importopt = addTextPanel(paramsModel, "importopt", "raster2pgsql script import options", false); server.setOutputMarkupId(true); port.setOutputMarkupId(true); user.setOutputMarkupId(true); password.setOutputMarkupId(true); database.setOutputMarkupId(true); table.setOutputMarkupId(true); schema.setOutputMarkupId(true); fileext.setOutputMarkupId(true); importopt.setOutputMarkupId(true); }
targetCRS = new CRSPanel("targetCRS", new PropertyModel(getCoverage, "targetCRS")); details.add(targetCRS);
targetCRS = new CRSPanel("targetCRS", new PropertyModel(getCoverage, "targetCRS")); details.add(targetCRS);