Package com.illumon.iris.console.events
Class BasicTableEventHandlerFactory
java.lang.Object
com.illumon.iris.console.events.BasicTableEventHandlerFactory
- All Implemented Interfaces:
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
Modifier and TypeMethodDescriptionvoid
addDoubleClickHandler
(String column, TableColumnDoubleClickHandler handler) Add a handler for double click events on cells in a specific columnvoid
Add a handler for double click events anywhere in a table body.void
Add a handler for right click events on any column header in the table.void
addGlobalRightClickHandler
(PopupProvider handler) Add a handler for right click events on any column in the table.void
addHeaderRightClickHandler
(String column, HeaderPopupProvider handler) Add a handler for right click events on a specific column header.void
addRightClickHandler
(String column, PopupProvider handler) Add a handler for right click events on a specific column.getDoubleClickHandlers
(String column) getHeaderRightClickHandlers
(String column) getRightClickHandlers
(String column) static void
init
(IrisWidgetSupport support) void
removeDoubleClickHandler
(String column, TableColumnDoubleClickHandler handler) void
void
void
void
removeHeaderRightClickHandler
(String column, HeaderPopupProvider handler) void
removeRightClickHandler
(String column, PopupProvider handler)
-
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
-