/** * Returns true if the application framework has been initialized. * * @return boolean whether AppFramework has been initialized */ public static boolean isInitialized() { return getAppFramework() != null; }
/** * Returns true if the application framework has been initialized. * * @return boolean whether AppFramework has been initialized */ public static boolean isInitialized() { return getAppFramework() != null; }
/** * Register with the framework to connect any context change listeners. */ public PluginStatus() { FrameworkUtil.getAppFramework().registerObject(this); }
/** * Registers the patient context change listener. */ private void registerListener() { FrameworkUtil.getAppFramework().registerObject(contextListener); }
/** * Retrieves the value of a named attribute from the attribute cache. * * @param key Attribute name * @return Attribute value. * @throws IllegalStateException if AppFramework is not initialized */ public static Object getAttribute(final String key) { assertInitialized(); return getAppFramework().getAttribute(key); }
/** * Close the dialog with the specified cancel status. * * @param canceled The cancel status. */ private void close(boolean canceled) { this.canceled = canceled; FrameworkUtil.getAppFramework().unregisterObject(this); detach(); }
/** * Returns a reference to the attribute map used to store persistent references to arbitrary * objects. * * @return Attribute map */ public static Map<String, Object> getAttributes() { return isInitialized() ? getAppFramework().getAttributes() : null; }
/** * Stores an arbitrary named attribute in the attribute cache. * * @param key Attribute name. * @param value Attribute value. If null, value is removed from cache. * @throws IllegalStateException if AppFramework is not initialized */ public static void setAttribute(final String key, final Object value) { assertInitialized(); getAppFramework().setAttribute(key, value); }
private void close(boolean canceled) { this.canceled = canceled; FrameworkUtil.getAppFramework().unregisterObject(this); detach(); }
/** * Returns a reference to the attribute map used to store persistent references to arbitrary * objects. * * @return Attribute map */ public static Map<String, Object> getAttributes() { return isInitialized() ? getAppFramework().getAttributes() : null; }
/** * Stores an arbitrary named attribute in the attribute cache. * * @param key Attribute name. * @param value Attribute value. If null, value is removed from cache. * @throws IllegalStateException if AppFramework is not initialized */ public static void setAttribute(String key, Object value) { assertInitialized(); getAppFramework().setAttribute(key, value); }
/** * Retrieves the value of a named attribute from the attribute cache. * * @param key Attribute name * @return Attribute value. * @throws IllegalStateException if AppFramework is not initialized */ public static Object getAttribute(String key) { assertInitialized(); return getAppFramework().getAttribute(key); }
/** * Override the doAfterCompose method to set references to the application context and the * framework and register the controller with the framework. * * @param comp BaseComponent associated with this controller. */ @Override public void afterInitialized(BaseComponent comp) { root = (BaseUIComponent) comp; this.comp = root; comp.setAttribute(Constants.ATTR_COMPOSER, this); comp.addEventListener(ThreadEx.ON_THREAD_COMPLETE, threadCompletionListener); appContext = SpringUtil.getAppContext(); appFramework = FrameworkUtil.getAppFramework(); eventManager = EventManager.getInstance(); initialize(); }
/** * Initialize the dialog, adding the signature items to the list. * * @param esigService The electronic signature service. * @param items List of items to add. */ private void init(IESigService esigService, Iterable<ESigItem> items) { this.esigService = esigService; ZKUtil.wireController(this, this); for (ESigItem item : items) { addItem(item); } updateControls(); if (grid.getRowCount() > 20) { grid.setHeight("600px"); } FrameworkUtil.getAppFramework().registerObject(this); }
FrameworkUtil.getAppFramework().registerObject(this); ZKUtil.wireController(this, this); lstInpatient.setItemRenderer(encounterRenderer);