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

Examples of com.google.gwt.user.client.ui.FlowPanel


        super(presenter, context, title);

        addStep(STOP_SERVERS, new StopServersStep<RollbackContext, RollbackState>(this) {
            @Override
            protected IsWidget intro(RollbackContext context) {
                FlowPanel panel = new FlowPanel();
                panel.add(new Label(Console.MESSAGES.patch_manager_stop_server_body(context.host)));
                panel.add(new HTML("<h3 class=\"patch-followup-header\">" + Console.CONSTANTS
                        .patch_manager_stop_server_question_for_rollback() + "</h3>"));
                return panel;
            }
        });
        addStep(STOPPING, new StoppingServersStep<RollbackContext, RollbackState>(this, dispatcher));
View Full Code Here


    // Create a pager and wrap the components in a scrollable container.
    ScrollPanel scrollable = new ScrollPanel();
    final Pager<C> pager = createPager(listView);
    if (pager != null) {
      assert (pager instanceof Widget) : "createPager() must return a widget";
      FlowPanel flowPanel = new FlowPanel();
      flowPanel.add((Widget) listView);
      flowPanel.add((Widget) pager);
      scrollable.setWidget(flowPanel);
    } else {
      scrollable.setWidget((Widget) listView);
    }
    scrollable.setStyleName(style.column());
View Full Code Here

        selections.addDoubleClickHandler(this);
        options.setVisibleItemCount(VISIBLE_COUNT);
        selections.setVisibleItemCount(VISIBLE_COUNT);
        options.setStyleName(CLASSNAME + "-options");
        selections.setStyleName(CLASSNAME + "-selections");
        buttons = new FlowPanel();
        buttons.setStyleName(CLASSNAME + "-buttons");
        add = new VButton();
        add.setText(">>");
        add.addClickHandler(this);
        remove = new VButton();
View Full Code Here

            nodeCaptionSpan = DOM.createSpan();
            DOM.appendChild(getElement(), nodeCaptionDiv);
            DOM.appendChild(nodeCaptionDiv, wrapper);
            DOM.appendChild(wrapper, nodeCaptionSpan);

            childNodeContainer = new FlowPanel();
            childNodeContainer.setStyleName(CLASSNAME + "-children");
            setWidget(childNodeContainer);
        }
