Exemplo n.º 1
0
 private String getLongName() {
   if (pitcherColumn != null) {
     if (positionFilterProvider.get().isPitcherFilter()) {
       return pitcherColumn.getLongName();
     }
     if (positionFilterProvider.get().isPitchersAndBattersFilter()
         && !column.getLongName().equals(pitcherColumn.getLongName())) {
       return column.getLongName() + "/" + pitcherColumn.getLongName();
     }
   }
   return column.getLongName();
 }
Exemplo n.º 2
0
 private SafeHtml getShortName() {
   if (pitcherColumn != null) {
     if (positionFilterProvider.get().isPitcherFilter()
         || column.getShortName().equals(pitcherColumn.getShortName())) {
       return new SafeHtmlBuilder().appendEscaped(pitcherColumn.getShortName()).toSafeHtml();
     }
     if (positionFilterProvider.get().isPitchersAndBattersFilter()) {
       return TEMPLATES.splitHeader(
           UnclaimedPlayerTable.CSS.splitHeader(),
           UnclaimedPlayerTable.CSS.batterStat(),
           column.getShortName(),
           UnclaimedPlayerTable.CSS.pitcherStat(),
           pitcherColumn.getShortName());
     }
   }
   return new SafeHtmlBuilder().appendEscaped(column.getShortName()).toSafeHtml();
 }