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.contrat.personne.morale.square.client.view.ContratsPersonneMoraleViewImpl.java

License:Open Source License

/** Construit le bloc de dernire radiation. */
private void contruireBlocDerniereRadiation() {
    final Label lDateDerniereRadiation = new Label(viewConstants.libelleDateDerniereRadiation());
    final Label lMotifDerniereRadiation = new Label(viewConstants.libelleMotifDerniereRadiation());
    labelDateDerniereRadiation = new Label();
    labelMotifDerniereRadiation = new Label();

    final FlexTable panelPrincipalBlocDerniereRadiation = new FlexTable();
    panelPrincipalBlocDerniereRadiation.setWidth(ComposantContratPersonneMoraleConstants.POURCENT_100);
    panelPrincipalBlocDerniereRadiation.setWidget(0, 0, lDateDerniereRadiation);
    panelPrincipalBlocDerniereRadiation.setWidget(0, 1, labelDateDerniereRadiation);
    panelPrincipalBlocDerniereRadiation.setWidget(0, 2, lMotifDerniereRadiation);
    panelPrincipalBlocDerniereRadiation.setWidget(0, 3, labelMotifDerniereRadiation);
    panelPrincipalBlocDerniereRadiation.getColumnFormatter().setWidth(0, "8%");
    panelPrincipalBlocDerniereRadiation.getColumnFormatter().setWidth(1, "42%");
    panelPrincipalBlocDerniereRadiation.getColumnFormatter().setWidth(2, "8%");
    panelPrincipalBlocDerniereRadiation.getColumnFormatter().setWidth(3, "42%");

    panelDerniereRadiation = new CaptionPanel(viewConstants.titreBlocDerniereRadiation());
    panelDerniereRadiation.add(panelPrincipalBlocDerniereRadiation);
}

From source file:com.square.composant.contrat.personne.morale.square.client.view.ContratsPersonneMoraleViewImpl.java

License:Open Source License

/** Construit le bloc des populations. */
private HorizontalPanel construireBlocPopulation() {
    final HorizontalPanel panelBlocPopulation = new HorizontalPanel();
    panelBlocPopulation.setSpacing(10);//w  w  w.j a  v  a 2 s.com

    // Tableau des populations
    tablePopulation = new FlexTable();
    tablePopulation.setCellPadding(6);
    tablePopulation.setStylePrimaryName(ContratsPersonneMoralePresenter.RESSOURCES.css().tableau());
    tablePopulation.getRowFormatter().setStylePrimaryName(0,
            ContratsPersonneMoralePresenter.RESSOURCES.css().ligneEnteteColonne());

    final Label lEntetePopulation = new Label(viewConstants.libelleEntetePopulation(), false);
    final Label lEnteteEffectif = new Label(viewConstants.libelleEnteteEffectif(), false);
    tablePopulation.setWidget(0, 0, lEntetePopulation);
    tablePopulation.setWidget(0, 1, lEnteteEffectif);
    tablePopulation.getCellFormatter().setHorizontalAlignment(0, 0, HasHorizontalAlignment.ALIGN_CENTER);
    tablePopulation.getCellFormatter().setHorizontalAlignment(0, 1, HasHorizontalAlignment.ALIGN_CENTER);

    // PieChart des populations
    panelPieChartPopulation = new VerticalPanel();
    panelPieChartPopulation.setVisible(false);

    panelBlocPopulation.add(tablePopulation);
    panelBlocPopulation.add(panelPieChartPopulation);

    return panelBlocPopulation;
}

From source file:com.square.composant.contrat.square.client.view.ContratContenuViewImpl.java

License:Open Source License

/** Construction du bloc du rcapitulatif des garanties. */
private void construireBlocRecapitulatifGaranties() {
    panelRecapitulatifGaranties = new FlexTable();
    panelRecapitulatifGaranties.setCellPadding(5);
    panelRecapitulatifGaranties.setWidth(ContratsViewImplConstants.POURCENT_100);
    panelRecapitulatifGaranties.setStylePrimaryName(resources.css().tableau());
    panelRecapitulatifGaranties.getRowFormatter().setStyleName(0, resources.css().ligneEnteteColonne());

    conteneurGlobal.add(panelRecapitulatifGaranties);
}

