List of usage examples for com.google.gwt.user.client.ui CheckBox CheckBox
public CheckBox()
From source file:com.risevision.ui.client.common.widgets.GridWidget.java
License:Open Source License
public void setCheckBox(int row, int column, Boolean checked, String id) { CheckBox cb = new CheckBox(); cb.setValue(checked);//from ww w. ja v a 2 s. c o m cb.addClickHandler(this); setWidget(row, column, cb); actionMap.put(cb, GridInfo.CHECKACTION + id); }
From source file:com.risevision.ui.client.common.widgets.RiseMultiSelectListBox.java
License:Open Source License
public void addItem(String name, String value) { CheckBox itemCheckBox = new CheckBox(); // itemCheckBox.setStyleName("rdn-CheckBox"); Label nameLabel = new Label(name); nameLabel.setStyleName("rva-ShortText"); nameLabel.getElement().getStyle().setProperty("whiteSpace", "nowrap"); HorizontalPanel checkBoxPanel = new HorizontalPanel(); checkBoxPanel.add(itemCheckBox);/* www .j av a2s . co m*/ checkBoxPanel.add(new SpacerWidget()); checkBoxPanel.add(nameLabel); listPanel.add(checkBoxPanel); checkBoxList.add(itemCheckBox); valuesList.add(value); }
From source file:com.risevision.ui.client.common.widgets.RiseMultiSelectWidget.java
License:Open Source License
public void addItem(String name, String value) { CheckBox itemCheckBox = new CheckBox(); itemCheckBox.addValueChangeHandler(this); // itemCheckBox.setStyleName("rdn-CheckBox"); Label nameLabel = new Label(name); nameLabel.setStyleName("rva-ShortText"); nameLabel.getElement().getStyle().setProperty("whiteSpace", "nowrap"); HorizontalPanel checkBoxPanel = new HorizontalPanel(); checkBoxPanel.add(itemCheckBox);/* w ww. j a va2s. c o m*/ checkBoxPanel.add(new SpacerWidget()); checkBoxPanel.add(nameLabel); listPanel.add(checkBoxPanel); checkBoxList.add(itemCheckBox); valuesList.add(value); }
From source file:com.risevision.ui.client.common.widgets.RiseMultiSelectWidget.java
License:Open Source License
public void addOther() { CheckBox itemCheckBox = new CheckBox(); itemCheckBox.addValueChangeHandler(this); // itemCheckBox.setStyleName("rdn-CheckBox"); Label nameLabel = new Label("Other:"); nameLabel.setStyleName("rva-ShortText"); nameLabel.getElement().getStyle().setProperty("whiteSpace", "nowrap"); otherTextBox = new TextBox(); HorizontalPanel checkBoxPanel = new HorizontalPanel(); checkBoxPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); checkBoxPanel.add(itemCheckBox);//from www . j a va 2s. com checkBoxPanel.add(new SpacerWidget()); checkBoxPanel.add(nameLabel); checkBoxPanel.add(new SpacerWidget()); checkBoxPanel.add(otherTextBox); listPanel.add(checkBoxPanel); checkBoxList.add(itemCheckBox); valuesList.add(null); }
From source file:com.risevision.ui.client.common.widgets.RolesWidget.java
License:Open Source License
private void bindControls() { clearRoles();/*from ww w . ja va 2s . c o m*/ for (RoleInfo r : roles) { CheckBox itemCheckBox = new CheckBox(); itemCheckBox.setStyleName("rdn-CheckBox"); TooltipLabelWidget tooltipWidget = new TooltipLabelWidget(r.getDescription(), r.getInfo()); tooltipWidget.setStyleName("rva-ShortText"); tooltipWidget.getElement().getStyle().setProperty("whiteSpace", "nowrap"); HorizontalPanel checkBoxPanel = new HorizontalPanel(); checkBoxPanel.add(itemCheckBox); checkBoxPanel.add(new SpacerWidget()); checkBoxPanel.add(tooltipWidget); widgets.add(itemCheckBox); row++; setWidget(row, 0, checkBoxPanel); } // for (CheckBox cb:widgets) // addRow(cb); }
From source file:com.risevision.ui.client.gadget.GadgetCustomSettingsWidget.java
License:Open Source License
private int buildUI() { // mainGrid.resize(gridSize + 1 + gadgets.size(), 2); for (int i = mainGrid.getRowCount() - 1; i >= gridSize + 1; i--) { mainGrid.removeRow(i);/*from w w w. jav a2s .c o m*/ } row = gridSize; int hiddenWidgetsCount = 0; formValidator.clearValidationElements(); if (!gadgetSettings.isCustomUI()) { for (GadgetSetting g : gadgetSettings.getGadgetSettings()) { g.setWidget(null); if (g.getName().toLowerCase().endsWith("color")) { g.setWidget(new ColorPickerTextBox()); if (!RiseUtils.strIsNullOrEmpty(g.getValue())) ((HasText) g.getWidget()).setText(g.getDecodedValue()); gridAdd(g.getHeader(), g.getWidget(), "rdn-TextBoxMedium"); } else if (g.getName().toLowerCase().endsWith("font-style")) { TextStyleWidget widget = new TextStyleWidget(g.getName()); g.setWidget(widget); if (!RiseUtils.strIsNullOrEmpty(g.getValue())) ((HasText) g.getWidget()).setText(g.getDecodedValue()); gridAdd(g.getHeader(), g.getWidget(), null); } else if (g.getName().toLowerCase().endsWith("stock-selector")) { StockSelectorTextBox widget = new StockSelectorTextBox(); g.setWidget(widget); if (!RiseUtils.strIsNullOrEmpty(g.getValue())) ((HasText) g.getWidget()).setText(g.getDecodedValue()); gridAdd(g.getHeader(), g.getWidget(), "rdn-TextBoxMedium"); } else if (g.getName().toLowerCase().endsWith("media-url")) { MediaLibraryTextBox widget = new MediaLibraryTextBox(null); g.setWidget(widget); if (!RiseUtils.strIsNullOrEmpty(g.getValue())) ((HasText) g.getWidget()).setText(g.getDecodedValue()); gridAdd(g.getHeader(), g.getWidget(), "rdn-TextBoxMedium"); } else if ("bool".equals(g.getDatatype())) { g.setWidget(new CheckBox()); ((CheckBox) g.getWidget()).setValue("true".equals(g.getValue())); gridAdd(g.getHeader(), g.getWidget(), "rdn-CheckBox"); } else if ("enum".equals(g.getDatatype())) { g.setWidget(new RiseListBox()); for (GadgetSettingEnumValue v : g.getEnumValues()) ((RiseListBox) g.getWidget()).addItem(v.getDisplayValue(), v.getValue()); if (g.getValue() != null) ((RiseListBox) g.getWidget()).setSelectedValue(g.getValue()); gridAdd(g.getHeader(), g.getWidget(), "rdn-ListBoxLong"); } else if ("hidden".equals(g.getDatatype())) { // g.widget = new Hidden(); // if (!RiseUtils.strIsNullOrEmpty(g.getValue())) // ((Hidden)g.widget).setValue(g.getDecodedValue()); hiddenWidgetsCount++; } else { g.setWidget(new TextBox()); if (!RiseUtils.strIsNullOrEmpty(g.getValue())) ((TextBox) g.getWidget()).setText(g.getDecodedValue()); gridAdd(g.getHeader(), g.getWidget(), "rdn-TextBoxLong"); } if ((g.isRequired()) && (g.isVisible())) formValidator.addValidationElement(g.getWidget(), g.getDisplayName(), FormValidatorInfo.requiredFieldValidator); } // if (hiddenWidgetsCount > 0) // mainGrid.resize(mainGrid.getRowCount()-hiddenWidgetsCount, 2); } centerParentWidget(); return gadgetSettings.getGadgetSettings().size() - hiddenWidgetsCount; }
From source file:com.square.client.gwt.client.view.action.creation.ActionCreationViewImpl.java
License:Open Source License
/** Construction du bloc de notification. */ private void construireBlocNotification() { // Constuction de la ligne de rappel cbRappelNotification = new CheckBox(); aidecbRappelNotification = new AideComposant( AideComposantConstants.AIDE_ACTION_CREATION_RAPPEL_NOTIFICATION, isAdmin); ajouterAideComposant(aidecbRappelNotification); cbRappelNotification.ensureDebugId(viewDebugIdConstants.debugIdCbRappelNotification()); final Label lrappeler = new Label(viewConstants.rappeler()); lbNotification = new ListBox(); lbNotification.ensureDebugId(viewDebugIdConstants.debugIdLbNotification()); final Label lavant = new Label(viewConstants.avant()); final HorizontalPanel horizontalPanelLigne1 = new HorizontalPanel(); horizontalPanelLigne1.add(aidecbRappelNotification); horizontalPanelLigne1.add(cbRappelNotification); horizontalPanelLigne1.add(lrappeler); horizontalPanelLigne1.add(lbNotification); horizontalPanelLigne1.add(lavant);/*from w w w .jav a 2 s . c om*/ horizontalPanelLigne1.setCellVerticalAlignment(lrappeler, HasAlignment.ALIGN_MIDDLE); horizontalPanelLigne1.setCellVerticalAlignment(lavant, HasAlignment.ALIGN_MIDDLE); horizontalPanelLigne1.setCellVerticalAlignment(aidecbRappelNotification, HasAlignment.ALIGN_MIDDLE); horizontalPanelLigne1.setSpacing(2); // Construction de la ligne rappel par mail final HorizontalPanel horizontalPanelLigne2 = new HorizontalPanel(); cbRappelMail = new CheckBox(); aidecbRappelMail = new AideComposant(AideComposantConstants.AIDE_ACTION_CREATION_RAPPEL_MAIL, isAdmin); ajouterAideComposant(aidecbRappelMail); horizontalPanelLigne2.add(aidecbRappelMail); horizontalPanelLigne2.add(cbRappelMail); cbRappelMail.ensureDebugId(viewDebugIdConstants.debugIdCbRappelMail()); final Label libelleRappelMail = new Label(viewConstants.rappelMail()); horizontalPanelLigne2.add(libelleRappelMail); horizontalPanelLigne2.setCellVerticalAlignment(libelleRappelMail, HasAlignment.ALIGN_MIDDLE); horizontalPanelLigne2.setCellVerticalAlignment(aidecbRappelMail, HasAlignment.ALIGN_MIDDLE); horizontalPanelLigne2.setSpacing(2); // Construction de la ligne d'ajout l'agenda final HorizontalPanel horizontalPanelLigne3 = new HorizontalPanel(); cbAjouterAgenda = new CheckBox(); cbAjouterAgenda.setEnabled(false); aideCbAjouterAgenda = new AideComposant(100014L, isAdmin); ajouterAideComposant(aideCbAjouterAgenda); horizontalPanelLigne3.add(aideCbAjouterAgenda); horizontalPanelLigne3.add(cbAjouterAgenda); cbAjouterAgenda.ensureDebugId(viewDebugIdConstants.debugIdCbAjouterAgenda()); final Label libelleAjouterAgenda = new Label(viewConstants.ajouterAgenda()); horizontalPanelLigne3.add(libelleAjouterAgenda); horizontalPanelLigne3.setCellVerticalAlignment(libelleRappelMail, HasAlignment.ALIGN_MIDDLE); horizontalPanelLigne3.setCellVerticalAlignment(aidecbRappelMail, HasAlignment.ALIGN_MIDDLE); horizontalPanelLigne3.setSpacing(2); final CaptionPanel captionPanel = new CaptionPanel(viewConstants.libellePanelNotification()); final VerticalPanel verticalPanel = new VerticalPanel(); verticalPanel.add(horizontalPanelLigne1); verticalPanel.add(horizontalPanelLigne2); verticalPanel.add(horizontalPanelLigne3); captionPanel.add(verticalPanel); conteneurGlobal.add(captionPanel); }
From source file:com.square.client.gwt.client.view.action.moteur.recherche.ActionMoteurRechercheViewImpl.java
License:Open Source License
/** * Construit le bloc "cration".//from ww w . jav a2s . c o m * @return le bloc gnr. */ private Widget construireBlocCreation() { slbCreateur = new DecoratedSuggestListBoxComposite<DimensionRessourceModel>( new SuggestListBoxCompositeProperties<DimensionRessourceModel>() { @Override public String getSelectSuggestRenderer(DimensionRessourceModel row) { return construireLabelRessource(row, false); } @Override public String[] getResultColumnsRenderer() { return new String[] {}; } @Override public String[] getResultRowsRenderer(DimensionRessourceModel row) { return new String[] { construireLabelRessource(row, true) }; } @Override public String getSuggestListBoxMultiplePopupTitle() { return viewConstants.titrePopUpSelection(); } @Override public Integer getLeftPosition() { return LEFT_POSITION_CENTER; } @Override public Integer getTopPosition() { return TOP_POSITION_CENTER; } }); slbCreateur.ensureDebugId(viewDebugIdConstants.debugIdSlbCreateur()); slbCreateur.setScrollPanelSuggestMultipleHeight( ActionsMoteurRechercheViewImplConstants.HAUTEUR_SCROLLPANEL_LISTBOX_MULTIPLE); aideslbCreateur = new AideComposant(AideComposantConstants.AIDE_ACTION_RECHERCHE_CREATEUR, isAdmin); final HorizontalPanel panelslbCreateur = new HorizontalPanel(); panelslbCreateur.setSpacing(3); panelslbCreateur.add(slbCreateur); panelslbCreateur.add(aideslbCreateur); ajouterAideComposant(aideslbCreateur); slbAttribueA = new DecoratedSuggestListBoxComposite<DimensionRessourceModel>( new SuggestListBoxCompositeProperties<DimensionRessourceModel>() { @Override public String getSelectSuggestRenderer(DimensionRessourceModel row) { return construireLabelRessource(row, false); } @Override public String[] getResultColumnsRenderer() { return new String[] {}; } @Override public String[] getResultRowsRenderer(DimensionRessourceModel row) { return new String[] { construireLabelRessource(row, true) }; } @Override public String getSuggestListBoxMultiplePopupTitle() { return viewConstants.titrePopUpSelection(); } @Override public Integer getLeftPosition() { return LEFT_POSITION_CENTER; } @Override public Integer getTopPosition() { return TOP_POSITION_CENTER; } }); slbAttribueA.ensureDebugId(viewDebugIdConstants.debugIdSlbAttribueA()); slbAttribueA.setScrollPanelSuggestMultipleHeight( ActionsMoteurRechercheViewImplConstants.HAUTEUR_SCROLLPANEL_LISTBOX_MULTIPLE); aideslbAttribueA = new AideComposant(AideComposantConstants.AIDE_ACTION_RECHERCHE_ATTRIBUE_A, isAdmin); final HorizontalPanel panelslbAttribueA = new HorizontalPanel(); panelslbAttribueA.setSpacing(3); panelslbAttribueA.add(slbAttribueA); panelslbAttribueA.add(aideslbAttribueA); ajouterAideComposant(aideslbAttribueA); slbAgence = new DecoratedSuggestListBoxComposite<IdentifiantLibelleGwt>( new SuggestListBoxCompositeProperties<IdentifiantLibelleGwt>() { @Override public String getSelectSuggestRenderer(IdentifiantLibelleGwt row) { return row == null ? "" : row.getLibelle(); } @Override public String[] getResultColumnsRenderer() { return new String[] {}; } @Override public String[] getResultRowsRenderer(IdentifiantLibelleGwt row) { return new String[] { row == null ? "" : row.getLibelle() }; } @Override public String getSuggestListBoxMultiplePopupTitle() { return viewConstants.titrePopUpSelection(); } @Override public Integer getLeftPosition() { return LEFT_POSITION_CENTER; } @Override public Integer getTopPosition() { return TOP_POSITION_CENTER; } }); slbAgence.ensureDebugId(viewDebugIdConstants.debugIdSlbAgence()); slbAgence.setScrollPanelSuggestMultipleHeight( ActionsMoteurRechercheViewImplConstants.HAUTEUR_SCROLLPANEL_LISTBOX_MULTIPLE); aideslbAgence = new AideComposant(AideComposantConstants.AIDE_ACTION_RECHERCHE_AGENCE, isAdmin); final HorizontalPanel panelslbAgence = new HorizontalPanel(); panelslbAgence.setSpacing(3); panelslbAgence.add(slbAgence); panelslbAgence.add(aideslbAgence); ajouterAideComposant(aideslbAgence); cbRechercheEtEntreAgencesEtCommerciaux = new CheckBox(); cbRechercheEtEntreAgencesEtCommerciaux .ensureDebugId(viewDebugIdConstants.debugIdCbRechercheEtEntreAgencesEtCommerciaux()); final CaptionPanel fieldSetPanel = new CaptionPanel(viewConstants.libeleCreation()); fieldSetPanel.setHeight(ActionsMoteurRechercheViewImplConstants.HAUTEUR_BLOC); final FlexTable fpCreation = new FlexTable(); fpCreation.setCellSpacing(5); final Label createur = creerLibelle(viewConstants.createur()); final Label agence = creerLibelle(viewConstants.agence()); final Label rechercheEt = creerLibelle(viewConstants.rechercheEt()); final Label attribueA = creerLibelle(viewConstants.attribueA()); fpCreation.setWidget(0, 0, createur); fpCreation.setWidget(0, 1, panelslbCreateur); fpCreation.setWidget(1, 0, agence); fpCreation.setWidget(1, 1, panelslbAgence); fpCreation.setWidget(2, 0, rechercheEt); fpCreation.setWidget(2, 1, cbRechercheEtEntreAgencesEtCommerciaux); fpCreation.setWidget(3, 0, attribueA); fpCreation.setWidget(3, 1, panelslbAttribueA); fpCreation.getColumnFormatter().setWidth(0, "25%"); fieldSetPanel.add(fpCreation); fieldSetPanel.setHeight("200px"); return fieldSetPanel; }
From source file:com.square.client.gwt.client.view.action.moteur.recherche.ActionMoteurRechercheViewImpl.java
License:Open Source License
private Widget construireBlocInformation() { slbIdLibelleProperties = new SuggestListBoxCompositeProperties<IdentifiantLibelleGwt>() { @Override/*from w ww.j a v a 2s .c o m*/ public String getSuggestListBoxMultiplePopupTitle() { return viewConstants.titrePopUpSelection(); } @Override public String[] getResultColumnsRenderer() { return new String[] {}; } @Override public String[] getResultRowsRenderer(IdentifiantLibelleGwt row) { return new String[] { row == null ? "" : row.getLibelle() }; } @Override public String getSelectSuggestRenderer(IdentifiantLibelleGwt row) { return row == null ? "" : row.getLibelle(); } @Override public Integer getLeftPosition() { return LEFT_POSITION_CENTER; } @Override public Integer getTopPosition() { return TOP_POSITION_CENTER; } }; slbStatut = new DecoratedSuggestListBoxComposite<IdentifiantLibelleGwt>(slbIdLibelleProperties); slbStatut.ensureDebugId(viewDebugIdConstants.debugIdSlbStatut()); slbStatut.setScrollPanelSuggestMultipleHeight( ActionsMoteurRechercheViewImplConstants.HAUTEUR_SCROLLPANEL_LISTBOX_MULTIPLE); aideslbStatut = new AideComposant(AideComposantConstants.AIDE_ACTION_RECHERCHE_STATUT, isAdmin); final HorizontalPanel panelslbStatut = new HorizontalPanel(); panelslbStatut.setSpacing(5); panelslbStatut.add(slbStatut); panelslbStatut.add(aideslbStatut); ajouterAideComposant(aideslbStatut); slbNature = new DecoratedSuggestListBoxComposite<IdentifiantLibelleGwt>(slbIdLibelleProperties); slbNature.ensureDebugId(viewDebugIdConstants.debugIdSlbNature()); slbNature.setScrollPanelSuggestMultipleHeight( ActionsMoteurRechercheViewImplConstants.HAUTEUR_SCROLLPANEL_LISTBOX_MULTIPLE); aideslbNature = new AideComposant(AideComposantConstants.AIDE_ACTION_RECHERCHE_NATURE, isAdmin); final HorizontalPanel panelslbNature = new HorizontalPanel(); panelslbNature.setSpacing(5); panelslbNature.add(slbNature); panelslbNature.add(aideslbNature); ajouterAideComposant(aideslbNature); slbResultat = new DecoratedSuggestListBoxComposite<IdentifiantLibelleGwt>(slbIdLibelleProperties); slbResultat.ensureDebugId(viewDebugIdConstants.debugIdSlbResultat()); slbResultat.setScrollPanelSuggestMultipleHeight( ActionsMoteurRechercheViewImplConstants.HAUTEUR_SCROLLPANEL_LISTBOX_MULTIPLE); aideslbResultat = new AideComposant(AideComposantConstants.AIDE_ACTION_RECHERCHE_RESULTAT, isAdmin); final HorizontalPanel panelslbResultat = new HorizontalPanel(); panelslbResultat.setSpacing(5); panelslbResultat.add(slbResultat); panelslbResultat.add(aideslbResultat); ajouterAideComposant(aideslbResultat); slbPriorite = new DecoratedSuggestListBoxComposite<IdentifiantLibelleGwt>(slbIdLibelleProperties); slbPriorite.ensureDebugId(viewDebugIdConstants.debugIdSlbPriorite()); slbPriorite.setScrollPanelSuggestMultipleHeight( ActionsMoteurRechercheViewImplConstants.HAUTEUR_SCROLLPANEL_LISTBOX_MULTIPLE); aideslbPriorite = new AideComposant(AideComposantConstants.AIDE_ACTION_RECHERCHE_PRIORITE, isAdmin); final HorizontalPanel panelslbPriorite = new HorizontalPanel(); panelslbPriorite.setSpacing(5); panelslbPriorite.add(slbPriorite); panelslbPriorite.add(aideslbPriorite); ajouterAideComposant(aideslbPriorite); slbNatureResultat = new DecoratedSuggestListBoxComposite<IdentifiantLibelleGwt>(slbIdLibelleProperties); slbNatureResultat.ensureDebugId(viewDebugIdConstants.debugIdSlbNatureResultat()); slbNatureResultat.setScrollPanelSuggestMultipleHeight( ActionsMoteurRechercheViewImplConstants.HAUTEUR_SCROLLPANEL_LISTBOX_MULTIPLE); aideslbNatureResultat = new AideComposant(AideComposantConstants.AIDE_ACTION_RECHERCHE_NATURE_RESULTAT, isAdmin); final HorizontalPanel panelslbNatureResultat = new HorizontalPanel(); panelslbNatureResultat.setSpacing(5); panelslbNatureResultat.add(slbNatureResultat); panelslbNatureResultat.add(aideslbNatureResultat); ajouterAideComposant(aideslbNatureResultat); slbTypeCampagne = new DecoratedSuggestListBoxComposite<IdentifiantLibelleGwt>(slbIdLibelleProperties); slbTypeCampagne.ensureDebugId(viewDebugIdConstants.debugIdSlbTypeCampagne()); slbTypeCampagne.setScrollPanelSuggestMultipleHeight( ActionsMoteurRechercheViewImplConstants.HAUTEUR_SCROLLPANEL_LISTBOX_MULTIPLE); aideslbTypeCampagne = new AideComposant(AideComposantConstants.AIDE_ACTION_RECHERCHE_TYPE_CAMPAGNE, isAdmin); final HorizontalPanel panelslbTypeCampagne = new HorizontalPanel(); panelslbTypeCampagne.setSpacing(5); panelslbTypeCampagne.add(slbTypeCampagne); panelslbTypeCampagne.add(aideslbTypeCampagne); ajouterAideComposant(aideslbTypeCampagne); cbReclamation = new CheckBox(); cbReclamation.ensureDebugId(viewDebugIdConstants.debugIdCbReclamation()); final CaptionPanel fieldSetPanel = new CaptionPanel(viewConstants.information()); final FlexTable fpInformation = new FlexTable(); fpInformation.setCellSpacing(5); final Label statut = creerLibelle(viewConstants.statut()); final Label libelleCampagne = creerLibelle(viewConstants.libelleCampagne()); final Label nature = creerLibelle(viewConstants.nature()); final Label natureResultat = creerLibelle(viewConstants.natureResultat()); final Label resultat = creerLibelle(viewConstants.resultat()); final Label priorite = creerLibelle(viewConstants.priorite()); final Label reclamation = creerLibelle(viewConstants.reclamation()); final FlexTable fpanel = new FlexTable(); fpanel.setWidth(AppControllerConstants.POURCENT_100); fpanel.setCellSpacing(5); fpanel.setWidget(0, 0, statut); fpanel.setWidget(0, 1, panelslbStatut); fpanel.setWidget(0, 2, libelleCampagne); fpanel.setWidget(0, 3, panelslbTypeCampagne); fpanel.setWidget(1, 0, nature); fpanel.setWidget(1, 1, panelslbNature); fpanel.setWidget(1, 2, natureResultat); fpanel.setWidget(1, 3, panelslbNatureResultat); fpanel.setWidget(2, 0, resultat); fpanel.setWidget(2, 1, panelslbResultat); fpanel.setWidget(2, 2, priorite); fpanel.setWidget(2, 3, panelslbPriorite); fpanel.setWidget(3, 0, reclamation); fpanel.setWidget(3, 1, cbReclamation); slbStatut.setWidth("110px"); slbNature.setWidth("110px"); slbResultat.setWidth("110px"); fpanel.getColumnFormatter().setWidth(0, "3%"); fpanel.getColumnFormatter().setWidth(1, "25%"); fpanel.getColumnFormatter().setWidth(2, "16%"); fieldSetPanel.add(fpanel); return fieldSetPanel; }
From source file:com.square.client.gwt.client.view.personne.action.PersonneActionContenuViewImpl.java
License:Open Source License
private void constructionNotification() { final CaptionPanel captionNotification = new CaptionPanel(constants.titreNotification()); final VerticalPanel verticalPanelNotificationContenu = new VerticalPanel(); // Horizontal panel partie notification rappel final HorizontalPanel horizontalPanelRappel = new HorizontalPanel(); cbRappel = new CheckBox(); cbRappel.ensureDebugId(viewDebudIdConstants.debugIdCbRappel()); aidecbRappel = new AideComposant(AideComposantConstants.AIDE_PERSONNE_ACTION_RAPPEL, isAdmin); ajouterAideComposant(aidecbRappel);/*ww w. j a v a 2 s.com*/ lbNotification = new ListBox(); lbNotification.ensureDebugId(viewDebudIdConstants.debugIdLbNotification()); horizontalPanelRappel.add(aidecbRappel); horizontalPanelRappel.add(cbRappel); final Label libelleRappel = new Label(constants.libelleRappel()); horizontalPanelRappel.add(libelleRappel); horizontalPanelRappel.setCellVerticalAlignment(libelleRappel, HasAlignment.ALIGN_MIDDLE); horizontalPanelRappel.setCellVerticalAlignment(aidecbRappel, HasAlignment.ALIGN_MIDDLE); horizontalPanelRappel.add(lbNotification); final Label libelleRappelAvant = new Label(constants.libelleRappelAvant()); horizontalPanelRappel.add(libelleRappelAvant); horizontalPanelRappel.setCellVerticalAlignment(libelleRappelAvant, HasAlignment.ALIGN_MIDDLE); horizontalPanelRappel.setSpacing(2); // Horizontal panel partie notification Mail final HorizontalPanel horizontalPanelMail = new HorizontalPanel(); cbRappelMail = new CheckBox(); aidecbRappelMail = new AideComposant(AideComposantConstants.AIDE_PERSONNE_ACTION_RAPPEL_MAIL, isAdmin); ajouterAideComposant(aidecbRappelMail); horizontalPanelMail.add(aidecbRappelMail); horizontalPanelMail.add(cbRappelMail); cbRappelMail.ensureDebugId(viewDebudIdConstants.debugIdCbRappelMail()); final Label libelleRappelMail = new Label(constants.rappelMail()); horizontalPanelMail.add(libelleRappelMail); horizontalPanelMail.setCellVerticalAlignment(libelleRappelMail, HasAlignment.ALIGN_MIDDLE); horizontalPanelMail.setCellVerticalAlignment(aidecbRappelMail, HasAlignment.ALIGN_MIDDLE); horizontalPanelMail.setSpacing(2); // Horizontal panel partie notification ajout agenda final HorizontalPanel horizontalPanelAjoutAgenda = new HorizontalPanel(); cbAjoutAgenda = new CheckBox(); aideCbAjoutAgenda = new AideComposant(106010L, isAdmin); ajouterAideComposant(aideCbAjoutAgenda); horizontalPanelAjoutAgenda.add(aideCbAjoutAgenda); horizontalPanelAjoutAgenda.add(cbAjoutAgenda); cbAjoutAgenda.ensureDebugId(viewDebudIdConstants.debugIdCbAjoutAgenda()); final Label libelleAjoutAgenda = new Label(constants.ajoutAgenda()); horizontalPanelAjoutAgenda.add(libelleAjoutAgenda); horizontalPanelAjoutAgenda.setCellVerticalAlignment(libelleAjoutAgenda, HasAlignment.ALIGN_MIDDLE); horizontalPanelAjoutAgenda.setCellVerticalAlignment(aideCbAjoutAgenda, HasAlignment.ALIGN_MIDDLE); horizontalPanelAjoutAgenda.setSpacing(2); verticalPanelNotificationContenu.add(horizontalPanelRappel); verticalPanelNotificationContenu.add(horizontalPanelMail); verticalPanelNotificationContenu.add(horizontalPanelAjoutAgenda); captionNotification.add(verticalPanelNotificationContenu); flexTable.setWidget(1, 0, captionNotification); flexTable.getFlexCellFormatter().setColSpan(1, 0, 2); }