Package com.googlecode.mgwt.ui.client.widget.panel.flex

Examples of com.googlecode.mgwt.ui.client.widget.panel.flex.FlexPanel


    this.cellList = cellList;
    this.css = appearance.groupCss();

    css.ensureInjected();
    main = new FlexPanel();
    initWidget(main);

    main.addStyleName(css.groupingHeaderList());

    currentPage = 0;
View Full Code Here


   *
   * @param css the css class to use
   */
  public OptionsDialog(DialogAppearance appearance) {
    slideUpPanel = new SlideUpPanel();
    container = new FlexPanel();
    container.addStyleName(appearance.dialogCss().getBottomPanel());
    slideUpPanel.add(container);
  }
View Full Code Here

   */
  public Carousel(CarouselAppearance appearance) {

    this.appearance = appearance;
    childToHolder = new HashMap<Widget, Widget>();
    main = new FlexPanel();
    initWidget(main);

    main.addStyleName(this.appearance.css().carousel());

    scrollPanel = new ScrollPanel();
View Full Code Here

    public CarouselIndicatorContainer(CarouselCss css, int numberOfPages) {
      if (numberOfPages < 0) {
        throw new IllegalArgumentException();
      }
      this.css = css;
      main = new FlexPanel();
      initWidget(main);
      main.setOrientation(Orientation.HORIZONTAL);
      main.setJustification(Justification.CENTER);

      main.addStyleName(this.css.indicatorMain());

      FlexPanel container = new FlexPanel();
      container.addStyleName(this.css.indicatorContainer());
      container.setOrientation(Orientation.HORIZONTAL);
      main.add(container);

      indicators = new ArrayList<Carousel.CarouselIndicator>(numberOfPages);
      selectedIndex = 0;

      for (int i = 0; i < numberOfPages; i++) {
        CarouselIndicator indicator = new CarouselIndicator(css);
        indicators.add(indicator);
        container.add(indicator);
      }

      setSelectedIndex(selectedIndex);
    }
View Full Code Here

    public CarouselIndicatorContainer(CarouselCss css, int numberOfPages) {
      if (numberOfPages < 0) {
        throw new IllegalArgumentException();
      }
      this.css = css;
      main = new FlexPanel();
      initWidget(main);
      main.setOrientation(Orientation.HORIZONTAL);
      main.setJustification(Justification.CENTER);

      main.addStyleName(this.css.indicatorMain());

      FlexPanel container = new FlexPanel();
      container.addStyleName(this.css.indicatorContainer());
      container.setOrientation(Orientation.HORIZONTAL);
      main.add(container);

      indicators = new ArrayList<Carousel.CarouselIndicator>(numberOfPages);
      selectedIndex = 0;

      for (int i = 0; i < numberOfPages; i++) {
        CarouselIndicator indicator = new CarouselIndicator(css);
        indicators.add(indicator);
        container.add(indicator);
      }

      setSelectedIndex(selectedIndex);
    }
View Full Code Here



    round = new Panel();

    FlexPanel flexPanel = new FlexPanel();
    flexPanel.setOrientation(Orientation.VERTICAL);
    flexPanel.setAlignment(Alignment.CENTER);
    round.add(flexPanel);
    round.setRound(true);

    flexPanel.add(new HTML("mgwt"));
    flexPanel.add(new HTML("Version 2.0.0-SNAPSHOT"));
    flexPanel.add(new HTML("Built by Daniel Kurka, <a target='_blank' href='http://www.twitter.com/dankurka'>@dankurka</a> on Twitter"));

    flexPanel.add(new HTML("Using GWT to build mobile apps"));

    flexPanel.add(new HTML("<br/><br/><a target='_blank' href='http://www.m-gwt.com'>www.m-gwt.com</a><br/><br/>"));

    if (MGWT.getFormFactor().isPhone()) {
      button = new Button("back");

      flexPanel.add(button);
    }

    scrollPanel.setWidget(round);
    scrollPanel.setScrollingEnabledX(false);
View Full Code Here

    this.cellList = cellList;
    this.css = appearance.groupCss();

    css.ensureInjected();
    main = new FlexPanel();
    initWidget(main);

    main.addStyleName(css.groupingHeaderList());

    currentPage = 0;
View Full Code Here

    public CarouselIndicatorContainer(CarouselCss css, int numberOfPages) {
      if (numberOfPages < 0) {
        throw new IllegalArgumentException();
      }
      this.css = css;
      main = new FlexPanel();
      initWidget(main);
      main.setOrientation(Orientation.HORIZONTAL);
      main.setJustification(Justification.CENTER);

      main.addStyleName(this.css.indicatorMain());

      FlexPanel container = new FlexPanel();
      container.addStyleName(this.css.indicatorContainer());
      container.setOrientation(Orientation.HORIZONTAL);
      main.add(container);

      indicators = new ArrayList<Carousel.CarouselIndicator>(numberOfPages);
      selectedIndex = 0;

      for (int i = 0; i < numberOfPages; i++) {
        CarouselIndicator indicator = new CarouselIndicator(css);
        indicators.add(indicator);
        container.add(indicator);
      }

      setSelectedIndex(selectedIndex);
    }
View Full Code Here

    this(DEFAULT_APPEARANCE);
  }

  public OptionsDialog(OptionsDialogAppearance appearance) {
    slideUpPanel = new SlideUpDialogOverlay(appearance);
    container = new FlexPanel();
    container.addStyleName(appearance.css().optionsDialog());
    slideUpPanel.add(container);
  }
View Full Code Here

TOP

Related Classes of com.googlecode.mgwt.ui.client.widget.panel.flex.FlexPanel

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.