From source file:com.square.composant.contrat.square.client.view.ContratContenuViewImpl.java

License:Open Source License

/** Construction du bloc apporteur. */
private void construireBlocApporteur() {
    final Label lApporteur = new Label(viewConstants.libelleApporteur());
    final Label lGestionnaire = new Label(viewConstants.libelleGestionnaire());
    labelApporteur = new Label();
    labelGestionnaire = new Label();

    final FlexTable panelApporteur = new FlexTable();
    panelApporteur.setWidth(ContratsViewImplConstants.POURCENT_100);
    panelApporteur.setCellSpacing(5);/*from www  . j  a  v  a  2  s. co  m*/
    panelApporteur.setWidget(0, 0, lApporteur);
    panelApporteur.setWidget(0, 1, labelApporteur);
    panelApporteur.setWidget(0, 2, lGestionnaire);
    panelApporteur.setWidget(0, 3, labelGestionnaire);
    panelApporteur.getColumnFormatter().setWidth(0, "10%");
    panelApporteur.getColumnFormatter().setWidth(1, "42%");
    panelApporteur.getColumnFormatter().setWidth(2, "10%");
    panelApporteur.getColumnFormatter().setWidth(3, "42%");

    conteneurGlobal.add(panelApporteur);
}

From source file:com.square.composant.contrat.square.client.view.ContratContenuViewImpl.java

License:Open Source License

/** Construction des blocs des infos de paiement. */
private void construireBlocInfosPaiement() {
    panelContenuInfosPaiementPrestation = new FlexTable();
    panelContenuInfosPaiementPrestation.setCellPadding(5);
    panelContenuInfosPaiementCotisation = new FlexTable();
    panelContenuInfosPaiementCotisation.setCellPadding(5);

    final CaptionPanel panelInfosPaiementPrestation = new CaptionPanel(viewConstants.titrePaiementPrestation());
    final CaptionPanel panelInfosPaiementCotisation = new CaptionPanel(viewConstants.titrePaiementCotisation());
    panelInfosPaiementPrestation.add(panelContenuInfosPaiementPrestation);
    panelInfosPaiementCotisation.add(panelContenuInfosPaiementCotisation);
    panelInfosPaiementPrestation.setHeight(ContratContenuViewImplConstants.HAUTEUR_CAPTIONPANEL_PAIEMENT);
    panelInfosPaiementCotisation.setHeight(ContratContenuViewImplConstants.HAUTEUR_CAPTIONPANEL_PAIEMENT);

    // Infos Paiement
    final HorizontalPanel panelInfosPaiement = new HorizontalPanel();
    panelInfosPaiement.setWidth(ContratsViewImplConstants.POURCENT_100);
    panelInfosPaiement.setSpacing(5);//from   ww  w .j  a va 2  s  .c  om
    panelInfosPaiement.add(panelInfosPaiementPrestation);
    panelInfosPaiement.add(panelInfosPaiementCotisation);

    conteneurGlobal.add(panelInfosPaiement);
}

From source file:com.square.composant.contrat.square.client.view.ContratContenuViewImpl.java

License:Open Source License

