Example usage for com.google.gwt.user.client.ui FlexTable FlexTable

List of usage examples for com.google.gwt.user.client.ui FlexTable FlexTable

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui FlexTable FlexTable.

Prototype

public FlexTable() 

Source Link

Usage

From source file:com.square.composant.cotisations.client.view.moteur.recherche.MoteurRechercheCotisationsViewImpl.java

License:Open Source License

private Widget construireBlocRecherche() {
    final SuggestListBoxSingleProperties<IdentifiantLibelleGwt> slbIdentifiantLibelleProperties = new SuggestListBoxSingleProperties<IdentifiantLibelleGwt>() {
        @Override// w ww  .j a v a2 s.  c  o m
        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() };
        }
    };
    final SuggestListBoxSingleProperties<CodeAiaLibelleModel> slbCodeAiaLibelleProperties = new SuggestListBoxSingleProperties<CodeAiaLibelleModel>() {
        @Override
        public String getSelectSuggestRenderer(CodeAiaLibelleModel row) {
            return row == null ? "" : row.getLibelle();
        }

        @Override
        public String[] getResultColumnsRenderer() {
            return new String[] {};
        }

        @Override
        public String[] getResultRowsRenderer(CodeAiaLibelleModel row) {
            return new String[] { row == null ? "" : row.getLibelle() };
        }
    };

    slbContrats = new DecoratedSuggestListBoxSingle<IdentifiantLibelleGwt>(slbIdentifiantLibelleProperties);
    slbModesPaiement = new DecoratedSuggestListBoxSingle<IdentifiantLibelleGwt>(
            slbIdentifiantLibelleProperties);
    slbSituations = new DecoratedSuggestListBoxSingle<CodeAiaLibelleModel>(slbCodeAiaLibelleProperties);
    cdbDateDebutPeriode = new DecoratedCalendrierDateBox();
    cdbDateFinPeriode = new DecoratedCalendrierDateBox();
    tbMontantMax = new DecoratedTextBox();
    tbMontantMax.setWidth(MoteurRechercheCotisationsViewImplConstants.LARGEUR_TB_MONTANT);
    tbMontantMin = new DecoratedTextBox();
    tbMontantMin.setWidth(MoteurRechercheCotisationsViewImplConstants.LARGEUR_TB_MONTANT);
    lValueSoldeGlobalActuel = new Label();

    final Label lContrats = creerLibelle(viewConstants.contrats());
    final Label lDatePeriode = creerLibelle(viewConstants.datePeriode());
    final Label lPeriodeSeparateur = creerLibelle(viewConstants.separateur());
    final Label lModesPaiement = creerLibelle(viewConstants.modesPaiement());
    final Label lMontant = creerLibelle(viewConstants.montant());
    final Label lMontantSeparateur = creerLibelle(viewConstants.separateur());
    final Label lSituation = creerLibelle(viewConstants.situation());
    final Label lSoldeGlobalActuel = creerLibelle(viewConstants.soldeGlobalActuel());

    final CaptionPanel fieldSetPanel = new CaptionPanel(viewConstants.blocRechercher());
    final FlexTable fpRecherche = new FlexTable();
    fpRecherche.setWidth(ComposantCotisationsConstants.POURCENT_100);
    fpRecherche.setCellSpacing(5);
    fpRecherche.setWidget(0, 0, lContrats);
    fpRecherche.setWidget(0, 1, slbContrats);
    fpRecherche.setWidget(0, 2, lDatePeriode);
    fpRecherche.setWidget(0, 3, cdbDateDebutPeriode);
    fpRecherche.setWidget(0, 4, lPeriodeSeparateur);
    fpRecherche.setWidget(0, 5, cdbDateFinPeriode);
    fpRecherche.setWidget(1, 0, lModesPaiement);
    fpRecherche.setWidget(1, 1, slbModesPaiement);
    fpRecherche.setWidget(1, 2, lMontant);
    fpRecherche.setWidget(1, 3, tbMontantMin);
    fpRecherche.setWidget(1, 4, lMontantSeparateur);
    fpRecherche.setWidget(1, 5, tbMontantMax);
    fpRecherche.setWidget(2, 0, lSituation);
    fpRecherche.setWidget(2, 1, slbSituations);
    fpRecherche.setWidget(2, 2, lSoldeGlobalActuel);
    fpRecherche.setWidget(2, 3, lValueSoldeGlobalActuel);
    fpRecherche.getFlexCellFormatter().setColSpan(2, 3, 3);

    fieldSetPanel.add(fpRecherche);
    return fieldSetPanel;
}

