Class UI
java.lang.Object
org.jpos.ui.UI
- All Implemented Interfaces:
UIFactory, UIObjectFactory
- Direct Known Subclasses:
BSHUI
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure this UI objectprotected voidconfigure(org.jdom2.Element ui) create(org.jdom2.Element e) UI is itself a UIFactory.voiddispose()dispose this UI objectprotected JComponentdoScript(JComponent component, org.jdom2.Element e) getLog()UI uses a map to hold references to its components ("id" attribute)booleannewInstance(String clazz) UIObjectFactory implementation.voidreconfigure(String elementName, String panelName) reconfigure can be used in order to re-configure components inside a container (i.e.voidsetConfig(org.jdom2.Element config) voidprotected voidsetLookAndFeel(org.jdom2.Element ui) voidsetObjectFactory(UIObjectFactory objFactory) Assigns an object factory use to create new object instances.protected voidprotected void
-
Constructor Details
-
UI
public UI()Create a new UI object -
UI
Creates a new UI object- Parameters:
config- configuration element
-
-
Method Details
-
setObjectFactory
Assigns an object factory use to create new object instances. If no object factory is asigned, UI uses the default classloader- Parameters:
objFactory- reference to an Object Factory
-
setConfig
- Parameters:
config- the Configuration element
-
setLog
-
getLog
-
getRegistrar
UI uses a map to hold references to its components ("id" attribute)- Returns:
- UI component registrar
-
get
-
create
UI is itself a UIFactory. This strategy is used to recursively instantiate components inside a container -
newInstance
UIObjectFactory implementation. uses default classloader- Specified by:
newInstancein interfaceUIObjectFactory- Parameters:
clazz- the Clazzzz- Returns:
- the Object
- Throws:
Exception- if unable to instantiate- See Also:
-
configure
configure this UI object- Throws:
org.jdom2.JDOMException
-
reconfigure
reconfigure can be used in order to re-configure components inside a container (i.e. changing a panel in response to an event).- Parameters:
elementName- the element name used as new configurationpanelName- panel ID (see "id" attribute)- See Also:
-
dispose
dispose this UI object -
isDestroyed
- Returns:
- true if this UI object has been disposed and is no longer valid
-
configure
- Throws:
org.jdom2.JDOMException
-
setLookAndFeel
-
doScript
-
create
-
getMainFrame
-
warn
-
warn
-