@Override
public void chargerGarantieAjustement(final List<AjustementTarifModel> listesAjustements) {
    // Tableau des ajustements
    final Label lReference = new Label(viewConstants.titreColonneAjustementReference());
    final Label lLibelle = new Label(viewConstants.titreColonneAjustementLibelle());
    final Label lTarif = new Label(viewConstants.titreColonneAjustementTarif());
    final Label lDateDebut = new Label(viewConstants.titreColonneAjustementDateDebut());
    final Label lDateFin = new Label(viewConstants.titreColonneAjustementDateFin());

    final FlexTable panelTableauAjustements = new FlexTable();
    panelTableauAjustements.setWidth(ContratsViewImplConstants.POURCENT_100);
    panelTableauAjustements.setStylePrimaryName(resources.css().tableau());
    panelTableauAjustements.setCellPadding(6);
    panelTableauAjustements.setWidget(0, 0, lReference);
    panelTableauAjustements.setWidget(0, 1, lLibelle);
    panelTableauAjustements.setWidget(0, 2, lTarif);
    panelTableauAjustements.setWidget(0, 3, lDateDebut);
    panelTableauAjustements.setWidget(0, 4, lDateFin);
    panelTableauAjustements.getRowFormatter().setStyleName(0, resources.css().ligneEnteteColonne());
    for (int idxCol = 0; idxCol < 5; idxCol++) {
        panelTableauAjustements.getFlexCellFormatter().setHorizontalAlignment(0, idxCol,
                HasHorizontalAlignment.ALIGN_CENTER);
    }// w w w . j  av  a  2 s.co m

    for (AjustementTarifModel ajustement : listesAjustements) {
        final ContratGarantieAjustementViewImpl viewAjustement = new ContratGarantieAjustementViewImpl(
                ajustement);
        final int indexSuivant = panelTableauAjustements.getRowCount();
        panelTableauAjustements.setWidget(indexSuivant, 0, viewAjustement.getLabelReference());
        panelTableauAjustements.setWidget(indexSuivant, 1, viewAjustement.getLabelLibelle());
        panelTableauAjustements.setWidget(indexSuivant, 2, viewAjustement.getLabelTarif());
        panelTableauAjustements.setWidget(indexSuivant, 3, viewAjustement.getLabelDateDebut());
        panelTableauAjustements.setWidget(indexSuivant, 4, viewAjustement.getLabelDateFin());
        panelTableauAjustements.getFlexCellFormatter().setHorizontalAlignment(indexSuivant, 2,
                HasHorizontalAlignment.ALIGN_RIGHT);
        panelTableauAjustements.getFlexCellFormatter().setHorizontalAlignment(indexSuivant, 3,
                HasHorizontalAlignment.ALIGN_CENTER);
        panelTableauAjustements.getFlexCellFormatter().setHorizontalAlignment(indexSuivant, 4,
                HasHorizontalAlignment.ALIGN_CENTER);
    }

    // Ajustements
    final CaptionPanel captionPanelAjustements = new CaptionPanel(viewConstants.titreAjustements());
    captionPanelAjustements.add(panelTableauAjustements);
    conteneurGlobal.add(captionPanelAjustements);
}

From source file:com.square.composant.contrat.square.client.view.ContratGarantieViewImpl.java

License:Open Source License

/** Construit le contenu. */
private void construireBlocContenu(GarantieModel garantie) {
    conteneurGlobal = new FlexTable();
    conteneurGlobal.setWidth(ContratsViewImplConstants.POURCENT_100);
    conteneurGlobal.setCellPadding(2);/*from w  w w  .j a v  a 2  s  .  com*/

    // Code tarif
    if (garantie.getCodeTarif() != null) {
        final Label lCodeTarif = new Label(viewConstants.libelleCodeTarif(), false);
        final Label labelCodeTarif = new Label(garantie.getCodeTarif(), false);
        conteneurGlobal.setWidget(0, 0, lCodeTarif);
        conteneurGlobal.setWidget(0, 1, labelCodeTarif);
    }

    // Code gnration
    if (garantie.getCodeGeneration() != null) {
        final Label lCodeGeneration = new Label(viewConstants.libelleCodeGeneration(), false);
        final Label labelCodeGeneration = new Label(garantie.getCodeGeneration(), false);
        conteneurGlobal.setWidget(0, 2, lCodeGeneration);
        conteneurGlobal.setWidget(0, 3, labelCodeGeneration);
    }

    // Garantie Gestion
    if (garantie.getLibelleGarantieGestion() != null) {
        final Label lGarantieGestion = new Label(viewConstants.libelleGarantieGestion(), false);
        final Label labelGarantieGestion = new Label(garantie.getLibelleGarantieGestion(), false);
        conteneurGlobal.setWidget(0, 4, lGarantieGestion);
        conteneurGlobal.setWidget(0, 5, labelGarantieGestion);
    }

    // Produit Gestion
    if (garantie.getLibelleProduitGestion() != null) {
        final Label lProduitGestion = new Label(viewConstants.libelleProduitGestion(), false);
        final Label labelProduitGestion = new Label(garantie.getLibelleProduitGestion(), false);
        conteneurGlobal.setWidget(0, 6, lProduitGestion);
        conteneurGlobal.setWidget(0, 7, labelProduitGestion);
    }

    // Loi Madelin
    final Label lLoiMadelin = new Label(viewConstants.libelleLoiMadelin(), false);
    final CheckBox cbLoiMadelin = new CheckBox();
    cbLoiMadelin.setEnabled(false);
    cbLoiMadelin.setValue(garantie.getLoiMadelin());
    conteneurGlobal.setWidget(1, 0, lLoiMadelin);
    conteneurGlobal.setWidget(1, 1, cbLoiMadelin);

    // Montant souscrit
    if (garantie.getMontantSouscrit() != null) {
        final Label lMontantSouscrit = new Label(viewConstants.libelleMontantSouscrit(), false);
        final Label labelMontantSouscrit = new Label(numberFormat.format(garantie.getMontantSouscrit()), false);
        conteneurGlobal.setWidget(1, 2, lMontantSouscrit);
        conteneurGlobal.setWidget(1, 3, labelMontantSouscrit);
    }

    conteneurGlobal.getColumnFormatter().setWidth(0, "14%");
    conteneurGlobal.getColumnFormatter().setWidth(1, "8%");
    conteneurGlobal.getColumnFormatter().setWidth(2, "12%");
    conteneurGlobal.getColumnFormatter().setWidth(3, "5%");
    conteneurGlobal.getColumnFormatter().setWidth(4, "12%");
    conteneurGlobal.getColumnFormatter().setWidth(5, "24%");
    conteneurGlobal.getColumnFormatter().setWidth(6, "12%");
    conteneurGlobal.getColumnFormatter().setWidth(7, "13%");
}

