Esempio n. 1
0
 public RestLayout(final ComponentContext context) {
   super("gap 10 5", "", "align top", "");
   this.context = context;
   add(buildRestFields());
   add(new SeparatorLayoutComponentImpl(true, "grow y"));
   add(RunnerCountersDisplay.forRunner(context.getComponent()));
 }
Esempio n. 2
0
 private PropertyLayoutComponentImpl<String> property(String name, String label, String style) {
   ImmutableMap.Builder<String, Object> builder =
       ImmutableMap.<String, Object>builder()
           .put(PROPERTY, context.getProperty(name))
           .put(LABEL, label)
           .put(CONSTRAINTS, "spanx 2");
   if (style != null) builder.put("style", style);
   return new PropertyLayoutComponentImpl<String>(builder.build());
 }