From source file:com.square.composant.envoi.email.square.client.view.ComposantEnvoiEmailViewImpl.java

License:Open Source License

/** Initialisation du contenu de la vue. */
private void initContenuView() {
    focusPopupPanel = new FocusPanel();
    focusPopupPanel.setWidth(ComposantEnvoiEmailConstants.CENT_POURCENT);
    // Panel reprsentant le contenu du composant
    final VerticalPanel contenu = new VerticalPanel();
    contenu.setWidth(ComposantEnvoiEmailConstants.CENT_POURCENT);
    contenu.setSpacing(5);// ww  w  . java 2 s  .com

    // Email
    final CaptionPanel fieldSetPanel = new CaptionPanel(viewConstants.titreBlocComposant());
    final VerticalPanel panelContenuEmail = new VerticalPanel();
    panelContenuEmail.setWidth(ComposantEnvoiEmailConstants.CENT_POURCENT);
    int row = 0;
    // Table contenant les informations du mail
    final FlexTable tableInfos = new FlexTable();
    final Label lExpediteur = new Label(viewConstants.expediteur());
    tableInfos.setWidget(row, 0, lExpediteur);
    tbExpediteur = new DecoratedTextBox();
    tableInfos.setWidget(row++, 1, construireBlocIcone(tbExpediteur, "EmailDto.expediteur"));
    final Label lNomExpediteur = new Label(viewConstants.nomExpediteur());
    tableInfos.setWidget(row, 0, lNomExpediteur);
    tbNomExpediteur = new DecoratedTextBox();
    tableInfos.setWidget(row++, 1, tbNomExpediteur);
    final Label lDestinataire = new Label(viewConstants.destinataire());
    tableInfos.setWidget(row, 0, lDestinataire);
    tbDestinataire = new DecoratedTextBox();
    tableInfos.setWidget(row++, 1, construireBlocIcone(tbDestinataire, "EmailDto.listeDestinataires"));
    final Label lObjet = new Label(viewConstants.objet());
    tableInfos.setWidget(row, 0, lObjet);
    tbObjet = new DecoratedTextBox();
    tableInfos.setWidget(row++, 1, construireBlocIcone(tbObjet, "EmailDto.titre"));
    // Panneau des fichiers joints
    final Label lPieceJointe = new Label(viewConstants.pieceJointe());
    tableInfos.setWidget(row, 0, lPieceJointe);
    tableInfos.getCellFormatter().setVerticalAlignment(row, 0, HasAlignment.ALIGN_TOP);
    panelFichiersJoints = new FlexTable();
    labelAucunFichierJoint = new Label(viewConstants.aucunFichierJoint());
    panelFichiersJoints.setWidget(0, 0, labelAucunFichierJoint);
    tableInfos.setWidget(row++, 1, panelFichiersJoints);
    final Label lMessage = new Label(viewConstants.message());
    tableInfos.setWidget(row++, 0, lMessage);

    // Colonne vide (espace)
    tableInfos.getColumnFormatter().setWidth(2, ComposantEnvoiEmailViewImplConstants.LARGEUR_COLONNE_VIDE);

    final SuggestListBoxSingleProperties<IdentifiantLibelleGwt> slbIdentifiantLibelleProperties = new SuggestListBoxSingleProperties<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() };
        }
    };
    final Label lModeleEmail = new Label(viewConstants.modeleEmail());
    tableInfos.setWidget(0, 3, lModeleEmail);
    slbModeleEmail = new DecoratedSuggestListBoxSingle<IdentifiantLibelleGwt>(slbIdentifiantLibelleProperties);
    tableInfos.setWidget(0, 4, slbModeleEmail);

    panelContenuEmail.add(tableInfos);

    // cration de la zone de texte (RichTextArea)
    rtaMessage = new RichTextArea();
    rtaMessage.setSize(ComposantEnvoiEmailConstants.CENT_POURCENT,
            ComposantEnvoiEmailViewImplConstants.HAUTEUR_RICH_TEXT_AREA);
    toolbar = new RichTextToolbar(rtaMessage);
    final RichTextPanel rtpMessage = new RichTextPanel(toolbar, rtaMessage);
    rtpMessage.setWidth(ComposantEnvoiEmailConstants.CENT_POURCENT);
    toolbar.setWidth(ComposantEnvoiEmailConstants.CENT_POURCENT);
    panelContenuEmail.add(rtpMessage);

    fieldSetPanel.add(panelContenuEmail);

    contenu.add(fieldSetPanel);

    // Ajout de la barre de boutons
    final HorizontalPanel pBoutons = construireBarreBoutons();
    contenu.add(pBoutons);
    contenu.setCellHorizontalAlignment(pBoutons, HasAlignment.ALIGN_CENTER);

    focusPopupPanel.setWidget(contenu);
    this.initWidget(focusPopupPanel);
}

