Example #1
0
 /**
  * DOCUMENT ME!
  *
  * @param mappings DOCUMENT ME!
  */
 public void setContent(List<Mapping> mappings) {
   if (mappings == null) {
     mappings = TypeSafeCollections.newArrayList();
   }
   // this.mappings = mappings;
   // TableSorter ts = new TableSorter(new MappingModel(mappings));
   // tblMappings.setModel(ts);
   if (tblMappings.getModel() != null) {
     tblMappings.getModel().removeTableModelListener(topComponent);
   }
   tblMappings.setModel(new MappingModel(mappings));
   tblMappings.getModel().addTableModelListener(topComponent);
 }
Example #2
0
 /**
  * DOCUMENT ME!
  *
  * @return the mapping model
  */
 private MappingModel getMappingModel() {
   return tblMappings.getModel();
 }
Example #3
0
 /**
  * DOCUMENT ME!
  *
  * @param tml DOCUMENT ME!
  */
 public void setTableListener(final TableModelListener tml) {
   this.topComponent = tml;
   if ((tblMappings != null) && (tblMappings.getModel() != null)) {
     this.tblMappings.getModel().addTableModelListener(topComponent);
   }
 }