Package org.geoserver.web.wicket

Examples of org.geoserver.web.wicket.ParamResourceModel


        field.setModel(new Model(lastUserName));
        add(field);
       
        try {
            if(parameters.getBoolean("error"))
                error(new ParamResourceModel("error", this).getString());
        } catch(Exception e) {
            // ignore
        }
    }
View Full Code Here


    public LayerGroupEditPage(PageParameters parameters) {
        String groupName = parameters.getString(GROUP);
        LayerGroupInfo lg = getCatalog().getLayerGroupByName(groupName);
       
        if(lg == null) {
            error(new ParamResourceModel("LayerGroupEditPage.notFound", this, groupName).getString());
            setResponsePage(LayerGroupPage.class);
            return;
        }
       
        initUI(lg);
View Full Code Here

        add( new AjaxLink( "add" ) {
            @Override
            public void onClick(AjaxRequestTarget target) {
                popupWindow.setInitialHeight( 375 );
                popupWindow.setInitialWidth( 525 );
                popupWindow.setTitle(new ParamResourceModel("chooseLayer", this));
                popupWindow.setContent( new LayerListPanel(popupWindow.getContentId()) {
                    @Override
                    protected void handleLayer(LayerInfo layer, AjaxRequestTarget target) {
                        popupWindow.close( target );
                       
View Full Code Here

            @Override
            public void onClick(AjaxRequestTarget target) {
                popupWindow.setInitialHeight( 375 );
                popupWindow.setInitialWidth( 525 );
                popupWindow.setTitle(new ParamResourceModel("chooseStyle", this));
                popupWindow.setContent( new StyleListPanel( popupWindow.getContentId() ) {
                    @Override
                    protected void handleStyle(StyleInfo style, AjaxRequestTarget target) {
                        popupWindow.close( target );
                       
View Full Code Here

               
                items.remove( entry );
                target.addComponent( layerTable );
            }
        };
        link.getImage().add(new AttributeModifier("alt", true, new ParamResourceModel("AbstractLayerGroupPage.th.remove", link)));
        return link;
    }
View Full Code Here

        String wsName = parameters.getString(WS_NAME);
        String storeName = parameters.getString(STORE_NAME);
        CoverageStoreInfo csi = getCatalog().getCoverageStoreByName(wsName, storeName);
       
        if(csi == null) {
            error(new ParamResourceModel("CoverageStoreEditPage.notFound", this, wsName, storeName).getString());
            setResponsePage(StorePage.class);
            return;
        }
       
        initUI(csi);
View Full Code Here

                        items.remove( index );
                        items.add( index-1, PositionPanel.this.entry );
                        target.addComponent( layerTable );
                    }
                };
                upLink.getImage().add(new AttributeModifier("alt", true, new ParamResourceModel("up", upLink)));
                add( upLink);
            }
            else {
                ImageAjaxLink blankLink = new ImageAjaxLink( "up", new ResourceReference( getClass(), "../../img/icons/blank.png") ) {
                    @Override
                    protected void onClick(AjaxRequestTarget target) {
                    }
                };
                blankLink.getImage().add(new AttributeModifier("alt", true, new Model("")));
                add(blankLink);
            }
           
            if ( items.indexOf( entry ) < items.size() - 1 ) {
                ImageAjaxLink downLink = new ImageAjaxLink( "down", new ResourceReference( getClass(), "../../img/icons/silk/arrow_down.png") ) {
                    @Override
                    protected void onClick(AjaxRequestTarget target) {
                        int index = items.indexOf( PositionPanel.this.entry );
                        items.remove( index );
                        items.add( index+1, PositionPanel.this.entry );
                        target.addComponent( layerTable );
                    }
                };
                downLink.getImage().add(new AttributeModifier("alt", true, new ParamResourceModel("down", downLink)));
                add( downLink);
            }
            else {
                ImageAjaxLink blankLink = new ImageAjaxLink( "down", new ResourceReference( getClass(), "../../img/icons/blank.png") ) {
                    @Override
View Full Code Here

    private TextField dirField;
   
  
    public ImportPage(PageParameters params) {
        if("TRUE".equalsIgnoreCase((String) params.getString("afterCleanup")))
            info(new ParamResourceModel("rollbackSuccessful", this).getString());
        add(dialog = new GeoServerDialog("dialog"));
       
        Form form = new Form("form", new CompoundPropertyModel(this));
        add(form);
View Full Code Here

    private Component chooserButton(Form form) {
        AjaxSubmitLink link =  new AjaxSubmitLink("chooser") {
            @Override
            protected void onSubmit(AjaxRequestTarget target, Form form) {
                dialog.setTitle(new ParamResourceModel("chooseDirectory", this));
                dialog.showOkCancel(target, new GeoServerDialog.DialogDelegate() {

                    @Override
                    protected Component getContents(String id) {
                        // use what the user currently typed
View Full Code Here

                    DataStoreInfo si;
                    StoreInfo preExisting = getCatalog().getStoreByName(ws, project, StoreInfo.class);
                    boolean storeNew = false;
                    if(preExisting != null) {
                        if(!(preExisting instanceof DataStoreInfo)) {
                            error(new ParamResourceModel("storeExistsNotVector", this, project));
                            return;
                        }
                        si = (DataStoreInfo) preExisting;
                        if(!si.getType().equals(storeType) || !si.getConnectionParameters().equals(params)) {
                            error(new ParamResourceModel("storeExistsNotSame", this, project));
                            return;
                        }
                        // make sure it's enabled, we just verified the directory exists
                        si.setEnabled(true);
                    } else {
View Full Code Here

TOP

Related Classes of org.geoserver.web.wicket.ParamResourceModel

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.