From source file:com.square.composant.contrat.square.client.view.ContratsViewImpl.java

License:Open Source License

/** Construction du bloc synthse. */
private void construireBlocSynthese() {
    final Label lStatut = new Label(viewConstants.libelleStatut());
    final Label lPremiereMutualisation = new Label(viewConstants.libellePremiereMutualisation());
    final Label lFidelite = new Label(viewConstants.libelleFidelite());
    final Label lTeletransmission = new Label(viewConstants.libelleTeletransmission());
    lPopulation = new Label(viewConstants.libellePopulation());
    final Label lGestionContrat = new Label(viewConstants.libelleGestionContrat());
    lGestionnaire = new Label(viewConstants.libelleGestionnaire());
    labelStatut = new Label();
    labelPremiereMutualisation = new Label();
    labelFidelite = new Label();
    labelTeletransmission = new Label();
    labelPopulation = new Label();
    labelGestionContrat = new Label();
    labelGestionnaire = new Label();

    // Panel des infos
    final FlexTable panelInfos = new FlexTable();
    panelInfos.setWidth(ContratsViewImplConstants.POURCENT_100);
    panelInfos.setCellSpacing(5);/*w  w w.jav  a2  s .co  m*/
    panelInfos.setWidget(0, 0, lStatut);
    panelInfos.setWidget(0, 1, labelStatut);
    panelInfos.setWidget(0, 2, lPremiereMutualisation);
    panelInfos.setWidget(0, 3, labelPremiereMutualisation);
    panelInfos.setWidget(0, 4, lFidelite);
    panelInfos.setWidget(0, 5, labelFidelite);
    panelInfos.setWidget(1, 0, lGestionnaire);
    panelInfos.setWidget(1, 1, labelGestionnaire);
    panelInfos.setWidget(1, 2, lGestionContrat);
    panelInfos.setWidget(1, 3, labelGestionContrat);
    panelInfos.setWidget(1, 4, lTeletransmission);
    panelInfos.setWidget(1, 5, labelTeletransmission);
    panelInfos.setWidget(2, 0, lPopulation);
    panelInfos.setWidget(2, 1, labelPopulation);
    panelInfos.getColumnFormatter().setWidth(0, "11%");
    panelInfos.getColumnFormatter().setWidth(1, "22%");
    panelInfos.getColumnFormatter().setWidth(2, "14%");
    panelInfos.getColumnFormatter().setWidth(3, "19%");
    panelInfos.getColumnFormatter().setWidth(4, "13%");
    panelInfos.getColumnFormatter().setWidth(5, "20%");

    // Bloc dernire radiation
    contruireBlocDerniereRadiation();
    // Bloc du rcapitulatif des garanties
    construireBlocRecapitulatifGaranties();
    // Statistiques
    construireBlocStatistiques();

    final ScrollPanel scrollPanelRecapitulatifGaranties = new ScrollPanel(panelRecapitulatifGaranties);
    scrollPanelRecapitulatifGaranties.setWidth(ContratsViewImplConstants.LARGEUR_SCROLL_PANEL_SYNTHESE);

    final VerticalPanel panelBlocSynthese = new VerticalPanel();
    panelBlocSynthese.setWidth(ContratsViewImplConstants.POURCENT_100);
    panelBlocSynthese.setSpacing(10);
    panelBlocSynthese.add(panelInfos);
    panelBlocSynthese.add(panelDerniereRadiation);
    panelBlocSynthese.add(scrollPanelRecapitulatifGaranties);
    panelBlocSynthese.add(panelStats);
    panelBlocSynthese.setCellHorizontalAlignment(scrollPanelRecapitulatifGaranties, HasAlignment.ALIGN_CENTER);
    panelBlocSynthese.setCellHorizontalAlignment(panelStats, HasAlignment.ALIGN_CENTER);

    afficherInfosCollectif(false);
    afficherDerniereRadiation(false);

    final CaptionPanel captionPanelBlocSynthese = new CaptionPanel(viewConstants.titreBlocSynthese());
    captionPanelBlocSynthese.add(panelBlocSynthese);
    conteneurGlobal.add(captionPanelBlocSynthese);
}

