1 15 package org.apache.tapestry.contrib.table.components; 16 17 import org.apache.hivemind.impl.MessageFormatter; 18 import org.apache.hivemind.service.ClassFabUtils; 19 import org.apache.tapestry.IComponent; 20 21 25 public class TableMessages 26 { 27 protected static MessageFormatter _formatter = new MessageFormatter(TableMessages.class, 28 "TableStrings"); 29 30 static String notAColumn(IComponent component, String expression) 31 { 32 return _formatter.format("not-a-column", component.getExtendedId(), expression); 33 } 34 35 static String invalidTableSource(IComponent component, Object sourceValue) 36 { 37 return _formatter.format("invalid-table-source", component.getExtendedId(), ClassFabUtils 38 .getJavaClassName(sourceValue.getClass())); 39 } 40 41 static String invalidTableColumns(IComponent component, Object columnSource) 42 { 43 return _formatter.format("invalid-table-column", component.getExtendedId(), ClassFabUtils 44 .getJavaClassName(columnSource.getClass())); 45 } 46 47 static String missingTableModel(IComponent component) 48 { 49 return _formatter.format("missing-table-model", component.getExtendedId()); 50 } 51 52 static String columnsOnlyPlease(IComponent component) 53 { 54 return _formatter.format("columns-only-please", component.getExtendedId()); 55 } 56 57 public static String invalidTableStateFormat(String value) { 58 return _formatter.format("invalid-table-state-format", value); 59 } 60 } | Popular Tags |