Author: echatellier Date: 2013-04-02 15:18:05 +0200 (Tue, 02 Apr 2013) New Revision: 195 Url: http://forge.codelutin.com/projects/cantharella/repository/revisions/195 Log: Format code Modified: trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/campagne/ListCampagnesPage.java trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/document/ManageDocumentPage.java trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/extraction/ListExtractionsPage.java trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/lot/ListLotsPage.java trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/molecule/ListMoleculesPage.java trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/personne/ListPersonnesPage.java trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/purification/ListPurificationsPage.java trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/specimen/ListSpecimensPage.java trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/station/ListStationsPage.java trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/testBio/ListTestsBioPage.java trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/utils/data/TableExportToolbar.java Modified: trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/campagne/ListCampagnesPage.java =================================================================== --- trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/campagne/ListCampagnesPage.java 2013-04-02 13:17:29 UTC (rev 194) +++ trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/campagne/ListCampagnesPage.java 2013-04-02 13:18:05 UTC (rev 195) @@ -122,7 +122,8 @@ getString("Campagne.codePays")), "codePays", "codePays", WebContext.COUNTRIES.get(getSession() .getLocale()))); - columns.add(new DocumentTooltipColumn<Campagne, String>(Model.of(getString("ListDocumentsPage.AttachedDocuments"))) { + columns.add(new DocumentTooltipColumn<Campagne, String>(Model + .of(getString("ListDocumentsPage.AttachedDocuments"))) { @Override public void onClick(IModel<Campagne> model) { int idCampagne = model.getObject().getIdCampagne(); Modified: trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/document/ManageDocumentPage.java =================================================================== --- trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/document/ManageDocumentPage.java 2013-04-02 13:17:29 UTC (rev 194) +++ trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/document/ManageDocumentPage.java 2013-04-02 13:18:05 UTC (rev 195) @@ -242,8 +242,8 @@ .setEnabled(false)); // Type de document - final DropDownChoice<TypeDocument> typeDocumentChoice = new DropDownChoice<TypeDocument>( - "TypeDocument.nom", new PropertyModel<TypeDocument>(documentModel, "typeDocument"), typeDocuments); + final DropDownChoice<TypeDocument> typeDocumentChoice = new DropDownChoice<TypeDocument>("TypeDocument.nom", + new PropertyModel<TypeDocument>(documentModel, "typeDocument"), typeDocuments); typeDocumentChoice.setOutputMarkupId(true); typeDocumentChoice.setNullValid(false); formView.add(typeDocumentChoice); Modified: trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/extraction/ListExtractionsPage.java =================================================================== --- trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/extraction/ListExtractionsPage.java 2013-04-02 13:17:29 UTC (rev 194) +++ trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/extraction/ListExtractionsPage.java 2013-04-02 13:18:05 UTC (rev 195) @@ -165,7 +165,8 @@ columns.add(new ExtraitsColumn(new Model<String>(templatePage.getString("Extraction.extraits")), templatePage .getLocale())); - columns.add(new DocumentTooltipColumn<Extraction, String>(Model.of(templatePage.getString("ListDocumentsPage.AttachedDocuments"))) { + columns.add(new DocumentTooltipColumn<Extraction, String>(Model.of(templatePage + .getString("ListDocumentsPage.AttachedDocuments"))) { @Override public void onClick(IModel<Extraction> model) { int idExtraction = model.getObject().getIdExtraction(); Modified: trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/lot/ListLotsPage.java =================================================================== --- trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/lot/ListLotsPage.java 2013-04-02 13:17:29 UTC (rev 194) +++ trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/lot/ListLotsPage.java 2013-04-02 13:18:05 UTC (rev 195) @@ -196,7 +196,8 @@ .getString("Campagne.codePays")), "campagne.codePays", "campagne.codePays", WebContext.COUNTRIES .get(templatePage.getSession().getLocale()))); - columns.add(new DocumentTooltipColumn<Lot, String>(Model.of(templatePage.getString("ListDocumentsPage.AttachedDocuments"))) { + columns.add(new DocumentTooltipColumn<Lot, String>(Model.of(templatePage + .getString("ListDocumentsPage.AttachedDocuments"))) { @Override public void onClick(IModel<Lot> model) { int idLot = model.getObject().getIdLot(); Modified: trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/molecule/ListMoleculesPage.java =================================================================== --- trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/molecule/ListMoleculesPage.java 2013-04-02 13:17:29 UTC (rev 194) +++ trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/molecule/ListMoleculesPage.java 2013-04-02 13:18:05 UTC (rev 195) @@ -191,7 +191,8 @@ columns.add(new PropertyColumn<MoleculeProvenanceBean, String>(new Model<String>(templatePage .getString("Molecule.provenance.programme")), "lot.campagne.programme", "lot.campagne.programme")); - columns.add(new DocumentTooltipColumn<MoleculeProvenanceBean, String>(Model.of(templatePage.getString("ListDocumentsPage.AttachedDocuments"))) { + columns.add(new DocumentTooltipColumn<MoleculeProvenanceBean, String>(Model.of(templatePage + .getString("ListDocumentsPage.AttachedDocuments"))) { @Override public void onClick(IModel<MoleculeProvenanceBean> model) { int idMolecule = model.getObject().getIdMolecule(); Modified: trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/personne/ListPersonnesPage.java =================================================================== --- trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/personne/ListPersonnesPage.java 2013-04-02 13:17:29 UTC (rev 194) +++ trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/personne/ListPersonnesPage.java 2013-04-02 13:18:05 UTC (rev 195) @@ -152,7 +152,8 @@ } }); - columns.add(new DocumentTooltipColumn<Personne, String>(Model.of(getString("ListDocumentsPage.AttachedDocuments"))) { + columns.add(new DocumentTooltipColumn<Personne, String>(Model + .of(getString("ListDocumentsPage.AttachedDocuments"))) { @Override public void onClick(IModel<Personne> model) { int idPersonne = model.getObject().getIdPersonne(); Modified: trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/purification/ListPurificationsPage.java =================================================================== --- trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/purification/ListPurificationsPage.java 2013-04-02 13:17:29 UTC (rev 194) +++ trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/purification/ListPurificationsPage.java 2013-04-02 13:18:05 UTC (rev 195) @@ -177,7 +177,8 @@ } }); - columns.add(new DocumentTooltipColumn<Purification, String>(Model.of(templatePage.getString("ListDocumentsPage.AttachedDocuments"))) { + columns.add(new DocumentTooltipColumn<Purification, String>(Model.of(templatePage + .getString("ListDocumentsPage.AttachedDocuments"))) { @Override public void onClick(IModel<Purification> model) { int idPurification = model.getObject().getIdPurification(); Modified: trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/specimen/ListSpecimensPage.java =================================================================== --- trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/specimen/ListSpecimensPage.java 2013-04-02 13:17:29 UTC (rev 194) +++ trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/specimen/ListSpecimensPage.java 2013-04-02 13:18:05 UTC (rev 195) @@ -156,7 +156,8 @@ } }); - columns.add(new DocumentTooltipColumn<Specimen, String>(Model.of(templatePage.getString("ListDocumentsPage.AttachedDocuments"))) { + columns.add(new DocumentTooltipColumn<Specimen, String>(Model.of(templatePage + .getString("ListDocumentsPage.AttachedDocuments"))) { @Override public void onClick(IModel<Specimen> model) { int idSpecimen = model.getObject().getIdSpecimen(); Modified: trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/station/ListStationsPage.java =================================================================== --- trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/station/ListStationsPage.java 2013-04-02 13:17:29 UTC (rev 194) +++ trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/station/ListStationsPage.java 2013-04-02 13:18:05 UTC (rev 195) @@ -146,7 +146,8 @@ columns.add(new PropertyColumn<Station, String>(new Model<String>(templatePage.getString("Station.longitude")), "longitude", "longitude")); - columns.add(new DocumentTooltipColumn<Station, String>(Model.of(templatePage.getString("ListDocumentsPage.AttachedDocuments"))) { + columns.add(new DocumentTooltipColumn<Station, String>(Model.of(templatePage + .getString("ListDocumentsPage.AttachedDocuments"))) { @Override public void onClick(IModel<Station> model) { int idStation = model.getObject().getIdStation(); Modified: trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/testBio/ListTestsBioPage.java =================================================================== --- trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/testBio/ListTestsBioPage.java 2013-04-02 13:17:29 UTC (rev 194) +++ trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/pages/domain/testBio/ListTestsBioPage.java 2013-04-02 13:18:05 UTC (rev 195) @@ -199,7 +199,8 @@ } }); - columns.add(new DocumentTooltipColumn<ResultatTestBio, String>(Model.of(templatePage.getString("ListDocumentsPage.AttachedDocuments"))) { + columns.add(new DocumentTooltipColumn<ResultatTestBio, String>(Model.of(templatePage + .getString("ListDocumentsPage.AttachedDocuments"))) { @Override public void onClick(IModel<ResultatTestBio> model) { int idTestBio = model.getObject().getTestBio().getIdTestBio(); Modified: trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/utils/data/TableExportToolbar.java =================================================================== --- trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/utils/data/TableExportToolbar.java 2013-04-02 13:17:29 UTC (rev 194) +++ trunk/cantharella.web/src/main/java/nc/ird/cantharella/web/utils/data/TableExportToolbar.java 2013-04-02 13:18:05 UTC (rev 195) @@ -84,7 +84,7 @@ } addDataExporter(csvDataExporter); } - + /** * Creates a new link to the exported data for the provided {@link IDataExporter}. * @@ -94,20 +94,17 @@ * The data exporter to use to export the data. * @return a new link to the exported data for the provided {@link IDataExporter}. */ - protected Component createExportLink(String componentId, final IDataExporter dataExporter) - { - IResource resource = new ResourceStreamResource() - { + protected Component createExportLink(String componentId, final IDataExporter dataExporter) { + IResource resource = new ResourceStreamResource() { @Override - protected IResourceStream getResourceStream() - { + protected IResourceStream getResourceStream() { return new DataExportResourceStreamWriter(dataExporter, getTable()); } }.setFileName(getFileNameModel().getObject() + "." + dataExporter.getFileNameExtension()); return new ImageResourceLink(componentId, resource, dataExporter); } - + /** * Panel which include a image. Used with the LinkableImagePropertyColumn$LinkablePanel.html file */