Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.DockLayoutPanel$LayoutData


  public void loadModule() {
    applicationContentDeck.setHeight("100%");
    applicationContentDeck.setWidth("100%");
    applicationContentDeck.setAnimationEnabled(true);
    if ("true".equals(getSettings().getString("dockToolbars"))) {
      DockLayoutPanel applicationPanel = new DockLayoutPanel(Unit.PX);
      if ("true".equals(getSettings().getString("showApplicationToolbar"))) {
        applicationPanel.addNorth(buildApplicationToolBar(), 29);
      }

      if ("true".equals(getSettings().getString("showApplicationFooter"))) {
        applicationPanel.addSouth(buildFooterPanel(), 60);
      }

      applicationPanel.add(applicationContentDeck);

      RootLayoutPanel.get().clear();
      RootLayoutPanel.get().add(applicationPanel);
    } else {
      VerticalPanel applicationPanel = new VerticalPanel();
      applicationPanel.setWidth("100%");

      if ("true".equals(getSettings().getString("showApplicationToolbar"))) {
        applicationPanel.add(buildApplicationToolBar());
      }

      applicationPanel.add(applicationContentDeck);

      if ("true".equals(getSettings().getString("showApplicationFooter"))) {
        applicationPanel.add(buildFooterPanel());
      }

      RootPanel.get("content").clear();
      RootPanel.get("content").add(applicationPanel);
    }
View Full Code Here


        window.setWidth(width);
        window.setHeight(height);

        window.setGlassEnabled(true);

        DockLayoutPanel panel = new DockLayoutPanel(Style.Unit.PX);
        panel.setStyleName("fill-layout-width");

        HTML text = new HTML(message);
        text.getElement().setAttribute("style", "margin:10px;");

        ClickHandler confirmHandler = new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                handler.onConfirmation(true);
                window.hide();
            }
        };

        ClickHandler cancelHandler = new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                handler.onConfirmation(false);
                window.hide();
            }
        };

        DialogueOptions options = new DialogueOptions("OK", confirmHandler, "Cancel", cancelHandler);
        options.getElement().setAttribute("style", "margin-bottom:10px;");
        panel.addSouth(options, 35);
        panel.add(text);


        window.setWidget(panel);

        window.center();
View Full Code Here

  public NotificationLinePanel() {
    initComponents();
  }
  private void initComponents() {
   
    final DockLayoutPanel dockLayoutPanel = new DockLayoutPanel(Unit.EM);
    initWidget(dockLayoutPanel);
    dockLayoutPanel.setHeight("30px");
   
    final Label lblNewLabel = new Label("New label");
    dockLayoutPanel.add(lblNewLabel);
   
    final Anchor hprlnkNewHyperlink = new Anchor("Delete");
    dockLayoutPanel.addEast(hprlnkNewHyperlink,10 );
  }
View Full Code Here

        popup.setWidth("640px");
        popup.setHeight("480px");
        popup.setGlassEnabled(true);
        popup.setAutoHideEnabled(true);

        DockLayoutPanel layout = new DockLayoutPanel(Style.Unit.PX);

        HorizontalPanel header = new HorizontalPanel();
        header.setStyleName("default-window-header");
        header.getElement().setAttribute("cellpadding", "4");

        HTML titleText = new HTML(Console.CONSTANTS.common_label_settings());

        Image closeIcon = new Image(Icons.INSTANCE.close());
        closeIcon.setAltText("Close");
        closeIcon.addClickHandler(new ClickHandler(){
            @Override
            public void onClick(ClickEvent clickEvent) {
                presenter.hideView();
            }
        });

        header.add(titleText);
        header.add(closeIcon);

        // it's just a table ...
        titleText.getElement().getParentElement().setAttribute("width", "100%");
        closeIcon.getElement().getParentElement().setAttribute("width", "16px");

        //header.setWidgetRightWidth(closeIcon, 5, Style.Unit.PX, 16, Style.Unit.PX);
        //header.setWidgetRightWidth(titleText, 21, Style.Unit.PX, 95, Style.Unit.PCT);

        layout.addNorth(header, 25);


        createContents(layout);

        popup.setWidget(layout);
View Full Code Here

        headerPanel.setStyleName("header-panel");

        footerPanel = new LayoutPanel();
        footerPanel.setStyleName("footer-panel");

        panel = new DockLayoutPanel(Style.Unit.PX);
        panel.getElement().setAttribute("id", "container");

        panel.addNorth(headerPanel, 58);
        panel.addSouth(footerPanel, 25);
        panel.add(mainContentPanel);
