Examples of CellPanel


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

//    );
    row++;

   
    if ( INCLUDE_RDF ) {
      CellPanel resultPanel = new VerticalPanel();
      textArea.setReadOnly(true);
      textArea.setSize("400px", "100px");

      panel.getFlexCellFormatter().setColSpan(row, 0, 2);
      panel.setWidget(row, 0, resultPanel);

      DecoratorPanel decPanel = new DecoratorPanel();
      decPanel.setWidget(textArea);
      resultPanel.add(decPanel);
      row++;
    }

    return panel;
  }
View Full Code Here

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

    metadataPanel = new MetadataPanel(this, !readOnly);
    mdDisclosure.setContent(metadataPanel);

    dataPanel = new DataPanel(readOnly);
   
    CellPanel panel = new VerticalPanel();
    panel.setSpacing(5);
   
    headerPanel = new HeaderPanel();
   
    panel.add(headerPanel.getWidget());
    panel.add(mdDisclosure);
    panel.add(dataDisclosure);
   
    enable(!readOnly);
   
      container.add(panel);
     
View Full Code Here

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

  public NotFoundUriPanel(String uri, boolean isUrl) {
    super();
   
    setSpacing(20);
   
    CellPanel pan = new VerticalPanel();
    DecoratorPanel decPanel = new DecoratorPanel();
    decPanel.setWidget(pan);
    add(decPanel);
   
    String html = uri+ ": <font color=\"red\">URI not found in the registry.</font>";
   
    if ( isUrl ) {
        html += "</br/><br/> " +
            "<a target=\"_blank\" href=\"" +uri+ "\">Click here</a> " +
            "to open the link directly.";
    }
   
    pan.setSpacing(20);
    pan.add(new HTML(html));
  }
View Full Code Here

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

        public void onChange(Widget sender) {
          formChanged();
        }
      };
     
      CellPanel buttons = createButtons();
      panel.getFlexCellFormatter().setColSpan(row, 0, 2);
      panel.setWidget(row, 0, buttons);
      panel.getFlexCellFormatter().setAlignment(row, 0,
          HasHorizontalAlignment.ALIGN_RIGHT, HasVerticalAlignment.ALIGN_MIDDLE
      );
View Full Code Here

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

    return panel;
  }
 
  private CellPanel createButtons() {
    CellPanel panel = new HorizontalPanel();
    panel.setSpacing(2);
    exampleButton.setTitle("Fills in fields in this section with example values");
    panel.add(exampleButton);
   
    resetButton.setTitle("Resets the fields in this section");
    panel.add(resetButton);
   
    return panel;
  }
View Full Code Here

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

    reportPanel.add(detailsLabel);
    reportTable = createReportTable();
    // reportPanel.add( reportTable );

    topPanel.add(summariesPanel);
    CellPanel spacerPanel = new HorizontalPanel();
    spacerPanel.setSpacing(10);
    spacerPanel.add(new Label());
    topPanel.add(spacerPanel);
    topPanel.add(reportPanel);
    final RootPanel root = RootPanel.get();

    root.add(topPanel);
