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

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


   
    widget.setWidth("600px");
    widget.setHorizontalAlignment(ALIGN_CENTER);
   
    container.setSpacing(4);
    DecoratorPanel decPanel = new DecoratorPanel();
      decPanel.setWidget(container);
      widget.add(decPanel);

      container.add(createForm());
     
      statusLabel.setHeight("20px");
View Full Code Here


    public static Panel createHtmlPre(String w, String h, String str, int fontSize) {
    final HTML contents = OrrUtil.createHtml("<pre>" + str + "</pre>", 10);
    ScrollPanel scroller = new ScrollPanel(contents);
      scroller.setSize(w, h);

    DecoratorPanel decPanel = new DecoratorPanel();
      decPanel.setWidget(scroller);
      return decPanel;
    }
View Full Code Here

    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 ) {
View Full Code Here

  private HTML statusLabel = new HTML("");
 
 
  public LoginPanel() {
    container.setSpacing(4);
    DecoratorPanel decPanel = new DecoratorPanel();
      decPanel.setWidget(container);
      widget.add(decPanel);

      container.add(createForm());
     
      statusLabel.setHeight("20px");
View Full Code Here

  public LeftTabPanel() {
    initWidget(main);
    main.add(left);
    left.add(leftTree);
    DecoratorPanel decorator = new DecoratorPanel();
    Style decoratorStyle = decorator.getElement().getStyle();
    decoratorStyle.setPropertyPx("marginLeft", 15);
    Style rightStyle = right.getElement().getStyle();
    rightStyle.setPropertyPx("margin", 5);
    decorator.add(right);

    main.add(decorator);
    leftTree.addSelectionHandler(new SelectionHandler<TreeItem>() {
      public void onSelection(SelectionEvent<TreeItem> event) {
        String name = event.getSelectedItem().getText();
View Full Code Here

            + "The drop down list below allows you to select a scenario that "
            + "demonstrates a particular capability of the Maps support."));

    outerPanel.setWidget(1, 0, innerPanel);

    DecoratorPanel decorator = new DecoratorPanel();
    decorator.add(outerPanel);

    RootPanel.get("hm-map").add(decorator);

    // Show the initial screen.
    String initToken = History.getToken();
View Full Code Here

    RootPanel.get().add(vp);
  }

  private Widget buildControlPanel() {
    VerticalPanel outerPanel = new VerticalPanel();
    DecoratorPanel tableWrapper = new DecoratorPanel();
    FlexTable resultTable = new FlexTable();

    numDigitsListBox.addItem("1,000", "1000");
    numDigitsListBox.addItem("5,000", "5000");
    numDigitsListBox.addItem("10,000", "10000");
    numDigitsListBox.addItem("20,000", "20000");
    numDigitsListBox.addItem("100,000", "100000");
    buildControlPanelRow(resultTable, "Number of Digits to compute: ",
        numDigitsListBox);

    buildControlPanelRow(resultTable, "Execute calculation using:", syncCalc);
    syncCalc.setValue(true);
    buildControlPanelRow(resultTable, "", asyncCalc);

    startStopButton.addClickHandler(new ClickHandler() {

      public void onClick(ClickEvent event) {
        if (calculationInProgress) {
          statusLabel.setText(statusLabel.getText() + "...Cancelled");
          stopCalculation();
          return;
        }
        htmlResults.setText("");
        statusLabel.setText("Starting calculation");
        calculationInProgress = true;
        startStopButton.setEnabled(false);
        startStopButton.setText("Working...");

        startTime = System.currentTimeMillis();
        final int numDigits = Integer.valueOf(numDigitsListBox.getValue(numDigitsListBox.getSelectedIndex()));
        if (syncCalc.getValue()) {
          /*
           * A DeferredCommand is used here so that the previous updates to the
           * user interface will appear. The synchronous computation will block
           * until the calculation is complete, freezing the user interface.
           */
          DeferredCommand.addCommand(new Command() {
            public void execute() {
              doSyncCalculation(numDigits);
            }
          });
        } else {
          doAsyncCalculation(numDigits);
        }
      }
    });

    buildControlPanelRow(resultTable, "", startStopButton);
    tableWrapper.setWidget(resultTable);

    // Position the Animation so that it looks centered.
    Widget toy = new AnimationToy();
    AbsolutePanel toyWrapper = new AbsolutePanel();
    toyWrapper.setSize("450px", "210px");
View Full Code Here

    dataTreePanel.getElement().getStyle().setMarginBottom(10, Unit.PX);
    dataTreePanel.add(dataTree);
    leftPanel.add(dataTreePanel);
   
    FetchDataWidget fetchDataWidget = new FetchDataWidget();
    DecoratorPanel decorPanel2 = new DecoratorPanel();
    decorPanel2.setWidth("90%");
    decorPanel2.add(fetchDataWidget);
    leftPanel.add(decorPanel2);
   
    XBRLContentWidget contentWidget = new XBRLContentWidget();
    contentPanel.add(contentWidget);
  
View Full Code Here

public class RicordoView extends Composite{
  protected final VerticalPanel contentDetailsPanel;
 
  public RicordoView(String title){
    DecoratorPanel contentTableDecorator = new DecoratorPanel();
    initWidget(contentTableDecorator);
    //contentTableDecorator.setWidth("100%");
    //contentTableDecorator.setWidth("20cm");
   
      contentDetailsPanel = new VerticalPanel();
      contentDetailsPanel.setWidth("100%");
     
    VerticalPanel mainContentPanel = new VerticalPanel();
    mainContentPanel.setStyleName("pannel-Border");
    mainContentPanel.setWidth("100%");

  //    contentDetailsPanel.add(); 
     
      mainContentPanel.add(new TitlePanel(title));
      mainContentPanel.add(contentDetailsPanel);
      mainContentPanel.add(new ContactsPanel());
     
    contentTableDecorator.add(mainContentPanel);

  }
View Full Code Here

        } );

        layoutA.setWidget( 3,
                           1,
                           continueButton );
        DecoratorPanel decPanel = new DecoratorPanel();
        decPanel.setWidget( layoutA );
        return decPanel;
    }
View Full Code Here

TOP

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

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.