Examples of RHSContentPanel


Examples of org.jboss.ballroom.client.layout.RHSContentPanel

    public void setPresenter(JndiPresenter presenter) {
    }

    @Override
    public Widget createWidget() {
        RHSContentPanel layout = new RHSContentPanel(Console.CONSTANTS.subsys_naming_jndiView());
        container = new VerticalPanel();
        container.setStyleName("fill-layout");

        layout.add(new ContentHeaderLabel(Console.CONSTANTS.subsys_naming_jndiBindings()));

        uriLabel = new HTML(SELECTED_URI_PREFIX, true);
        layout.add(uriLabel);

        layout.add(container);

        return layout;
    }
View Full Code Here

Examples of org.jboss.ballroom.client.layout.RHSContentPanel

    private ToolButton edit;

    @Override
    public Widget createWidget() {

        LayoutPanel layout = new RHSContentPanel("Servlet");

        layout.add(new ContentHeaderLabel("Servlet/HTTP Configuration"));

        // ----

        form = new Form(JSPContainerConfiguration.class);
        form.setNumColumns(2);

        ContentGroupLabel label = new ContentGroupLabel("JSP Container");
        label.getElement().setAttribute("style", "margin-bottom:0px;");
        layout.add(label);

        FormToolStrip toolStrip = new FormToolStrip<JSPContainerConfiguration>(
                form,
                new FormToolStrip.FormCallback<JSPContainerConfiguration>() {
                    @Override
                    public void onSave(Map<String, Object> changeset) {
                        presenter.onSaveJSPConfig(changeset);
                    }

                    @Override
                    public void onDelete(JSPContainerConfiguration entity) {

                    }
                }
        );

        toolStrip.providesDeleteOp(false);
        layout.add(toolStrip.asWidget());


        // ----

        StatusItem disabled= new StatusItem("disabled", "Disabled?");
        StatusItem development= new StatusItem("development", "Development?");
        StatusItem keepGenerated= new StatusItem("keepGenerated", "Keep Generated?");
        NumberBoxItem checkInterval = new NumberBoxItem("checkInterval", "Check Interval");
        StatusItem sourceFragment= new StatusItem("displaySource", "Display Source?");


        form.setFields(disabled, development);
        form.setFieldsInGroup("Advanced", new DisclosureGroupRenderer(), keepGenerated, checkInterval, sourceFragment);


        FormHelpPanel helpPanel = new FormHelpPanel(new FormHelpPanel.AddressCallback() {
            @Override
            public ModelNode getAddress() {
                ModelNode address = Baseadress.get();
                address.add("subsystem", "web");
                address.add("configuration", "jsp-configuration");
                return address;
            }
        },form);

        layout.add(helpPanel.asWidget());

        layout.add(form.asWidget());
        form.setEnabled(false); // TODO:

        // ----

        TabPanel bottomLayout = new TabPanel();
        bottomLayout.addStyleName("default-tabpanel");
        bottomLayout.getElement().setAttribute("style", "padding-top:20px;");


        connectorList = new ConnectorList(presenter);
        bottomLayout.add(connectorList.asWidget(),"Connectors");

        serverList = new VirtualServerList(presenter);
        bottomLayout.add(serverList.asWidget(),"Virtual Servers");

        bottomLayout.selectTab(0);

        layout.add(bottomLayout);

        return layout;
    }
View Full Code Here

Examples of org.jboss.ballroom.client.layout.RHSContentPanel

        this.presenter = presenter;
    }

    @Override
    public Widget asWidget() {
        return new RHSContentPanel("Paths");
    }
View Full Code Here

Examples of org.jboss.ballroom.client.layout.RHSContentPanel

        this.presenter = presenter;
    }

    @Override
    public Widget createWidget() {
        RHSContentPanel layout = new RHSContentPanel("JNDI View");
        container = new VerticalPanel();
        container.setStyleName("fill-layout");

        layout.add(new ContentHeaderLabel("JNDI Bindings"));

        layout.add(container);

        return layout;
    }
View Full Code Here

Examples of org.jboss.ballroom.client.layout.RHSContentPanel

    private HostInterfacesPresenter presenter;
    private CellTable<Interface> table;

    @Override
    public Widget createWidget() {
        LayoutPanel layout = new RHSContentPanel("Host Interfaces");

        layout.add(new ContentHeaderLabel("Interface Declarations"));

        table = new DefaultCellTable<Interface>(10);

        TextColumn<Interface> nameColumn = new TextColumn<Interface>() {
            @Override
            public String getValue(Interface record) {
                return record.getName();
            }
        };

         TextColumn<Interface> criteriaColumn = new TextColumn<Interface>() {
            @Override
            public String getValue(Interface record) {
                return record.getCriteria();
            }
        };

        table.addColumn(nameColumn, "Name");
        table.addColumn(criteriaColumn, "Criteria");

        layout.add(table);

        return layout;
    }
View Full Code Here

