01: package net.sourceforge.squirrel_sql.fw.gui.action;
02:
03: import net.sourceforge.squirrel_sql.fw.datasetviewer.DataSetViewerTablePanel;
04:
05: public class ShowRowNumbersCommand {
06: private DataSetViewerTablePanel _viewer;
07: private boolean _showRowNumbers;
08:
09: public ShowRowNumbersCommand(DataSetViewerTablePanel table,
10: boolean showRowNumbers) {
11: _viewer = table;
12: _showRowNumbers = showRowNumbers;
13: }
14:
15: public void execute() {
16: _viewer.setShowRowNumbers(_showRowNumbers);
17: }
18: }
|