From source file:com.square.composant.espace.client.square.client.view.espaceadherent.BlocOptionsAdherentViewImpl.java

License:Open Source License

/**
 * Construit le Widget encapsul dans la vue.
 * @return le widget encapsul./*from w ww  .  j a v  a  2s . c  o  m*/
 */
private Widget construireBlocOptions() {
    lOptionSms = new Label(viewConstants.labelOptionDesactive());
    lOptionMutuellement = new Label(viewConstants.labelOptionDesactive());
    lOptionRelevesPrestation = new Label(viewConstants.labelOptionDesactive());
    rbtnOptionSmsActive = new RadioButton(viewConstants.labelOptionSms());
    rbtnOptionSmsDesactive = new RadioButton(viewConstants.labelOptionSms());
    rbtnOptionSmsDesactive.setValue(true);
    rbtnOptionMutuellementActive = new RadioButton(viewConstants.labelOptionMutuellement());
    rbtnOptionMutuellementDesactive = new RadioButton(viewConstants.labelOptionMutuellement());
    rbtnOptionMutuellementDesactive.setValue(true);
    rbtnOptionRelevesPrestationsActive = new RadioButton(viewConstants.labelOptionRelevesPrestations());
    rbtnOptionRelevesPrestationsDesactive = new RadioButton(viewConstants.labelOptionRelevesPrestations());
    rbtnOptionRelevesPrestationsDesactive.setValue(true);
    lDateModifOptionSms = new Label(viewConstants.aucuneDate());
    lDateModifOptionMensuellement = new Label(viewConstants.aucuneDate());
    lDateModifOptionRelevesPrestations = new Label(viewConstants.aucuneDate());
    btnEnregistrerOptions = new DecoratedButton(viewConstants.captionEnregistrerOptions());

    final FlexTable ftEditionOptions = new FlexTable();
    ftEditionOptions.setStylePrimaryName(EspaceClientPresenter.RESOURCES.css().tableauOptions());
    ftEditionOptions.setCellPadding(6);
    ftEditionOptions.setWidget(0, 1, new Label(viewConstants.labelOptionActive()));
    ftEditionOptions.setWidget(0, 2, new Label(viewConstants.labelOptionDesactive()));
    ftEditionOptions.setWidget(0, 3, new Label(viewConstants.labelDateModification()));
    ftEditionOptions.setWidget(1, 0, new Label(viewConstants.labelOptionSms()));
    ftEditionOptions.setWidget(1, 1, rbtnOptionSmsActive);
    ftEditionOptions.setWidget(1, 2, rbtnOptionSmsDesactive);
    ftEditionOptions.setWidget(1, 3, lDateModifOptionSms);
    ftEditionOptions.setWidget(2, 0, new Label(viewConstants.labelOptionMutuellement()));
    ftEditionOptions.setWidget(2, 1, rbtnOptionMutuellementActive);
    ftEditionOptions.setWidget(2, 2, rbtnOptionMutuellementDesactive);
    ftEditionOptions.setWidget(2, 3, lDateModifOptionMensuellement);
    ftEditionOptions.setWidget(3, 0, new Label(viewConstants.labelOptionRelevesPrestations()));
    ftEditionOptions.setWidget(3, 1, rbtnOptionRelevesPrestationsActive);
    ftEditionOptions.setWidget(3, 2, rbtnOptionRelevesPrestationsDesactive);
    ftEditionOptions.setWidget(3, 3, lDateModifOptionRelevesPrestations);
    ftEditionOptions.getCellFormatter().setStylePrimaryName(0, 0,
            EspaceClientPresenter.RESOURCES.css().celluleSansBordure());
    ftEditionOptions.getCellFormatter().setStylePrimaryName(0, 1,
            EspaceClientPresenter.RESOURCES.css().celluleEnteteColonne());
    ftEditionOptions.getCellFormatter().setStylePrimaryName(0, 2,
            EspaceClientPresenter.RESOURCES.css().celluleEnteteColonne());
    ftEditionOptions.getCellFormatter().setStylePrimaryName(0, 3,
            EspaceClientPresenter.RESOURCES.css().celluleEnteteColonne());
    ftEditionOptions.getCellFormatter().setStylePrimaryName(1, 0,
            EspaceClientPresenter.RESOURCES.css().celluleEnteteLigne());
    ftEditionOptions.getCellFormatter().setStylePrimaryName(2, 0,
            EspaceClientPresenter.RESOURCES.css().celluleEnteteLigne());
    ftEditionOptions.getCellFormatter().setStylePrimaryName(3, 0,
            EspaceClientPresenter.RESOURCES.css().celluleEnteteLigne());

    final int nbRows = ftEditionOptions.getRowCount();
    for (int i = 0; i < nbRows; i++) {
        ftEditionOptions.getCellFormatter().setHorizontalAlignment(i, 1, HasHorizontalAlignment.ALIGN_CENTER);
        ftEditionOptions.getCellFormatter().setHorizontalAlignment(i, 2, HasHorizontalAlignment.ALIGN_CENTER);
        ftEditionOptions.getCellFormatter().setHorizontalAlignment(i, 3, HasHorizontalAlignment.ALIGN_CENTER);
    }
    ftEditionOptions.getColumnFormatter().setWidth(0, BlocOptionsAdherentViewImplConstants.LARGEUR_COL);
    ftEditionOptions.getColumnFormatter().setWidth(1, BlocOptionsAdherentViewImplConstants.LARGEUR_COL);
    ftEditionOptions.getColumnFormatter().setWidth(2, BlocOptionsAdherentViewImplConstants.LARGEUR_COL);
    ftEditionOptions.getColumnFormatter().setWidth(3, BlocOptionsAdherentViewImplConstants.LARGEUR_COL);

    final VerticalPanel conteneur = new VerticalPanel();
    conteneur.setSpacing(10);
    conteneur.setWidth(ComposantEspaceClientConstants.POURCENT_100);
    conteneur.add(ftEditionOptions);
    conteneur.add(btnEnregistrerOptions);
    conteneur.setCellHorizontalAlignment(ftEditionOptions, HasAlignment.ALIGN_CENTER);
    conteneur.setCellHorizontalAlignment(btnEnregistrerOptions, HasAlignment.ALIGN_CENTER);

    final List<ChampSynthese> listeChamps = new ArrayList<ChampSynthese>();
    listeChamps.add(new ChampSynthese(lOptionSms, viewConstants.labelOptionSms(), false));
    listeChamps.add(new ChampSynthese(lOptionMutuellement, viewConstants.labelOptionMutuellement(), false));
    listeChamps.add(
            new ChampSynthese(lOptionRelevesPrestation, viewConstants.labelOptionRelevesPrestations(), false));
    final BlocSyntheseDepliant blocOptions = new BlocSyntheseDepliant(listeChamps, conteneur);
    blocOptions.setStylePrimaryName(EspaceClientPresenter.RESOURCES.css().blocSyntheseDepliant());

    final CaptionPanel cpOptions = new CaptionPanel(viewConstants.captionBlocOptions());
    cpOptions.add(blocOptions);
    return cpOptions;
}

