Exemplo n.º 1
0
 private Widget createStateInformation() {
   TableBuilder tb = ScrumGwt.createFieldTable();
   tb.addFieldRow(
       "activeServiceCallCount",
       new Label(String.valueOf(serviceCaller.getActiveServiceCallCount())));
   tb.addFieldRow(
       "conversationNumber", new Label(String.valueOf(serviceCaller.getConversationNumber())));
   tb.addFieldRow("entityIdBase", new Label(dao.getEntityIdBase()));
   tb.addFieldRow("entityIdCounter", new Label(String.valueOf(dao.getEntityIdCounter())));
   return tb.createTable();
 }
Exemplo n.º 2
0
 @Override
 protected void onUpdate() {
   TableBuilder tb = new TableBuilder();
   tb.setWidth(null);
   tb.setCellSpacing(5);
   for (Map.Entry<String, Integer> entry : dao.getEntityCounts().entrySet()) {
     tb.addRow(Gwt.createFieldLabel(entry.getKey()), new Label(String.valueOf(entry.getValue())));
   }
   entityCountWrapper.setWidget(tb.createTable());
   stateInformationWrapper.setWidget(createStateInformation());
   super.onUpdate();
 }
Exemplo n.º 3
0
 protected scrum.client.Dao getDao() {
   return scrum.client.Dao.get();
 }