Package com.illumon.iris.console.events
Class BasicTableEventHandlerFactory
java.lang.Object
com.illumon.iris.console.events.BasicTableEventHandlerFactory
- All Implemented Interfaces:
TableEventHandlerFactory
public class BasicTableEventHandlerFactory extends Object implements TableEventHandlerFactory
Handles registration for the following actions on IrisTables
Double Click on cell
Right Click on cell(s)
Right Click on table header
Each action has a Global and Column specific registration method so that
consumers can handle specific columns or any column.
Actions may be configured at runtime, or via the properties file using the following
properties:
Global Configurations:
- IrisConsole.tableGlobalDoubleClickHandler=<class1>,<class2>,...,<classN>
- IrisConsole.tableGlobalRightClickHandler=<class1>,<class2>,...,<classN>
- IrisConsole.tableHeaderGlobalRightClickHandler=<class1>,<class2>,...,<classN>
- IrisConsole.tableDoubleClickHandler.<Column Name>=<class1>,<class2>,...,<classN>
- IrisConsole.tableRightClickHandler..<Column Name>=<class1>,<class2>,...,<classN>
- IrisConsole.tableHeaderRightClickHandler..<Column Name>=<class1>,<class2>,...,<classN>
-
Method Summary
-
Method Details
-
getInstance
-
init
-
addDoubleClickHandler
Description copied from interface:TableEventHandlerFactory
Add a handler for double click events on cells in a specific column- Specified by:
addDoubleClickHandler
in interfaceTableEventHandlerFactory
- Parameters:
column
- The column namehandler
- The handler to attach
-
addRightClickHandler
Description copied from interface:TableEventHandlerFactory
Add a handler for right click events on a specific column. Handlers should provide popup menu contributions.- Specified by:
addRightClickHandler
in interfaceTableEventHandlerFactory
-
addHeaderRightClickHandler
Description copied from interface:TableEventHandlerFactory
Add a handler for right click events on a specific column header. Handlers should provide popup menu contributions.- Specified by:
addHeaderRightClickHandler
in interfaceTableEventHandlerFactory
-
addGlobalDoubleClickHandler
Description copied from interface:TableEventHandlerFactory
Add a handler for double click events anywhere in a table body.- Specified by:
addGlobalDoubleClickHandler
in interfaceTableEventHandlerFactory
-
addGlobalRightClickHandler
Description copied from interface:TableEventHandlerFactory
Add a handler for right click events on any column in the table. Handlers should provide popup menu contributions.- Specified by:
addGlobalRightClickHandler
in interfaceTableEventHandlerFactory
-
addGlobalHeaderRightClickHandler
Description copied from interface:TableEventHandlerFactory
Add a handler for right click events on any column header in the table. Handlers should provide popup menu contributions.- Specified by:
addGlobalHeaderRightClickHandler
in interfaceTableEventHandlerFactory
-
removeDoubleClickHandler
- Specified by:
removeDoubleClickHandler
in interfaceTableEventHandlerFactory
-
removeRightClickHandler
- Specified by:
removeRightClickHandler
in interfaceTableEventHandlerFactory
-
removeHeaderRightClickHandler
- Specified by:
removeHeaderRightClickHandler
in interfaceTableEventHandlerFactory
-
removeGlobalDoubleClickHandler
- Specified by:
removeGlobalDoubleClickHandler
in interfaceTableEventHandlerFactory
-
removeGlobalRightClickHandler
- Specified by:
removeGlobalRightClickHandler
in interfaceTableEventHandlerFactory
-
removeGlobalHeaderRightClickHandler
- Specified by:
removeGlobalHeaderRightClickHandler
in interfaceTableEventHandlerFactory
-
getDoubleClickHandlers
- Specified by:
getDoubleClickHandlers
in interfaceTableEventHandlerFactory
-
getRightClickHandlers
- Specified by:
getRightClickHandlers
in interfaceTableEventHandlerFactory
-
getHeaderRightClickHandlers
- Specified by:
getHeaderRightClickHandlers
in interfaceTableEventHandlerFactory
-
getGlobalDoubleClickHandlers
- Specified by:
getGlobalDoubleClickHandlers
in interfaceTableEventHandlerFactory
-
getGlobalRightClickHandlers
- Specified by:
getGlobalRightClickHandlers
in interfaceTableEventHandlerFactory
-
getGlobalHeaderRightClickHandlers
- Specified by:
getGlobalHeaderRightClickHandlers
in interfaceTableEventHandlerFactory
-