Changeset 6046 for vlo/trunk/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/wicket/components/SolrFieldLabel.java
- Timestamp:
- 02/25/15 08:28:47 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vlo/trunk/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/wicket/components/SolrFieldLabel.java
r4871 r6046 35 35 * @param documentModel model that holds document to show field of 36 36 * @param fieldName name of field to show value of 37 */38 public SolrFieldLabel(String id, IModel<SolrDocument> documentModel, String fieldName) {39 super(id, new SolrFieldStringModel(documentModel, fieldName));40 }41 42 /**43 *44 * @param id id of label45 * @param documentModel model that holds document to show field of46 * @param fieldName name of field to show value of47 * @param maxLength maximum length to allow48 * @param truncatePoint point to truncate if string is too long49 */50 public SolrFieldLabel(String id, IModel<SolrDocument> documentModel, String fieldName, int maxLength, int truncatePoint) {51 super(id,52 new TruncatingStringModel(53 new SolrFieldStringModel(documentModel, fieldName), maxLength, truncatePoint));54 }55 56 /**57 *58 * @param id id of label59 * @param documentModel model that holds document to show field of60 * @param fieldName name of field to show value of61 37 * @param nullFallback string to show if actual value is null 62 38 */
Note: See TracChangeset
for help on using the changeset viewer.