Package com.extjs.gxt.ui.client.widget

Examples of com.extjs.gxt.ui.client.widget.Html


        childPanel.fly((com.google.gwt.user.client.Element) messageElement).scrollIntoView(childPanel.getLayoutTarget().dom, true);
        return;
      }
    }
    String messageString = createMessage(userAlias,message,local).getString();
    Html messageHtml = new Html(messageString);
    addWidget(messageHtml);
    lastMessageNick = userAlias;
  }
View Full Code Here


        childPanel.fly((com.google.gwt.user.client.Element) messageElement).scrollIntoView(childPanel.getLayoutTarget().dom, true);
        return;
      }
    }
    String messageString = createMessage(userAlias,message,local).getString();
    Html messageHtml = new Html(messageString);
    addWidget(messageHtml);
    lastIsLocal = local;
  }
View Full Code Here

        } else {
          el().dom.appendChild(widget.getElement());
        }
      } else {
        text = new Html(config.getHeader());
        text.setTagName("span");
        text.render(el().dom);
      }

      el().dom.appendChild(img);
View Full Code Here

    Image img2 = new Image("./images/voir.png");
    img2.setTitle("Voir");
    if (user.getBadmin() != null && user.getBadmin() == true) {
        layoutcell.add(img);
    }
    layoutcell.add(new Html("   "));
    layoutcell.add(img1);
    layoutcell.add(new Html("   "));
    layoutcell.add(img2);
    layoutcell.add(new Html("   "));
    img2.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
      serviceRole.findRoleById(model.getId(), user.getId(), new AsyncCallback<RoleModel>() {
          @Override
View Full Code Here

            GuiUtil.gotoEcran(new FicheSTEcran(chantier, model.getId(), role, user));
            // bus.fireEvent(new LoadFichestEcranEvent(chantier,model));
          }
        });

        layoutcell.add(new Html(BUTTONS_SPACE));
        layoutcell.add(exportButton);
        layoutcell.add(new Html(BUTTONS_SPACE));
        layoutcell.add(viewButton);
        return layoutcell;
      }
    };
View Full Code Here

  layoutContainer.setBorders(false);

  LabelField lblfldNouveauxAdministrateur = new LabelField(messages.newAdmin());

  layoutContainer.add(lblfldNouveauxAdministrateur);
  layoutContainer.add(new Html("&nbsp"));
  txtAdmin = new TextField();

  txtAdmin.addKeyListener(new KeyListener() {

      @Override
      public void componentKeyUp(ComponentEvent event) {
    if (txtAdmin.getValue() != null && !txtAdmin.getValue().trim().isEmpty() && txtAdmin.getValue().toLowerCase().matches("\\b.{0,60}\\\\+.{1,60}")) {
        btnAjouter.setEnabled(true);
    } else {
        btnAjouter.setEnabled(false);

    }

      }
  });

  txtAdmin.setWidth("45%");

  txtAdmin.setToolTip("Hint:domain\\loginname");

  com.extjs.gxt.ui.client.widget.layout.ColumnData cd_txtfldNewTextfield = new com.extjs.gxt.ui.client.widget.layout.ColumnData();
  cd_txtfldNewTextfield.setWidth(0.65);
  layoutContainer.add(txtAdmin, cd_txtfldNewTextfield);
  txtAdmin.setFieldLabel("New TextField");
  Html space = new Html("&nbsp");
  Html space1 = new Html("&nbsp");
  layoutContainer.add(space);
  btnAjouter = new Button(messages.commonAdd());
  btnAjouter.setEnabled(false);
  SelectionListener<ButtonEvent> add = AddButtonEvent();
  btnAjouter.addSelectionListener(add);
