/[svn]/jsampler/trunk/src/org/jsampler/view/InstrumentsDbTableModel.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/view/InstrumentsDbTableModel.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1284 by iliev, Thu May 24 21:43:45 2007 UTC revision 1285 by iliev, Fri Aug 10 19:55:03 2007 UTC
# Line 86  public class InstrumentsDbTableModel ext Line 86  public class InstrumentsDbTableModel ext
86          private boolean showInstrumentFileColumn = false;          private boolean showInstrumentFileColumn = false;
87          private boolean showInstrumentNrColumn = false;          private boolean showInstrumentNrColumn = false;
88          private boolean showKeywordsColumn = false;          private boolean showKeywordsColumn = false;
89            private boolean showDummyColumn = false;
90                    
91          private DbDirectoryTreeNode directoryNode;          private DbDirectoryTreeNode directoryNode;
92                    
# Line 250  public class InstrumentsDbTableModel ext Line 251  public class InstrumentsDbTableModel ext
251                  updateColumns();                  updateColumns();
252          }          }
253                    
254            /** Gets whether the <b>Dummy</b> column is shown. */
255            public boolean
256            getShowDummyColumn() { return showDummyColumn; }
257            
258            /** Sets whether the <b>Dummy</b> column should be shown. */
259            public void
260            setShowDummyColumn(boolean b) {
261                    if(b == showDummyColumn) return;
262                    showDummyColumn = b;
263                    updateColumns();
264            }
265            
266          /**          /**
267           * Returns a comparator for the specified column or <code>null</code>           * Returns a comparator for the specified column or <code>null</code>
268           * if there is no suitable comparator for the specified column.           * if there is no suitable comparator for the specified column.
# Line 367  public class InstrumentsDbTableModel ext Line 380  public class InstrumentsDbTableModel ext
380                  if(showInstrumentFileColumn) columns.add(ColumnType.INSTRUMENT_FILE);                  if(showInstrumentFileColumn) columns.add(ColumnType.INSTRUMENT_FILE);
381                  if(showInstrumentNrColumn) columns.add(ColumnType.INSTRUMENT_NR);                  if(showInstrumentNrColumn) columns.add(ColumnType.INSTRUMENT_NR);
382                  if(showKeywordsColumn) columns.add(ColumnType.KEYWORDS);                  if(showKeywordsColumn) columns.add(ColumnType.KEYWORDS);
383                  columns.add(ColumnType.DUMMY);                  if(showDummyColumn) columns.add(ColumnType.DUMMY);
384                                    
385                  fireTableStructureChanged();                  fireTableStructureChanged();
386          }          }

Legend:
Removed from v.1284  
changed lines
  Added in v.1285

  ViewVC Help
Powered by ViewVC