Examples of org.jboss.ballroom.client.layout.RHSContentPanel

    private ToolButton edit;

    @Override
    public Widget createWidget() {

        LayoutPanel layout = new RHSContentPanel("Servlet");

        layout.add(new ContentHeaderLabel("Servlet Subsystem Configuration"));

        // ----

        ContentGroupLabel label = new ContentGroupLabel("JSP Container");
        label.getElement().setAttribute("style", "margin-bottom:0px;");
        layout.add(label);

        /*ToolStrip toolStrip = new ToolStrip();
        edit = new ToolButton("Edit", new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {

                Console.error("Not implemented yet!");

                if(edit.getText().equals("Edit"))
                    presenter.onEditJSPConfig();
                else
                    presenter.onSaveJSPConfig();
            }
        });
        toolStrip.addToolButton(edit);

        layout.add(toolStrip);*/

        // ----


        form = new Form(JSPContainerConfiguration.class);
        form.setNumColumns(2);

        StatusItem listing = new StatusItem("listings", "Listings?");

        StatusItem disabled= new StatusItem("disabled", "Disabled?");

        StatusItem development= new StatusItem("development", "Development?");

        StatusItem keepGenerated= new StatusItem("keepGenerated", "Keep Generated?");

        NumberBoxItem checkInterval = new NumberBoxItem("checkInterval", "Check Interval");

        StatusItem sourceFragment= new StatusItem("displaySource", "Display Source?");


        form.setFields(disabled, development);
        form.setFieldsInGroup("Advanced", new DisclosureGroupRenderer(), listing, keepGenerated, checkInterval, sourceFragment);


        StaticHelpPanel helpPanel = new StaticHelpPanel(WebDescriptions.getJSPConfigDescription());
        layout.add(helpPanel.asWidget());

        layout.add(form.asWidget());
        form.setEnabled(false); // TODO:

        // ----

        TabPanel bottomLayout = new TabPanel();
        bottomLayout.addStyleName("default-tabpanel");
        bottomLayout.getElement().setAttribute("style", "padding-top:20px;");


        connectorList = new ConnectorList(presenter);
        bottomLayout.add(connectorList.asWidget(),"Connectors");

        serverList = new VirtualServerList(presenter);
        bottomLayout.add(serverList.asWidget(),"Virtual Servers");

        bottomLayout.selectTab(0);

        layout.add(bottomLayout);

        return layout;
    }
View Full Code Here

Examples of org.jboss.ballroom.client.layout.RHSContentPanel

    private PropertyEditor propertyEditor;

    @Override
    public Widget createWidget() {

        LayoutPanel layout = new RHSContentPanel("System Properties");
        layout.add(new ContentHeaderLabel("Property Declarations"));

        if(!Console.MODULES.getAppProperties().isStandalone())
        {
            HTML description = new HTML("These properties will be inherited by any subresource in the domain (i.e. server-groups)");
            description.getElement().setAttribute("style", "margin-bottom:15px;");
            layout.add(description);
        }

        propertyEditor = new PropertyEditor(presenter, Console.MODULES.getBootstrapContext().isStandalone(), 20);
        layout.add(propertyEditor.asWidget());
        propertyEditor.setEnabled(false);

        return layout;
    }
View Full Code Here

Examples of org.jboss.ballroom.client.layout.RHSContentPanel

    private PropertyEditor propertyEditor;

    @Override
    public Widget createWidget() {

        LayoutPanel layout = new RHSContentPanel("Host Properties");
        layout.add(new ContentHeaderLabel("Host Property Declarations"));

        StaticHelpPanel helpPanel = new StaticHelpPanel(
                "These properties will be inherited by any server on this host."
        );
        layout.add(helpPanel.asWidget());

        propertyEditor = new PropertyEditor(presenter, 20);
        layout.add(propertyEditor.asWidget());
        propertyEditor.setEnabled(false);

        return layout;
    }
View Full Code Here

Examples of org.jboss.ballroom.client.layout.RHSContentPanel

    private PropertyEditor propertyEditor;

    @Override
    public Widget createWidget() {

        LayoutPanel layout = new RHSContentPanel("System Properties");
        layout.add(new ContentHeaderLabel("System Properties"));

        layout.add(new ContentDescription(Console.CONSTANTS.properties_global_desc()));

        propertyEditor = new PropertyEditor(presenter, Console.MODULES.getBootstrapContext().isStandalone(), 20);
        layout.add(propertyEditor.asWidget());
        propertyEditor.setAllowEditProps(false);

        return layout;
    }
View Full Code Here

Examples of org.jboss.ballroom.client.layout.RHSContentPanel

    public void setPresenter(JndiPresenter presenter) {
    }

    @Override
    public Widget createWidget() {
        RHSContentPanel layout = new RHSContentPanel(Console.CONSTANTS.subsys_naming_jndiView());
        container = new VerticalPanel();
        container.setStyleName("fill-layout");

        layout.add(new ContentHeaderLabel(Console.CONSTANTS.subsys_naming_jndiBindings()));

        uriLabel = new HTML(SELECTED_URI_PREFIX, true);
        layout.add(uriLabel);

        layout.add(container);

        return layout;
    }
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.