Example #1
0
 /** Update the location label, subclasses can override. */
 protected void updateHeaderLabel() {
   Data d = getDisplayListData();
   if (d == null) {
     super.updateHeaderLabel();
   }
   Text text = null;
   if (d instanceof FieldImpl) {
     int index = getCurrentIndex();
     if (index >= 0) {
       try {
         text = (Text) ((FieldImpl) d).getSample(index, false);
       } catch (Exception ve) {
       }
     }
   } else {
     text = (Text) d;
   }
   if (text != null) {
     headerLabel.setText(text.toString());
   } else {
     super.updateHeaderLabel();
   }
 }