...
Code Block |
---|
XulOverlay overlay = new DefaultXulOverlay("org/pentaho/agilebi/pdi/spoon/overlays.xul"); Map<String, XulOverlay>List<XulOverlay>> overlays = new HashMap<String, XulOverlay>List<XulOverlay>>(); overlays.put("spoon", Collections.singletonList(overlay)); return overlays; |
Returning an overlay keyed as "spoon" causes the overlay to be applied to the main Spoon UI. Other locations can be modified by returning overlays associated with the key for those areas:
...
Code Block |
---|
Map<String, XulEventHandler> handlers = new HashMap<String, XulEventHandler>List<XulEventHandler>>(); handlers.put("spoon", XUL_EVENTHANDLER_INSTANCE); handlers.put("databaseDialog", Collections.singletonList(XUL_EVENTHANDLER_INSTANCE)); return handlers; |
Lifycycle Listeners
...