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

Examples of com.google.gwt.user.client.ui.SimplePanel.addStyleName()


  public RightPieChart(Resources resources) {
    Css css = resources.rightPieChartCss();
    outerPanel.addNorth(pieChart, LatencyDashboardChart.RIGHT_CHART_HEIGHT);
    SimplePanel wrapper = new SimplePanel();
    wrapper.addStyleName(css.legendWrapper());
    wrapper.add(legend);
    outerPanel.add(wrapper);
    initWidget(outerPanel);
  }
View Full Code Here


  public RightGaugeChart(RightPieChart.Resources resources, Gauge.Options gaugeOptions) {
    RightPieChart.Css css = resources.rightPieChartCss();
    SimplePanel gaugeWrapper = new SimplePanel();
    // Center the gauge.
    gaugeWrapper.addStyleName(css.gaugeWrapper());
    gaugeWrapper.add(gaugeChart);
    gaugeOptions.setHeight(LatencyDashboardChart.RIGHT_CHART_HEIGHT);
    outerPanel.addNorth(gaugeWrapper, LatencyDashboardChart.RIGHT_CHART_HEIGHT);
   
    SimplePanel wrapper = new SimplePanel();
View Full Code Here

    gaugeWrapper.add(gaugeChart);
    gaugeOptions.setHeight(LatencyDashboardChart.RIGHT_CHART_HEIGHT);
    outerPanel.addNorth(gaugeWrapper, LatencyDashboardChart.RIGHT_CHART_HEIGHT);
   
    SimplePanel wrapper = new SimplePanel();
    wrapper.addStyleName(css.legendWrapper());
    wrapper.add(legend);
    outerPanel.add(wrapper);
    initWidget(outerPanel);
    this.gaugeOptions = gaugeOptions;
  }
View Full Code Here

        Constants constants = ((Constants) GWT.create(Constants.class));
        sp.add(new SmallLabel(" " + constants.AddXToListY(gca.factName, gca.globalName)));

        if (this.readOnly) {
            this.layout.addStyleName("editor-disabled-widget");
            sp.addStyleName("editor-disabled-widget");
        }

        layout.setWidget(0, 0, sp);
        initWidget(layout);
View Full Code Here

   protected Widget createMainWidget()
   {
      Styles styles = RESOURCES.styles();
     
      SimplePanel mainPanel = new SimplePanel();
      mainPanel.addStyleName(styles.mainWidget());
     
      VerticalPanel verticalPanel = new VerticalPanel();
 
      HorizontalPanel headerPanel = new HorizontalPanel();
      headerPanel.addStyleName(styles.headerPanel());
View Full Code Here

     
      Widget editorWidget = editor_.getWidget();
      editorWidget.setSize(aceWidth, aceHeight);
    
      SimplePanel panel = new SimplePanel();
      panel.addStyleName(RES.styles().editorFrame());
      panel.setSize(aceWidth, aceHeight);
      panel.setWidget(editor_.getWidget());
      verticalPanel.add(panel);
     
      return verticalPanel;
View Full Code Here

        sp.add( new SmallLabel( " " + Constants.INSTANCE.AddXToListY( gca.factName,
                                                                           gca.globalName ) ) );

        if ( this.readOnly ) {
            this.layout.addStyleName( "editor-disabled-widget" );
            sp.addStyleName( "editor-disabled-widget" );
        }

        layout.setWidget( 0,
                          0,
                          sp );
View Full Code Here

        actionBarPanel.setWidget(0, 0, header);
        actionBarPanel.getFlexCellFormatter().setColSpan(0, 0, 2);

        SimplePanel contentPanel = new SimplePanel();
        contentPanel.add(panel.getContentWidget());
        contentPanel.addStyleName(CSS_ACTIONBAR_PANEL_CONTENT);
        actionBarPanel.setWidget(1, 0, contentPanel);

        // TODO reactivate expanders once drop down menus are available
        // actionBarPanel.setWidget(1, 1, new Image(GWT.getModuleBaseURL()
        // + "images/expander-normal.png"));
View Full Code Here

        actionBarPanel.setWidget(0, 0, header);
        actionBarPanel.getFlexCellFormatter().setColSpan(0, 0, 2);

        SimplePanel contentPanel = new SimplePanel();
        contentPanel.add(panel.getContentWidget());
        contentPanel.addStyleName(CSS_ACTIONBAR_PANEL_CONTENT);
        actionBarPanel.setWidget(1, 0, contentPanel);

        // TODO reactivate expanders once drop down menus are available
        // actionBarPanel.setWidget(1, 1, new Image(GWT.getModuleBaseURL()
        // + "images/expander-normal.png"));
View Full Code Here

    // appropriate styling)
    fieldsTextBox.setText("");

    // All inputs must be wrapped in a container to simplify the CSS.
    Widget container = new SimplePanel(fieldsTextBox);
    container.addStyleName(style.parameterInput());
    table.setWidget(row, 1, container);

    // Start adding the next cell which will have the description of this param,
    // and potentially a link to open the fields editor.
    HTMLPanel panel = new HTMLPanel("");
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.