View Full Code Here

    private ProfileSelector selector;
    private ProfileSection profileSection;

    public LHSProfileNavigation() {

        layout = new DockLayoutPanel(Style.Unit.PX);
        layout.setStyleName("fill-layout");

        stack = new VerticalPanel();
        stack.setStyleName("fill-layout-width");
View Full Code Here

        this.currentHost = currentHost;
    }

    Widget asWidget() {

        DockLayoutPanel wrapper = new DockLayoutPanel(Style.Unit.PX);

        VerticalPanel layout = new VerticalPanel();
        layout.setStyleName("window-content");

        final Form<Jvm> form = new Form<Jvm>(Jvm.class);

        TextBoxItem nameItem = new TextBoxItem("name", Console.CONSTANTS.common_label_name());
        TextBoxItem heapItem = new TextBoxItem("heapSize", "Heap Size");
        TextBoxItem maxHeapItem = new TextBoxItem("maxHeapSize", "Max Heap Size");
        //CheckBoxItem debugItem = new CheckBoxItem("debugEnabled", "Debug Enabled?");
        //TextBoxItem debugOptionsItem = new TextBoxItem("debugOptions", "Debug Options");

        form.setFields(nameItem, heapItem, maxHeapItem);


         final FormHelpPanel helpPanel = new FormHelpPanel(
                new FormHelpPanel.AddressCallback() {
                    @Override
                    public ModelNode getAddress() {
                        ModelNode address = new ModelNode();
                        address.add("host", Console.MODULES.getCurrentSelectedHost().getName());
                        address.add("jvm", "*");
                        return address;
                    }
                }, form
        );
        layout.add(helpPanel.asWidget());

        layout.add(form.asWidget());

        DialogueOptions options = new DialogueOptions(
                new ClickHandler() {

                    @Override
                    public void onClick(ClickEvent event) {
                        presenter.onCreateJvm(currentHost.getName(), form.getUpdatedEntity());
                    }
                },
                new ClickHandler() {

                    @Override
                    public void onClick(ClickEvent event) {
                        presenter.closeDialogue();
                    }
                }
        );


        wrapper.addSouth(options, 35);
        wrapper.add(layout);

        return wrapper;
    }
View Full Code Here

        this.reference = reference;
    }

    public Widget asWidget() {

        DockLayoutPanel wrapper = new DockLayoutPanel(Style.Unit.PX);

        VerticalPanel panel = new VerticalPanel();
        panel.setStyleName("window-content");

        final Form<PropertyRecord> form = new Form<PropertyRecord>(PropertyRecord.class);

        TextBoxItem nameItem = new TextBoxItem("key", "Name");
        TextBoxItem valueItem = new TextBoxItem("value", "Value");
        CheckBoxItem bootItem = new CheckBoxItem("bootTime", "Boot-Time");

        if(Console.MODULES.getBootstrapContext().isStandalone())
            form.setFields(nameItem, valueItem);
        else
            form.setFields(nameItem, valueItem, bootItem);

        DialogueOptions options = new DialogueOptions(
                new ClickHandler() {
                    @Override
                    public void onClick(ClickEvent event) {
                         // save
                        PropertyRecord property = form.getUpdatedEntity();
                        presenter.onCreateProperty(reference, property);
                    }
                },
                new ClickHandler() {
                    @Override
                    public void onClick(ClickEvent event) {
                        // cancel
                        presenter.closePropertyDialoge();
                    }
                }
        );

        panel.add(form.asWidget());

        wrapper.addSouth(options, 35);
        wrapper.add(panel);
        return wrapper;
    }
View Full Code Here

    private VerticalPanel stack;
    private DockLayoutPanel layout;

    public LHSHostsNavigation() {

        layout = new DockLayoutPanel(Style.Unit.PX);
        layout.setStyleName("fill-layout");

        selector = new HostSelector();
        final Widget selectorWidget = selector.asWidget();
View Full Code Here

        headerPanel.setStyleName("header-panel");

        footerPanel = new LayoutPanel();
        footerPanel.setStyleName("footer-panel");

        panel = new DockLayoutPanel(Style.Unit.PX);
        panel.addNorth(headerPanel, 64);
        panel.addSouth(footerPanel, 30);
        panel.add(mainContentPanel);

View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.DockLayoutPanel$LayoutData

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.