Package org.jboss.ballroom.client.layout

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.getBootstrapContext().isStandalone(), 20);
        layout.add(propertyEditor.asWidget());
        propertyEditor.setAllowEditProps(false);

        return layout;
    }
View Full Code Here


    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);
        uriLabel.getElement().setAttribute("style", "margin-bottom:10px");

        layout.add(container);

        return layout;
    }
View Full Code Here

    private ToolButton edit;

    @Override
    public Widget createWidget() {

        LayoutPanel layout = new RHSContentPanel("Servlet");

        layout.add(new ContentHeaderLabel("Servlet/HTTP Configuration"));
        layout.add(new ContentDescription(Console.CONSTANTS.subsys_web_desc()));
        // ----

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

        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());


        // ----

        CheckBoxItem disabled= new CheckBoxItem("disabled", "Disabled?");
        CheckBoxItem development= new CheckBoxItem("development", "Development?");
        TextBoxItem instanceId = new TextBoxItem("instanceId", "Instance ID", false);

        CheckBoxItem keepGenerated= new CheckBoxItem("keepGenerated", "Keep Generated?");
        NumberBoxItem checkInterval = new NumberBoxItem("checkInterval", "Check Interval");
        CheckBoxItem sourceFragment= new CheckBoxItem("displaySource", "Display Source?");


        form.setFields(disabled, development, instanceId);
        form.setFieldsInGroup(Console.CONSTANTS.common_label_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

    private PropertyEditor propertyEditor;

    @Override
    public Widget createWidget() {

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

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

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

        return layout;
    }
View Full Code Here

    }

    @Override
    public Widget createWidget() {

        LayoutPanel layout = new RHSContentPanel("Domain Overview");

        HorizontalPanel hlayout = new HorizontalPanel();
        hlayout.setStyleName("fill-layout-width");
        hlayout.getElement().setAttribute("cellpadding", "10");

        VerticalPanel vlayoutLeft = new VerticalPanel();
        vlayoutLeft.setStyleName("fill-layout-width");

        profileList = new CellList<ProfileRecord>(new ProfileCell());
        profileList.setPageSize(25);

        ContentGroupLabel leftLabel = new ContentGroupLabel("Available Profiles");
        leftLabel.setIcon("common/profile.png");
        vlayoutLeft.add(leftLabel);
        vlayoutLeft.add(profileList);

        // --------------------------------------

        VerticalPanel vlayoutRight = new VerticalPanel();
        vlayoutRight.setStyleName("fill-layout-width");

        ContentGroupLabel rightLabel = new ContentGroupLabel("Server Groups");
        rightLabel.setIcon("common/server_group.png");

        vlayoutRight.add(rightLabel);

        ServerGroupCell groupCell = new ServerGroupCell();
        groupList = new CellList<ServerGroupRecord>(groupCell);
        groupList.setPageSize(25);

        final SingleSelectionModel<ServerGroupRecord> selectionModel = new SingleSelectionModel<ServerGroupRecord>();
        groupList.setSelectionModel(selectionModel);
        selectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
            public void onSelectionChange(SelectionChangeEvent event) {
                ServerGroupRecord selectedRecord = selectionModel.getSelectedObject();
                final String groupName = selectedRecord.getGroupName();

                Console.MODULES.getPlaceManager().revealPlaceHierarchy(
                        new ArrayList<PlaceRequest>() {{
                            add(new PlaceRequest("domain"));
                            add(new PlaceRequest(NameTokens.ServerGroupPresenter).with("name", groupName));
                        }}
                );
            }
        });


        vlayoutRight.add(groupList);
        // --------------------------------------

        hlayout.add(vlayoutLeft);
        hlayout.add(vlayoutRight);

        layout.add(hlayout);

        // --------------------------------------

        //layout.add(new ContentGroupLabel("Domain Level Deployments"));
View Full Code Here

    private PropertyEditor propertyEditor;

    @Override
    public Widget createWidget() {

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

        layout.add(new ContentDescription("Properties that are inherited by any server on a host. Each server can override a specific property value."));

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

        return layout;
    }
View Full Code Here

    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.setAllowEditProps(false);

        return layout;
    }
View Full Code Here

    // dummy implementation
    class SystemAppCanvas
    {
        Widget asWidget() {
            LayoutPanel layout = new RHSContentPanel("System Overview");
            Label label = new Label("Quick glance at the system status. I.e. number of active service instances, etc.");
            layout.add(label);

            return layout;
        }
View Full Code Here

    private CellTable<WebServiceEndpoint> table ;
    private Form<WebServiceEndpoint> form;

    @Override
    public Widget createWidget() {
        LayoutPanel layout = new RHSContentPanel("Web Services");

        layout.add(new ContentHeaderLabel("Web Services Provider"));

        layout.add(new ContentGroupLabel("Registered Web Service Endpoints"));

        table = new DefaultCellTable<WebServiceEndpoint>(6);

        TextColumn<WebServiceEndpoint> nameCol = new TextColumn<WebServiceEndpoint>() {
            @Override
            public String getValue(WebServiceEndpoint object) {
                return object.getName();
            }
        };

        TextColumn<WebServiceEndpoint> contextCol = new TextColumn<WebServiceEndpoint>() {
            @Override
            public String getValue(WebServiceEndpoint object) {
                return object.getContext();
            }
        };

        table.addColumn(nameCol, "Name");
        table.addColumn(contextCol, "Context");

        DefaultPager pager = new DefaultPager();
        pager.setDisplay(table);

        layout.add(table);
        layout.add(pager);

        // -----

        layout.add(new ContentGroupLabel("Web Service"));

        form = new Form<WebServiceEndpoint>(WebServiceEndpoint.class);
        form.setNumColumns(2);

        TextItem nameItem = new TextItem("name", "Name");
        TextItem contextItem = new TextItem("context", "Context");
        TextItem classItem = new TextItem("className", "Class");
        TextItem typeItem = new TextItem("type", "Type");
        TextItem wsdlItem = new TextItem("wsdl", "WSDL Url");

        form.setFields(nameItem, contextItem, classItem, typeItem, wsdlItem);
        form.bind(table);
        form.setEnabled(false);


        final StaticHelpPanel helpPanel = new StaticHelpPanel(WebServiceDescriptions.getEndpointDescription());
        layout.add(helpPanel.asWidget());

        layout.add(form.asWidget());

        return layout;
    }
View Full Code Here

    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

Related Classes of org.jboss.ballroom.client.layout.RHSContentPanel

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.