public RoleListBrowserView(RoleListBrowser roleListBrowser, WKFController controller) { super(roleListBrowser, controller.getKeyEventListener(), controller.getEditor()); JPanel north = new JPanel(new FlowLayout(FlowLayout.LEFT, 1, 1)); for (int i = 0; i < RoleViewMode.values().length; i++) { RoleViewMode viewMode = RoleViewMode.values()[i]; north.add(new RoleViewModeButton(viewMode)); } add(north, BorderLayout.NORTH); _controller = controller; FCH.setHelpItem(this, "rolelist-browser"); }
@Override public void deleteModuleView() { workflow.deleteObserver(this); controller.removeModuleView(this); panel = null; }
/** * Overrides getEditor * * @see org.openflexo.foundation.action.FlexoActionSource#getEditor() */ @Override public FlexoEditor getEditor() { return controller.getEditor(); }