@Override public void handleEvent(ViewEvent event) { super.handleEvent(event); switch (event.getType()) { case CREATED: event.getView().setIcon("/plugins/bpm-modeler/images/icons/conditional.png"); break; } }
public String getEventScript(ActivityInstance activityInstance, ViewEvent event) { String eventScript = ""; switch (event.getType()) { case TO_BE_ACTIVATED: String uri = provideIframePanelUri(activityInstance, event.getView()); eventScript = "InfinityBpm.ProcessPortal.createOrActivateContentFrame('" + getContentFrameId(activityInstance) + "', '" + uri + "', {html5ViewId: '" + event.getView().getHtml5FwViewId() + "'});"; break; case TO_BE_DEACTIVATED: eventScript = "InfinityBpm.ProcessPortal.deactivateContentFrame('" + getContentFrameId(activityInstance) + "');"; break; case CLOSED: eventScript = "InfinityBpm.ProcessPortal.closeContentFrame('" + getContentFrameId(activityInstance) + "');"; break; case LAUNCH_PANELS_ACTIVATED: case LAUNCH_PANELS_DEACTIVATED: case FULL_SCREENED: case RESTORED_TO_NORMAL: case PINNED: case PERSPECTIVE_CHANGED: eventScript = "InfinityBpm.ProcessPortal.resizeContentFrame('" + getContentFrameId(activityInstance) + "');"; break; } return eventScript; }
public void handleEvent(ActivityInstance activityInstance, ViewEvent event) { switch (event.getType()) { case TO_BE_ACTIVATED: break; case TO_BE_DEACTIVATED: break; case CLOSED: break; case LAUNCH_PANELS_ACTIVATED: case LAUNCH_PANELS_DEACTIVATED: case FULL_SCREENED: case RESTORED_TO_NORMAL: case PINNED: case PERSPECTIVE_CHANGED: break; } }