View Full Code Here

        error(e.getMessage());
        GWT.log(e.getMessage(), e);
    }

    public void init() {
        panel = new FlowPanel();
        if (!quietMode) {
            DOM.appendChild(getContainerElement(), caption);
            setWidget(panel);
            caption.setClassName("v-debug-console-caption");
            setStyleName("v-debug-console");
            DOM.setStyleAttribute(getElement(), "zIndex", 20000 + "");
            DOM.setStyleAttribute(getElement(), "overflow", "hidden");

            sinkEvents(Event.ONDBLCLICK);

            sinkEvents(Event.MOUSEEVENTS);

            panel.setStyleName("v-debug-console-content");

            caption.setInnerHTML("Debug window");
            caption.setTitle(help);

            show();
            minimize();

            actions = new HorizontalPanel();
            actions.add(clear);
            actions.add(restart);
            actions.add(forceLayout);
            actions.add(analyzeLayout);

            panel.add(actions);

            panel.add(new HTML("<i>" + help + "</i>"));

            clear.addClickHandler(new ClickHandler() {
                public void onClick(ClickEvent event) {
                    int width = panel.getOffsetWidth();
                    int height = panel.getOffsetHeight();
                    panel = new FlowPanel();
                    panel.setPixelSize(width, height);
                    panel.setStyleName("v-debug-console-content");
                    panel.add(actions);
                    setWidget(panel);
                }
View Full Code Here

      new PaddingTest()
    }, {
      new SlowBrowserTest()
    }};
   
    FlowPanel controls = new FlowPanel();
    controls.add(new Button("stop", new ClickHandler() {
      @Override
      public void onClick(ClickEvent arg0) {
        if (cometTest != null) {
          cometTest.stop();
          cometTest = null;
        }
        allX = -1;
      }
    }));
    controls.add(new Button("clear", new ClickHandler() {
      @Override
      public void onClick(ClickEvent arg0) {
        messages.setHTML("");
      }
    }));
    controls.add(new Button("all", new ClickHandler() {
      @Override
      public void onClick(ClickEvent e) {
        runAll();
      }
    }));
    RootPanel.get().add(controls);
   
    for (CometTest[] typeTests : tests) {
      controls = new FlowPanel();
      for (CometTest t : typeTests) {
        final CometTest test = t;
        controls.add(new Button(test.name, new ClickHandler() {
          @Override
          public void onClick(ClickEvent e) {
            if (cometTest != null) {
              cometTest.stop();
            }
View Full Code Here

        // assume they are not logged in
        showLogonDialog();
      }
    });
   
    FlowPanel controls = new FlowPanel();
    final ListBox status = new ListBox();
    for (Status s : Status.values()) {
      status.addItem(s.name());
    }
    status.addChangeHandler(new ChangeHandler() {
      @Override
      public void onChange(ChangeEvent event) {
        setStatus(Status.values()[status.getSelectedIndex()]);
      }
    });
   
    final TextBox input = new TextBox();
    Button send = new Button("Send", new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        sendMessage(input.getValue());
      }
    });
    Button logout = new Button("Logout", new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        logout();
      }
    });
   
    controls.add(status);
    controls.add(input);
    controls.add(send);
    controls.add(logout);
   
    DockPanel dockPanel = new DockPanel();
    messages = new HTML();
    scrollPanel = new ScrollPanel();
    scrollPanel.setHeight("250px");
View Full Code Here

    if (clients.contains(name))
      return;

    // HorizontalPanel customerRow = new HorizontalPanel();
    Label nameLabel = new Label(name);
    final FlowPanel cupArray = new FlowPanel();

    nameLabel.setWidth("100px");

    // create a listener for removing coffee icon to the column
    ClickHandler removeButtonListener = new ClickHandler() {
      public void onClick(ClickEvent event) {
        int lastCupID = cupArray.getWidgetCount() - 1;
        if (lastCupID > -1)
          cupArray.clear();
      }
    };

    PushButton removeButton = new PushButton(coffeeImages.removeIcon()
        .createImage(), removeButtonListener);

    // Define the oracle that finds drink suggestions
    final MultiWordSuggestOracle oracle = new MultiWordSuggestOracle();
    oracle.add("Latte");
    oracle.add("Moccachino");
    oracle.add("Black Coffee + Sugar 026");
    oracle.add("Black Coffee - Sugar");

    final SuggestBox box = new SuggestBox(oracle);
    // create a listener for adding coffee icon to the column
    SelectionHandler<Suggestion> addListener = new SelectionHandler<Suggestion>() {
      public void onSelection(SelectionEvent<Suggestion> event) {
        if (cupArray.getWidgetCount() == 4) {
          Window.alert("Easy Tiger!");
          box.setText("");
          return;
        }
        cupArray.add(coffeeImages.cupIcon().createImage());
        cupArray.getElement().setTitle(box.getText());
        box.setText("");
      }
    };
    box.addSelectionHandler(addListener);
View Full Code Here

  
  ClickHandler _leftButtonClickHandler;
  ClickHandler _rightButtonClickHandler;
 
    public HeaderPanel() {
      FlowPanel container = new FlowPanel();
      container.add(new SimplePanel())//left button placeholder
      container.add(new FlowPanel());    //contents
      container.add(new SimplePanel())//right button placeholder
        initWidget(container);
        setStyleName("HeaderPanel");
    }
View Full Code Here

        setStyleName("HeaderPanel");
    }
   
    @Override
    public void add(Widget w) {
      FlowPanel contents = ((FlowPanel)((FlowPanel)getWidget()).getWidget(1));
      contents.add(w);
    }
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.FlowPanel

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.