From source file:com.square.composant.espace.client.square.client.view.espaceadherent.BlocSyntheseEspaceAdherentViewImpl.java

License:Open Source License

private Widget construireBlocSyntheseEspaceAdherent() {
    final Label lDatePremiereVisiteTitle = new Label(viewConstants.labelDatePremiereVisite(), false);
    final Label lDateDerniereVisiteTitle = new Label(viewConstants.labelDateDerniereVisite(), false);
    final Label lNbVisitesTitle = new Label(viewConstants.labelNbVisites(), false);
    lDatePremiereVisite = new Label();
    lDateDerniereVisite = new Label();
    lNbVisites = new Label();
    lDateModificationOptions = new Label();

    tableSynthese = new FlexTable();
    tableSynthese.setWidth(ComposantEspaceClientConstants.POURCENT_100);
    tableSynthese.setWidget(0, 0, lDatePremiereVisiteTitle);
    tableSynthese.setWidget(0, 1, lDatePremiereVisite);
    tableSynthese.setWidget(0, 2, lDateDerniereVisiteTitle);
    tableSynthese.setWidget(0, 3, lDateDerniereVisite);
    tableSynthese.setWidget(0, 4, lNbVisitesTitle);
    tableSynthese.setWidget(0, 5, lNbVisites);
    tableSynthese.setCellSpacing(3);/*from w  ww  .  j  a  v  a  2s  . c o  m*/
    tableSynthese.getColumnFormatter().setWidth(0,
            BlocSyntheseEspaceAdherentViewImplConstants.LARGEUR_COL_LIBELLE_LARGE);
    tableSynthese.getColumnFormatter().setWidth(1,
            BlocSyntheseEspaceAdherentViewImplConstants.LARGEUR_COL_CHAMP);
    tableSynthese.getColumnFormatter().setWidth(2,
            BlocSyntheseEspaceAdherentViewImplConstants.LARGEUR_COL_LIBELLE);
    tableSynthese.getColumnFormatter().setWidth(3,
            BlocSyntheseEspaceAdherentViewImplConstants.LARGEUR_COL_CHAMP);
    tableSynthese.getColumnFormatter().setWidth(4,
            BlocSyntheseEspaceAdherentViewImplConstants.LARGEUR_COL_LIBELLE);
    tableSynthese.getColumnFormatter().setWidth(5,
            BlocSyntheseEspaceAdherentViewImplConstants.LARGEUR_COL_CHAMP_PETIT);

    final CaptionPanel cpSynthese = new CaptionPanel(viewConstants.captionSynthese());
    cpSynthese.add(tableSynthese);
    return cpSynthese;
}

