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

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


   
    bodyHtml = new HTML();
//      bodyHtml.setWidth("700px");
   
    if ( useDecoratorPanel ) {
      CellPanel p = new VerticalPanel();
      DecoratorPanel decPanel = new DecoratorPanel();
      decPanel.setWidget(p);
      add(decPanel);
      if ( useScroller ) {
        scroller = new ScrollPanel(bodyHtml);
//        scroller.setSize("450px", "120px");
//        scroller.setWidth("450px");
        p.add(scroller);
      }
      else {
        p.add(decPanel);
      }
    }
    else if ( useScroller ) {
      scroller = new ScrollPanel(bodyHtml);
      add(scroller);
View Full Code Here


    }
      return true;
    }
 
  private CellPanel createButtons() {
    CellPanel panel = new HorizontalPanel();
    panel.setSpacing(2);

    closeButton = new PushButton("Close", new ClickListener() {
      public void onClick(Widget sender) {
        MyDialog.this.hide();
      }
    });
    panel.add(closeButton);

    return panel;
  }
View Full Code Here

    panel.setWidget(row, 0, new HTML("Click to verify availability: "));
    panel.getFlexCellFormatter().setAlignment(row, 0,
        HasHorizontalAlignment.ALIGN_RIGHT, HasVerticalAlignment.ALIGN_MIDDLE
    );

    CellPanel buttons = createButtons();
    panel.setWidget(row, 1, buttons);
    panel.getFlexCellFormatter().setAlignment(row, 1,
        HasHorizontalAlignment.ALIGN_LEFT, HasVerticalAlignment.ALIGN_MIDDLE
    );
    row++;
View Full Code Here

   
    return panel;
  }
 
  private CellPanel createButtons() {
    CellPanel panel = new HorizontalPanel();
    panel.setSpacing(2);
    checkButton.setTitle("Checks that the given fields can be used to create a new URI in the repository");
    panel.add(checkButton);
   
    return panel;
  }
View Full Code Here

      protected void updateAllNone(boolean selected) {
        selectAll(selected);
      }
    };

    CellPanel hp = new HorizontalPanel();
    add(hp);
//    hp.setSpacing(5); 
    hp.setStylePrimaryName("MappingsTable-header");
    hp.setWidth("100%");
   
    hp.add(selAllNonePanel);
    hp.add(status);
    hp.setCellHorizontalAlignment(status, ALIGN_LEFT);
   
   
    CellPanel p = new VerticalPanel();
   
    DecoratorPanel decPanel = new DecoratorPanel();
      decPanel.setWidget(p);
      add(decPanel);

      cbs = new ArrayList<CheckBox>();
     
      rowPanel = new VerticalPanel();
      rowPanel.setSpacing(1);
      rowPanel.setStylePrimaryName("SearchResultsTable");
      scroller = new ScrollPanel(rowPanel);
      scroller.setSize("500px", "300px");
    p.add(scroller);
   
  }
View Full Code Here

    row++;

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

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

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

    return panel;
  }
View Full Code Here

//    final SuggestBox box = new SuggestBox(oracle);
//    box.setWidth(width);
   
   
    CellPanel hp = new VerticalPanel();
    final MyDialog popup = new MyDialog(hp) {
      public boolean onKeyUpPreview(char key, int modifiers) {
        if ( key == KeyboardListener.KEY_ESCAPE ) {
          hide();
          return false;
        }
          return true;
        }
    };
    hp.add(new TLabel("Ontology URI:",
        "Select or enter the URL of the ontology you want to include in the list of working ontologies. " +
        "<br/>" +
        "As you type, URIs are displayed according to matching components in the " +
        "URI or the associated title."
    ));
   
//    hp.add(box);
//    box.addEventHandler(new SuggestionHandler() {
//      public void onSuggestionSelected(SuggestionEvent event) {
//        String suggestion = event.getSelectedSuggestion().getReplacementString();
//        RegisteredOntologyInfo ontologyInfo = suggestions.get(suggestion);
//        mainPanel.notifyWorkingOntologyAdded(OntologySelection.this, ontologyInfo, popup);
//      }
//    });
   
    final TextBox textBox = createTextBox(suggestions, listBox, popup);
    textBox.setWidth(width);
    hp.add(textBox);
   
//    // we use the star (*) to show the whole list of vocabs. If the user enters something
//    // different, then remove the star:
//    box.addKeyboardListener(new KeyboardListener() {
//      public void onKeyPress(Widget sender, char keyCode, int modifiers) {
//        // FIXME: if the user wants to use the down arrow to pick a suggestion after
//        // entering *, it cannot do it!
//        if ( keyCode != '*' && box.getText().trim().equals("*") ) {
//          box.setText("");
//        }
//      }
//      public void onKeyDown(Widget sender, char keyCode, int modifiers) {}
//     
//      public void onKeyUp(Widget sender, char keyCode, int modifiers) {
//        if ( keyCode == KeyboardListener.KEY_ENTER ) {
//          String selectedUri = box.getText().trim();
//          Orr.log("addVocabulary: ENTER: '" + selectedUri + "'");
//          if (selectedUri.length() > 0) {
//            if ( VineMain.containsWorkingUri(selectedUri) ) {
//              // ignore the Enter
//              return;
//            }
//            BaseOntologyInfo ontologyInfo = VineMain.getOntologyInfo(selectedUri);
//            if (ontologyInfo instanceof RegisteredOntologyInfo) {
//              // It is a registered ontology -- load it as a working one:
//              RegisteredOntologyInfo roi = (RegisteredOntologyInfo) ontologyInfo;
//              mainPanel.notifyWorkingOntologyAdded(OntologySelection.this, roi, popup);
//            }
//            else {
//              // try as an external ontology:
//              OntologySelection.this.mainPanel.addExternalOntology(selectedUri, popup);
//            }
//          }
//        }       
//      }
//    });

    popup.setText("Select an ontology");
//    hp.add(new HTML("Elements are displayed as you type. Enter * to see the full list."));

    listBox.setWidth(width);
    listBox.setVisibleItemCount(Math.min(listBox.getItemCount() + 2, 12));
    hp.add(listBox);

//    listBox.addChangeListener(new ChangeListener () {
//      public void onChange(Widget sender) {
//        String value = listBox.getValue(listBox.getSelectedIndex());
//        RegisteredOntologyInfo ontologyInfo = suggestions.get(value);
View Full Code Here

    );
    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

   
    dockPanel.add(tabPanel, DockPanel.NORTH);
      container.add(dockPanel, DockPanel.CENTER);
     
    for ( AttrGroup attrGroup: Orr.getMetadataBaseInfo().getAttrGroups() ) {
      CellPanel groupPanel = new MetadataGroupPanel(this, attrGroup, editing);
      tabPanel.add(groupPanel, attrGroup.getName());
    }
   
      tabPanel.selectTab(0);
      enable(false);
View Full Code Here

    vp.add(new HTML(
        "Select the separator character for your CSV formatted contents. "
        )
    );
   
    CellPanel separatorPanel = new SeparatorPanel() {
      public void onClick(Widget sender) {
        super.onClick(sender);
        textArea.setText(termTable.getCsv(null, getSelectedSeparator()));
      }
    };
View Full Code Here

TOP

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

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.