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

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


      // stick the vertices for this roadDetail in the vertexHash
      vertexHash.put(roadDetails.getId(), roadDetails.getVertices());
     
      GWT.log(roadDetails.getName());
     
      CheckBox cb = new CheckBox();
      cb.setFormValue(roadDetails.getId()); //store the id in the checkbox value
      checkboxes.add(cb); // keep track for selecting all|none to delete
      cb.setStyleName(style.checkbox());
      // if a checkbox is checked, deselect the master checkbox
      cb.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
          uncheckMasterCheckBox();
        }
      });
View Full Code Here


 
  private void _deleteRows() {
    final List<Mapping> newMappings = new ArrayList<Mapping>();
    for ( int i = 0, cnt = mappingAssocs.size(); i< cnt; i++ ) {
      MappingAssoc mappingAssoc = mappingAssocs.get(i);
      CheckBox cb = mappingAssoc.cb;
      if ( ! cb.isChecked() ) {
        newMappings.add(mappingAssoc.mapping);
      }
    }
    if ( newMappings.size() < mappingAssocs.size() ) {
      DeferredCommand.addCommand(new Command() {
View Full Code Here

   
    MappingAssoc(Mapping mapping, boolean readOnly) {
      super();
      this.mapping = mapping;
      if ( ! readOnly ) {
        cb = new CheckBox();
      }
    }
View Full Code Here

        resourceTypeRelatedField.setText(option.getUri());
      }
    };
   
    if ( includeIsMapCheck ) {
      resourceTypeIsMap = new CheckBox("Check here if this is a mapping ontology");

      // update this checkbox according to contents in the text field:
      resourceTypeFieldWithChoose.getTextBox().addKeyboardListener(new KeyboardListenerAdapter() {
        public void onKeyUp(Widget sender, char keyCode, int modifiers) {
          String value = resourceTypeFieldWithChoose.getTextBox().getText().toLowerCase();
View Full Code Here

      upload = new FileUpload();
      upload.setTitle("The path to the ontology in your local system");
      upload.setWidth("300");
      upload.setName("ontologyFile");
     
      preserveOriginalBaseNamespace = new CheckBox("Preserve original base namespace");
      preserveOriginalBaseNamespace.setChecked(false);
    }
   
    clear();
   
View Full Code Here

     */
  @Override
  protected void buildForm() {
    content.setWidth("500px");
    image = new FileBox();
    centerHorizontal = new CheckBox("Center horizontal");
      centerHorizontal.setValue(true);
    insertAsFloat = new CheckBox("Insert as float");
      insertAsFloat.setValue(true);
      insertAsFloat.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
      @Override
      public void onValueChange(ValueChangeEvent<Boolean> event) {
        boolean value = event.getValue();
        for (int i=7; i<=10; i++) {
          content.getRowFormatter().setVisible(i, value);
        }
        center();
      }
      });
    caption = new TextBox();
    caption.setWidth("250px");
    label = new TextBox();
    label.setWidth("250px");
    herePosition = new CheckBox("Here");
    topPosition = new CheckBox("Top of the page");
      topPosition.setValue(true);
    bottomPosition = new CheckBox("Bottom of the page");
      bottomPosition.setValue(true);
    floatPosition = new CheckBox("Page of floats");
      floatPosition.setValue(true);
      FlexTable position = new FlexTable();
      position.setWidth("100%");
      position.insertRow(0);
      position.insertCell(0, 0);
View Full Code Here

    alignBottom = new RadioButton("alignment", "Align at bottom line");
    HorizontalPanel alignment = new HorizontalPanel();
    alignment.add(alignTop);
    alignment.add(alignCenter);
    alignment.add(alignBottom);
    centerHorizontal = new CheckBox("Center horizontal");
      centerHorizontal.setValue(true);
    insertAsFloat = new CheckBox("Insert as float");
      insertAsFloat.setValue(true);
      insertAsFloat.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
      @Override
      public void onValueChange(ValueChangeEvent<Boolean> event) {
        boolean value = event.getValue();
        for (int i=7; i<=10; i++) {
          content.getRowFormatter().setVisible(i, value);
        }
        center();
      }
      });
    caption = new TextBox();
    caption.setWidth("250px");
    label = new TextBox();
    label.setWidth("250px");
    herePosition = new CheckBox("Here");
    topPosition = new CheckBox("Top of the page");
      topPosition.setValue(true);
    bottomPosition = new CheckBox("Bottom of the page");
      bottomPosition.setValue(true);
    floatPosition = new CheckBox("Page of floats");
      floatPosition.setValue(true);
      FlexTable position = new FlexTable();
      position.setWidth("100%");
      position.insertRow(0);
      position.insertCell(0, 0);
View Full Code Here

          public void onValueChange(ValueChangeEvent<Boolean> event) {
          content.getRowFormatter().setVisible(2, event.getValue());
          }
      };
      addHeader("Automatic Saving");
      useAutoSave = new CheckBox("Automatically save current document on a recurring basis.");
      useAutoSave.setValue(true);
      useAutoSave.addValueChangeHandler(changeHandler);
      addField(useAutoSave);
      autoSaveInterval = new TextBox();
      autoSaveInterval.setWidth("60px");
View Full Code Here

    this.panel.setSpacing(4);
    if (checkable) {
    if (uniqueSelection) {
      this.checkBox = new RadioButton("et", label);
    } else {
      this.checkBox = new CheckBox(label);
    }
    this.panel.add(this.checkBox);
    } else {
    if (starHandler != null) {
          ToggleButton star = new ToggleButton(
View Full Code Here

      advancedOptions.setCellSpacing(6);
     
      final TextBox hostBox = new TextBox();
      final TextBox portBox = new TextBox();
      final TextBox domainBox = new TextBox();
      final CheckBox authCheck = new CheckBox("SASL");
      authCheck.setChecked(false);
     
      hostBox.setEnabled(false);
    portBox.setEnabled(false);
    domainBox.setEnabled(false);
    authCheck.setEnabled(false);
           
      final CheckBox serverConfig = new CheckBox(constants.defineServerConfig());
      advancedOptions.setWidget(0, 0, serverConfig);
      serverConfig.addClickListener(new ClickListener()
      {
      public void onClick(Widget sender) {
        if(serverConfig.isChecked())
        {
          hostBox.setEnabled(true);
          portBox.setEnabled(true);
          domainBox.setEnabled(true);
          authCheck.setEnabled(true);
        }
        else
        {
          hostBox.setEnabled(false);
          portBox.setEnabled(false);
          domainBox.setEnabled(false);
          authCheck.setEnabled(false);
        }
       
      }
       
      });
     
      serverConfig.setChecked(false);
     
      advancedOptions.setHTML(1, 0, constants.domain());
      advancedOptions.setWidget(1, 1, hostBox);
     
      advancedOptions.setHTML(2, 0, constants.host());
      advancedOptions.setWidget(2, 1, portBox);
     
      advancedOptions.setHTML(3, 0, constants.port());
      advancedOptions.setWidget(3, 1, domainBox);
     
      advancedOptions.setWidget(4, 0, authCheck);

      // Add advanced options to form in a disclosure panel
      DisclosurePanel advancedDisclosure = new DisclosurePanel(
          constants.moreOptions());
      advancedDisclosure.setAnimationEnabled(true);
      advancedDisclosure.ensureDebugId("cwDisclosurePanel");
      advancedDisclosure.setContent(advancedOptions);
      layout.setWidget(2, 0, advancedDisclosure);
     
      Button loginButton = new Button(constants.login());
     
      layout.setWidget(3, 0,loginButton);
      loginButton.addSelectionListener(new SelectionListener<ButtonEvent>()
      {
      public void componentSelected(ButtonEvent ce)
      {
        String user = userBox.getText();
          String pass = passBox.getText();
          String domain = domainBox.getText();
          String host = domainBox.getText();
          boolean sasl = authCheck.isChecked();
          if(serverConfig.isChecked())
          {
            int port = Integer.parseInt(portBox.getText());
            //JabberApp.instance().onLogin(host, port, domain, sasl, user, pass);
          }
          else
View Full Code Here

TOP

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

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.