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 TypeMethodDescriptionvoidaddDoubleClickHandler(String column, TableColumnDoubleClickHandler handler) Add a handler for double click events on cells in a specific columnvoidAdd a handler for double click events anywhere in a table body.voidAdd a handler for right click events on any column header in the table.voidaddGlobalRightClickHandler(PopupProvider handler) Add a handler for right click events on any column in the table.voidaddHeaderRightClickHandler(String column, HeaderPopupProvider handler) Add a handler for right click events on a specific column header.voidaddRightClickHandler(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 voidinit(IrisWidgetSupport support) voidremoveDoubleClickHandler(String column, TableColumnDoubleClickHandler handler) voidvoidvoidvoidremoveHeaderRightClickHandler(String column, HeaderPopupProvider handler) voidremoveRightClickHandler(String column, PopupProvider handler)
-
Method Details
-
getInstance
-
init
-
addDoubleClickHandler
Description copied from interface:TableEventHandlerFactoryAdd a handler for double click events on cells in a specific column- Specified by:
addDoubleClickHandlerin interfaceTableEventHandlerFactory- Parameters:
column- The column namehandler- The handler to attach
-
addRightClickHandler
Description copied from interface:TableEventHandlerFactoryAdd a handler for right click events on a specific column. Handlers should provide popup menu contributions.- Specified by:
addRightClickHandlerin interfaceTableEventHandlerFactory
-
addHeaderRightClickHandler
Description copied from interface:TableEventHandlerFactoryAdd a handler for right click events on a specific column header. Handlers should provide popup menu contributions.- Specified by:
addHeaderRightClickHandlerin interfaceTableEventHandlerFactory
-
addGlobalDoubleClickHandler
Description copied from interface:TableEventHandlerFactoryAdd a handler for double click events anywhere in a table body.- Specified by:
addGlobalDoubleClickHandlerin interfaceTableEventHandlerFactory
-
addGlobalRightClickHandler
Description copied from interface:TableEventHandlerFactoryAdd a handler for right click events on any column in the table. Handlers should provide popup menu contributions.- Specified by:
addGlobalRightClickHandlerin interfaceTableEventHandlerFactory
-
addGlobalHeaderRightClickHandler
Description copied from interface:TableEventHandlerFactoryAdd a handler for right click events on any column header in the table. Handlers should provide popup menu contributions.- Specified by:
addGlobalHeaderRightClickHandlerin interfaceTableEventHandlerFactory
-
removeDoubleClickHandler
- Specified by:
removeDoubleClickHandlerin interfaceTableEventHandlerFactory
-
removeRightClickHandler
- Specified by:
removeRightClickHandlerin interfaceTableEventHandlerFactory
-
removeHeaderRightClickHandler
- Specified by:
removeHeaderRightClickHandlerin interfaceTableEventHandlerFactory
-
removeGlobalDoubleClickHandler
- Specified by:
removeGlobalDoubleClickHandlerin interfaceTableEventHandlerFactory
-
removeGlobalRightClickHandler
- Specified by:
removeGlobalRightClickHandlerin interfaceTableEventHandlerFactory
-
removeGlobalHeaderRightClickHandler
- Specified by:
removeGlobalHeaderRightClickHandlerin interfaceTableEventHandlerFactory
-
getDoubleClickHandlers
- Specified by:
getDoubleClickHandlersin interfaceTableEventHandlerFactory
-
getRightClickHandlers
- Specified by:
getRightClickHandlersin interfaceTableEventHandlerFactory
-
getHeaderRightClickHandlers
- Specified by:
getHeaderRightClickHandlersin interfaceTableEventHandlerFactory
-
getGlobalDoubleClickHandlers
- Specified by:
getGlobalDoubleClickHandlersin interfaceTableEventHandlerFactory
-
getGlobalRightClickHandlers
- Specified by:
getGlobalRightClickHandlersin interfaceTableEventHandlerFactory
-
getGlobalHeaderRightClickHandlers
- Specified by:
getGlobalHeaderRightClickHandlersin interfaceTableEventHandlerFactory
-