View Full Code Here

  layoutContainer.setLayout(new ColumnLayout());
  layoutContainer.setBorders(false);
  layoutContainer.setAutoWidth(true);
  LabelField lblfldNouveauxAdministrateur = new LabelField("Nouveaux:");
  layoutContainer.add(lblfldNouveauxAdministrateur);
  layoutContainer.add(new Html("&nbsp"));
  txtChantier = new TextField();
  com.extjs.gxt.ui.client.widget.layout.ColumnData cd_txtChantier = new com.extjs.gxt.ui.client.widget.layout.ColumnData();
  cd_txtChantier.setWidth(0.85);
  layoutContainer.add(txtChantier, cd_txtChantier);
  txtChantier.setFieldLabel("New TextField");
  txtChantier.setWidth("80%");
  txtChantier.addKeyListener(new KeyListener() {

      @Override
      public void componentKeyUp(ComponentEvent event) {
    if (txtChantier.getValue() != null && !txtChantier.getValue().trim().isEmpty() && txtChantier.getValue().toLowerCase().matches("\\b.{0,60}\\\\+.{1,60}")) {
        btnAdd.setEnabled(true);
    } else {
        btnAdd.setEnabled(false);
    }

      }
  });

  txtChantier.setWidth("35%");

  txtChantier.setToolTip("Hint:domain\\loginname");

  SelectionListener<ButtonEvent> add = AddButtonEventGridRole();
  btnAdd = new Button("Ajouter");
  btnAdd.addSelectionListener(add);
  btnAdd.setEnabled(false);
  layoutContainer.add(new Html("&nbsp"));
  layoutContainer.add(btnAdd, new com.extjs.gxt.ui.client.widget.layout.ColumnData(100.0));

  RowLayout rl_fieldSet = new RowLayout(Orientation.VERTICAL);
  rl_fieldSet.setAdjustForScroll(true);
  fieldSet.setLayout(rl_fieldSet);

  LayoutContainer layoutContainer_1 = new LayoutContainer();
  layoutContainer_1.setLayout(new ColumnLayout());
  layoutContainer_1.setBorders(false);
  layoutContainer_1.setAutoWidth(true);
  LabelField lblfldChantier = new LabelField("Chantier:");
  layoutContainer_1.add(lblfldChantier);
  storeChantier = new ListStore<ChantierModel>();
  cbbChantier = new SimpleComboBox();
  cbbChantier.setEditable(false);
  cbbChantier.setDisplayField("nom");
  cbbChantier.setStore(storeChantier);
  cbbChantier.setStyleAttribute("marginLeft", "20px");
  cbbChantier.setTriggerAction(TriggerAction.ALL);
  cbbChantier.setAllowBlank(false);
  cbbChantier.setShadow(false);
  cbbChantier.setLazyRender(false);
  cbbChantier.setSelectOnFocus(true);
  addListener = new Listener<BaseEvent>() {
      @Override
      public void handleEvent(BaseEvent be) {
    if (isUpdate || isDelete || isAdded) {
        MessageBox box = new MessageBox();
        box.alert("", "Il faut valider d'abord", null);
    }
      }
  };
  cbbChantier.addListener(Events.OnClick, addListener);
  cbbChantier.addSelectionChangedListener(new SelectionChangedListener<ChantierModel>() {

      @Override
      public void selectionChanged(SelectionChangedEvent<ChantierModel> se) {
    ch = se.getSelectedItem();
    idChantier = ch.getId();
    service.findAllUserByChantier(idChantier, new AsyncCallback<List<UtilisateurGrpModel>>() {
        @Override
        public void onFailure(Throwable arg0) {

        }

        @Override
        public void onSuccess(List<UtilisateurGrpModel> result) {
      storeRole.removeAll();
      storeRole.add(result);
      storeRole.commitChanges();
      listUserInChantierBefore = storeRole.getModels();
        }
    });
      }
  });
  cbbChantier.disableEvents(true);
  cbbChantier.getStore().addStoreListener(new StoreListener<ChantierModel>() {
      @Override
      public void storeAdd(StoreEvent<ChantierModel> se) {
    cbbChantier.setValue(storeChantier.getAt(0));

      }
  });
  cbbChantier.enableEvents(true);
  layoutContainer_1.add(cbbChantier, new com.extjs.gxt.ui.client.widget.layout.ColumnData(0.80));
  cbbChantier.setFieldLabel("New ComboBox");
  fieldSet.add(layoutContainer_1, new RowData(RootPanel.get().getOffsetWidth() / 2 - 50, 30.0, new Margins()));
  fieldSet.add(gridUserInChantier);
  fieldSet.add(new Html("&nbsp;"));
  fieldSet.add(layoutContainer);

  layoutChantier.add(fieldSet);
  return fieldSet;
    }
View Full Code Here

    }

    public void loadPanel() {
  nomLabel = new Label(messages.hello());
  nomLabel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
  acceuilLink = new Html(messages.welcome());
  acceuilLink.setStyleName("actionHTML");
  acceuilLink.setVisible(false);
  adminLink = new Html(messages.adminstration());
  adminLink.setStyleName("actionHTML");
  adminLink.setVisible(false);
  adminLink.setStyleAttribute("visibility", "hidden");
  if (navigation.getContext().getUserModel() != null) {
      UtilisateurGrpModel user = navigation.getContext().getUserModel();
View Full Code Here

  label1.setText("Details des transferts PP:");
  Label label2 = new Label();
  label2.setText("Total des transferts PP");
  fsTransfertPp.add(label2);
  fsTransfertPp.add(gridligTotal);
  fsTransfertPp.add(new Html("<br/><br/><br/>"));
  fsTransfertPp.add(label1);
  fsTransfertPp.add(layoutContainer_11);
  addFicheST = new HTML("<img src='./images/ajouter.png'/> " + messages.addRow(), false);
  addFicheST.setStyleName("actionHTML2");
  addFicheST.setVisible(false);
View Full Code Here

    menu.add(new MenuItem("Menu Item 3"));
    return menu;
  }

  private Html format(String text) {
    Html html = new Html("<span class='text' style='margin: 10px'>" + text + "</span>");
    html.getFocusSupport().setIgnore(true);
    return html;
  }
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.widget.Html

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.