public ColumnSelectionMenu(LimeJTable table){
  _table=table;
  DataLineModel<?,?> model=(DataLineModel<?,?>)_table.getModel();
  ActionListener reverter=new ReverterListener();
  JMenuItem revert=new SkinMenuItem(REVERT_DEFAULT);
  ColumnPreferenceHandler cph=_table.getColumnPreferenceHandler();
  TableSettings settings=_table.getTableSettings();
  if ((cph == null || cph.isDefault()) && (settings == null || settings.isDefault()))   revert.setEnabled(false);
 else   revert.addActionListener(reverter);
  _menu.add(revert);
  if (settings != null) {
    JMenu options=createMoreOptions(settings);
    _menu.add(options);
  }
  _menu.addSeparator();
  addTableColumnChoices(new SelectionActionListener(),model,table);
}

public ColumnSelectionMenu ( LimeJTable table ) { _table = table ; DataLineModel < ? , ? > model = ( DataLineModel < ? , ? > ) _table . getModel ( ) ; ActionListener reverter = new ReverterListener ( ) ; JMenuItem revert = new SkinMenuItem ( REVERT_DEFAULT ) ; ColumnPreferenceHandler cph = _table . getColumnPreferenceHandler ( ) ; TableSettings settings = _table . getTableSettings ( ) ; if ( ( cph == null || cph . isDefault ( ) ) && ( settings == null || settings . isDefault ( ) ) ) revert . setEnabled ( false ) ; else revert . addActionListener ( reverter ) ; _menu . add ( revert ) ; if ( settings != null ) { JMenu options = createMoreOptions ( settings ) ; _menu . add ( options ) ; } _menu . addSeparator ( ) ; addTableColumnChoices ( new SelectionActionListener ( ) , model , table ) ; }
constructs the popupmenu & actionlistener associated with the table & model .