From source file:com.square.composant.contrat.square.client.view.ContratsViewImpl.java

License:Open Source License

/** Construction du bloc Dernire radiation. */
private void contruireBlocDerniereRadiation() {
    final Label lDateDerniereRadiation = new Label(viewConstants.libelleDateDerniereRadiation());
    final Label lMotifDerniereRadiation = new Label(viewConstants.libelleMotifDerniereRadiation());
    labelDateDerniereRadiation = new Label();
    labelMotifDerniereRadiation = new Label();

    final FlexTable panelPrincipalBlocDerniereRadiation = new FlexTable();
    panelPrincipalBlocDerniereRadiation.setWidth(ContratsViewImplConstants.POURCENT_100);
    panelPrincipalBlocDerniereRadiation.setWidget(0, 0, lDateDerniereRadiation);
    panelPrincipalBlocDerniereRadiation.setWidget(0, 1, labelDateDerniereRadiation);
    panelPrincipalBlocDerniereRadiation.setWidget(0, 2, lMotifDerniereRadiation);
    panelPrincipalBlocDerniereRadiation.setWidget(0, 3, labelMotifDerniereRadiation);
    panelPrincipalBlocDerniereRadiation.getColumnFormatter().setWidth(0, "8%");
    panelPrincipalBlocDerniereRadiation.getColumnFormatter().setWidth(1, "42%");
    panelPrincipalBlocDerniereRadiation.getColumnFormatter().setWidth(2, "8%");
    panelPrincipalBlocDerniereRadiation.getColumnFormatter().setWidth(3, "42%");

    panelDerniereRadiation = new CaptionPanel(viewConstants.titreBlocDerniereRadiation());
    panelDerniereRadiation.add(panelPrincipalBlocDerniereRadiation);
}

From source file:com.square.composant.contrat.square.client.view.ContratsViewImpl.java

License:Open Source License

/** Construction du bloc du rcapitulatif des garanties. */
private void construireBlocRecapitulatifGaranties() {
    panelRecapitulatifGaranties = new FlexTable();
    panelRecapitulatifGaranties.setCellPadding(5);
    panelRecapitulatifGaranties.setWidth(ContratsViewImplConstants.POURCENT_100);
    panelRecapitulatifGaranties.setStylePrimaryName(ContratsPresenter.RESOURCES.css().tableau());
    panelRecapitulatifGaranties.getRowFormatter().setStylePrimaryName(0,
            ContratsPresenter.RESOURCES.css().ligneEnteteColonne());
}