예제 #1
0
 /* (non-Javadoc)
  */
 @Override
 public UIElement getComponentFor(Object o) {
   Object[] a = (Object[]) o;
   UITable table = UITable.of();
   int i = 0;
   for (Object value : a) {
     UITableRow row = UITableRow.of(UITableDetail.of("" + i), link(value));
     table = table.with(row);
     i++;
   }
   return table;
 }
예제 #2
0
 UITableDetail detail(String value, int width) {
   return UITableDetail.of(value, width);
 }
예제 #3
0
 UITableDetail detail(String value) {
   return UITableDetail.of(value);
 }
예제 #4
0
 UITableDetail detail(String value, CSS css) {
   return UITableDetail.of(value, css);
 }
예제 #5
0
 private UITableDetail link(Object o) {
   return UITableDetail.of(ObjectLinks.of().to("" + o, o));
 }