01: package org.swingml.tablebrowser.ext;
02:
03: import javax.swing.*;
04:
05: /**
06: * @author NumberSix
07: */
08: public interface ITableBrowserCellNavigationManager {
09:
10: /**
11: * Return a list of KeyStrokes this CellEditorManager wants to manage.
12: */
13: public abstract KeyStroke[] getKeyStrokes();
14:
15: /**
16: * Return the TableBrowserComponent this Manager is managing navigation for.
17: */
18: public abstract TableBrowserComponent getTableBrowser();
19:
20: /**
21: * Notification that the given row and column was just edited.
22: */
23: public abstract void handleCellEditEnd(int row, int column);
24:
25: /**
26: * Notification that the given row and column are about to be edited.
27: *
28: * Return False if the editing should not be performed. Return True otherwise.
29: */
30: public abstract boolean handleCellEditStart(int row, int column);
31:
32: /**
33: * Notification that a binded Keystroke was used from the given cell (row, column locations)
34: */
35: public abstract void handleCellNavigation(int row, int column);
36:
37: /**
38: * Setter method to hold on to the TableBrowserComponent this Manager is managing navigation for.
39: */
40: public abstract void setTableBrowser(
41: TableBrowserComponent tableBrowser);
42: }
|