From source file:com.square.composant.flux.opportunite.client.view.PanelQuotasViewImpl.java

License:Open Source License

/**
 * Construit le contenu du panel des quotas.
 * @return le widget.//w w w.  ja va2 s .  c  o m
 */
private Widget construirePanelQuotas() {
    final VerticalPanel contenu = new VerticalPanel();
    contenu.setWidth(ComposantFluxOpportuniteConstants.POURCENT_100);
    contenu.setSpacing(5);
    captionPanelInformation = new CaptionPanel(viewConstants.titrePanelQuotas());
    captionPanelInformation.setVisible(false);
    captionPanelInformation.add(contenu);

    final Label lNbOpportunitesJours = new Label(viewConstants.labelNbOpportunitesJours());
    contenu.add(lNbOpportunitesJours);

    ftQuotasJours = new FlexTable();
    ftQuotasJours.setCellSpacing(10);
    contenu.add(ftQuotasJours);
    contenu.setCellHorizontalAlignment(ftQuotasJours, HasAlignment.ALIGN_CENTER);

    return captionPanelInformation;
}

From source file:com.square.composant.flux.opportunite.client.view.PopupModifQuotasViewImpl.java

License:Open Source License

/** Construit le contenu de la popup. */
private void construireContenuPopup() {
    final VerticalPanel contenuPopup = new VerticalPanel();
    contenuPopup.setSpacing(5);/*from  w  w  w. j a  va 2  s  . co  m*/

    // Ajout du tableau de saisie des quotas
    final CaptionPanel pNbOpportunites = new CaptionPanel(viewConstants.titrePanelNbOpportunites());
    ftQuotas = new FlexTable();
    pNbOpportunites.add(ftQuotas);
    contenuPopup.add(pNbOpportunites);

    // Ajout de la barre de boutons
    final HorizontalPanel pBarreBoutons = construireBarreBoutons();
    contenuPopup.add(pBarreBoutons);
    contenuPopup.setCellHorizontalAlignment(pBarreBoutons, HasAlignment.ALIGN_CENTER);

    this.setWidget(contenuPopup);
    this.addStyleName(PopupModifQuotasPresenter.RESOURCES.css().popupModifQuotas());
}

From source file:com.square.composant.fusion.square.client.composants.BlocChampsPersonneFusion.java

License:Open Source License

/**
 * Construit le tableau prsentant les champs pour la fusion.
 *//*  www  .  j  av  a2s  .  c o m*/