View Full Code Here

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

      VerticalPanel verticalPanel = new VerticalPanel();
          
      // if we have an extra widget then enclose it within a horizontal
      // panel with it on the left and the options on the right
      HorizontalPanel topPanel = new HorizontalPanel();
      CellPanel optionsPanel = null;
      HorizontalPanel widthAndHeightPanel = null;
      if (extraWidget != null)
      {
         topPanel.setWidth("100%");
        
         topPanel.add(extraWidget);
         topPanel.setCellHorizontalAlignment(extraWidget,
                                             HasHorizontalAlignment.ALIGN_LEFT);
        
         optionsPanel = new VerticalPanel();
         optionsPanel.setStylePrimaryName(
                                    resources.styles().verticalSizeOptions());
         optionsPanel.setSpacing(0);
         topPanel.add(optionsPanel);
         topPanel.setCellHorizontalAlignment(
                                       optionsPanel,
                                       HasHorizontalAlignment.ALIGN_RIGHT);
        
         widthAndHeightPanel = new HorizontalPanel();
         widthAndHeightPanel.setStylePrimaryName(
                                    resources.styles().widthAndHeightEntry());
         configureHorizontalOptionsPanel(widthAndHeightPanel);
         optionsPanel.add(widthAndHeightPanel);
      }
      else
      {
         optionsPanel = topPanel ;
         optionsPanel.setStylePrimaryName(
                                 resources.styles().horizontalSizeOptions());
         widthAndHeightPanel = topPanel;
         configureHorizontalOptionsPanel(topPanel)
      }
         
      // image width
      widthAndHeightPanel.add(createImageOptionLabel("Width:"));
      widthTextBox_ = createImageSizeTextBox();
      widthTextBox_.addChangeHandler(new ChangeHandler() {
         @Override
         public void onChange(ChangeEvent event)
         {
            // screen out programmatic sets
            if (settingDimenensionInProgress_)
               return;
           
            // enforce min size
            int width = constrainWidth(getImageWidth());
          
            // preserve aspect ratio if requested
            if (getKeepRatio())
            { 
               double ratio = (double)lastHeight_ / (double)lastWidth_;
               int height = constrainHeight((int) (ratio * (double)width));
               setHeightTextBox(height);
            }
 
            // set width
            setWidthTextBox(width);
         }
        
      });
      widthAndHeightPanel.add(widthTextBox_);
    
      // image height
      widthAndHeightPanel.add(new HTML("&nbsp;&nbsp;"));
      widthAndHeightPanel.add(createImageOptionLabel("Height:"));
      heightTextBox_ = createImageSizeTextBox();
      heightTextBox_.addChangeHandler(new ChangeHandler() {
         @Override
         public void onChange(ChangeEvent event)
         {
            // screen out programmatic sets
            if (settingDimenensionInProgress_)
               return;
           
            // enforce min size
            int height = constrainHeight(getImageHeight());
           
            // preserve aspect ratio if requested
            if (getKeepRatio())
            {
               double ratio = (double)lastWidth_ / (double)lastHeight_;
               int width = constrainWidth((int) (ratio * (double)height));
               setWidthTextBox(width);
            }
          
            // always set height
            setHeightTextBox(height);
         }
        
      });
      widthAndHeightPanel.add(heightTextBox_);
     
      // add width and height panel to options panel container if necessary
      if (widthAndHeightPanel != optionsPanel)
         optionsPanel.add(widthAndHeightPanel);
 
      // lock ratio check box
      keepRatioCheckBox_ = new CheckBox();
      keepRatioCheckBox_.setStylePrimaryName(
                           resources.styles().maintainAspectRatioCheckBox());
      keepRatioCheckBox_.setValue(keepRatio);
      keepRatioCheckBox_.setText("Maintain aspect ratio");
      optionsPanel.add(keepRatioCheckBox_);
     
      // image and sizer in layout panel (create now so we can call
      // setSize in update button click handler)
      previewPanel_ = new LayoutPanel();
    
     
      // update button
      ThemedButton updateButton = new ThemedButton("Update Preview",
                                                    new ClickHandler(){
         public void onClick(ClickEvent event)
         {
            updatePreview();
         }
      });
      updateButton.setStylePrimaryName(
                                 resources.styles().updateImageSizeButton());
      optionsPanel.add(updateButton);

      // add top panel
      verticalPanel.add(topPanel);

      // previewer
View Full Code Here

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

    reportPanel.add(detailsLabel);
    reportTable = createReportTable();
    // reportPanel.add( reportTable );

    topPanel.add(summariesPanel);
    CellPanel spacerPanel = new HorizontalPanel();
    spacerPanel.setSpacing(10);
    spacerPanel.add(new Label());
    topPanel.add(spacerPanel);
    topPanel.add(reportPanel);
    final RootPanel root = RootPanel.get();

    root.add(topPanel);
View Full Code Here

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

  }

  @Test
  public void testPanels() throws Exception {
    invokeAllAccessibleMethods(new AbsolutePanel() {});
    invokeAllAccessibleMethods(new CellPanel() {});
    invokeAllAccessibleMethods(new ComplexPanel() {});
    invokeAllAccessibleMethods(new DeckLayoutPanel() {});
    invokeAllAccessibleMethods(new DeckPanel() {});
    invokeAllAccessibleMethods(new DecoratorPanel() {});
    invokeAllAccessibleMethods(new DockLayoutPanel(Unit.PX) {});
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.