private void construireTableauChamps() {
    ftProprietes = new FlexTable();
    ftProprietes.setWidth(ComposantFusionPresenterConstants.POURCENT_100);
    ftProprietes.addStyleName(ComposantFusionPresenter.RESOURCES.css().tableau());

    // Construction des titres des colonnes du tableau
    final Label lTitreChamps = new Label(composantConstants.titreColonneChamp(), false);
    final Label lTitreValeur = new Label(composantConstants.titreColonneValeur());

    ftProprietes.setWidget(0, 0, lTitreChamps);
    ftProprietes.setWidget(0, 1, lTitreValeur);
    ftProprietes.getFlexCellFormatter().addStyleName(0, 0,
            ComposantFusionPresenter.RESOURCES.css().titreColonne());
    ftProprietes.getFlexCellFormatter().addStyleName(0, 1,
            ComposantFusionPresenter.RESOURCES.css().titreColonne());

    if (isSource) {
        // Ajout de la colonne de slection pour la fusion
        final Label lTitreSelection = new Label(composantConstants.titreColonneFusionner());
        lTitreSelection.setTitle(composantConstants.titleColonneFusionner());
        ftProprietes.setWidget(0, 2, lTitreSelection);
        ftProprietes.getFlexCellFormatter().addStyleName(0, 2,
                ComposantFusionPresenter.RESOURCES.css().titreColonne());
    }

    if (personneSourceEnCours != null && personneCibleEnCours != null) {
        // On remplit les lignes du tableau avec les champs de la personne
        remplirChampsPersonne();
    }

    pContenu.add(ftProprietes);
}

From source file:com.square.composant.fusion.square.client.composants.ResumeFusion.java

License:Open Source License

/**
 * Constructeur./*from   w  w  w.  j a va 2  s .  c  o m*/
 * @param constantes les constantes.
 */
public ResumeFusion(ConstantesModel constantes) {
    this.constantes = constantes;
    this.setWidth(ComposantFusionPresenterConstants.POURCENT_100);

    // Cration des constantes du composant
    composantConstants = (ResumeFusionConstants) GWT.create(ResumeFusionConstants.class);

    pContenu = new VerticalPanel();
    pContenu.setWidth(ComposantFusionPresenterConstants.POURCENT_100);
    pContenu.addStyleName(ComposantFusionPresenter.RESOURCES.css().contenuBloc());
    this.add(pContenu);
    ftResumeChamps = new FlexTable();
    ftResumeChamps.addStyleName(ComposantFusionPresenter.RESOURCES.css().tableau());
    ftResumeChamps.setWidth(ComposantFusionPresenterConstants.POURCENT_100);

    // Construction des titres des colonnes du tableau
    final Label lTitreChamps = new Label(composantConstants.titreColonneChamp());
    final Label lTitreValeur = new Label(composantConstants.titreColonneValeur());
    ftResumeChamps.setWidget(0, 0, lTitreChamps);
    ftResumeChamps.setWidget(0, 1, lTitreValeur);
    ftResumeChamps.getFlexCellFormatter().addStyleName(0, 0,
            ComposantFusionPresenter.RESOURCES.css().titreColonne());
    ftResumeChamps.getFlexCellFormatter().addStyleName(0, 1,
            ComposantFusionPresenter.RESOURCES.css().titreColonne());
    pContenu.add(ftResumeChamps);
    this.add(pContenu);

    final CaptionPanel pBloc = new CaptionPanel(composantConstants.titreResumeFusion());
    pBloc.add(pContenu);
    this.add(pBloc);
}

From source file:com.square.composant.ged.square.client.view.ajoutdocument.AjoutDocumentViewImpl.java

License:Open Source License

/**
 * Constructeur par dfaut.//from w  w w  .  j a  va2s  .c o  m
 */
public AjoutDocumentViewImpl() {
    super(viewConstants.titrePopup(), false, true, true);
    iconeErreurChampManager = new IconeErreurChampManager();
    dateReception = new DecoratedCalendrierDateBox();
    boutonAnnuler = new DecoratedButton(viewConstants.boutonAnnuler());
    boutonAjouter = new DecoratedButton(viewConstants.boutonAjouter());

    uploader = new Uploader(FileInputType.LABEL, false);
    final CustomUploaderConstants uploaderConstants = GWT.create(CustomUploaderConstants.class);
    uploader.setI18Constants(uploaderConstants);

    final CaptionPanel panelInfosFichier = new CaptionPanel(viewConstants.informationsFichier());
    final FlexTable tableInfosGenerales = new FlexTable();
    tableInfosGenerales.setWidget(0, 0, new Label(viewConstants.labelFichier()));
    tableInfosGenerales.setWidget(0, 1, construireBlocIcone(uploader, "fichier"));
    tableInfosGenerales.setWidget(1, 0, new Label(viewConstants.labelDateReception()));
    tableInfosGenerales.setWidget(1, 1, construireBlocIcone(dateReception, "dateReception"));
    panelInfosFichier.add(tableInfosGenerales);

    tagCloud = new SelecteurTagCloud(iconeErreurChampManager);

    final FlexTable mainPanel = new FlexTable();
    mainPanel.setSize("750px", "450px");
    mainPanel.setWidget(0, 0, panelInfosFichier);
    mainPanel.setWidget(1, 0, tagCloud);

    boutonAjouter.addStyleName("boutonPopupSelectionDocument");

    final HorizontalPanel panelBoutons = new HorizontalPanel();
    panelBoutons.add(boutonAnnuler);
    panelBoutons.add(boutonAjouter);
    mainPanel.setWidget(2, 0, panelBoutons);
    this.setWidget(mainPanel);
    this.addStyleName("popupSelectionDocument");
}

From source file:com.square.composant.ged.square.client.view.associationdocumentsaction.AssociationDocumentsActionViewImpl.java

License:Open Source License

/** Constructeur par dfaut. */
public AssociationDocumentsActionViewImpl() {
    super(viewConstants.titrePopup(), false, true, true);

    documentsClientsTree = new Tree();
    documentsActionTree = new Tree();
    final FlexTable mainPanel = new FlexTable();

    final ScrollPanel scrollClient = new ScrollPanel();
    scrollClient.add(documentsClientsTree);
    scrollClient.setSize("290px", POURCENT_100);
    final ScrollPanel scrollActions = new ScrollPanel();
    scrollActions.setSize("290px", POURCENT_100);
    scrollActions.add(documentsActionTree);

    final CaptionPanel panelDocumentsClients = new CaptionPanel(viewConstants.titreDocumentsClient());
    panelDocumentsClients.setSize("300px", "300px");
    panelDocumentsClients.add(scrollClient);
    final CaptionPanel panelDocumentsAction = new CaptionPanel(viewConstants.titreDocumentsAction());
    panelDocumentsAction.setSize("300px", "300px");
    panelDocumentsAction.add(scrollActions);
    mainPanel.setWidget(0, 0, panelDocumentsClients);
    mainPanel.setWidget(0, 2, panelDocumentsAction);

    boutonAnnuler = new DecoratedButton(viewConstants.boutonAnnuler());
    boutonAjouter = new DecoratedButton(viewConstants.boutonAjouter());
    boutonEnlever = new DecoratedButton(viewConstants.boutonEnlever());
    boutonAjouterDocument = new DecoratedButton(viewConstants.boutonAjouterDocument());
    boutonEnregistrer = new DecoratedButton(viewConstants.boutonEnregistrer());

    boutonAjouter.addStyleName("boutonPopupActionSelectionDocument");
    boutonEnlever.addStyleName("boutonPopupActionSelectionDocument");
    boutonAjouterDocument.addStyleName("boutonPopupSelectionDocument");
    boutonEnregistrer.addStyleName("boutonPopupSelectionDocument");

    final VerticalPanel panelBoutonsAction = new VerticalPanel();
    panelBoutonsAction.add(boutonAjouter);
    panelBoutonsAction.add(boutonEnlever);
    mainPanel.setWidget(0, 1, panelBoutonsAction);

    final HorizontalPanel panelBoutons = new HorizontalPanel();
    panelBoutons.add(boutonAnnuler);/*from w w  w .j  a v a2s  .c  om*/
    panelBoutons.add(boutonEnregistrer);
    panelBoutons.add(boutonAjouterDocument);
    mainPanel.setWidget(1, 0, panelBoutons);
    mainPanel.getCellFormatter().setHorizontalAlignment(1, 0, HasHorizontalAlignment.ALIGN_CENTER);
    mainPanel.getFlexCellFormatter().setColSpan(1, 0, 3);

    this.setWidget(mainPanel);
    this.addStyleName("popupActionSelectionDocument");
}