|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpos.ui.UI
public class UI
jPOS UI main class
See src/examples/ui/* for usage details| Constructor Summary | |
|---|---|
UI()
Create a new UI object |
|
UI(org.jdom.Element config)
Creates a new UI object |
|
| Method Summary | |
|---|---|
void |
configure()
configure this UI object |
protected void |
configure(org.jdom.Element ui)
|
JComponent |
create(org.jdom.Element e)
|
JComponent |
create(UI ui,
org.jdom.Element e)
UI is itself a UIFactory. |
void |
dispose()
dispose this UI object |
protected JComponent |
doScript(JComponent component,
org.jdom.Element e)
|
Object |
get(String id)
|
Log |
getLog()
|
JFrame |
getMainFrame()
|
Map |
getRegistrar()
UI uses a map to hold references to its components ("id" attribute) |
boolean |
isDestroyed()
|
Object |
newInstance(String clazz)
UIObjectFactory implementation. |
void |
reconfigure(String elementName,
String panelName)
reconfigure can be used in order to re-configure components inside a container (i.e. |
void |
setConfig(org.jdom.Element config)
|
void |
setLog(Log log)
|
protected void |
setLookAndFeel(org.jdom.Element ui)
|
void |
setObjectFactory(UIObjectFactory objFactory)
Assigns an object factory use to create new object instances. |
protected void |
warn(Object obj)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UI()
public UI(org.jdom.Element config)
config - configuration element| Method Detail |
|---|
public void setObjectFactory(UIObjectFactory objFactory)
objFactory - reference to an Object Factorypublic void setConfig(org.jdom.Element config)
config - the Configuration elementpublic void setLog(Log log)
log - an optional Log instanceLogpublic Log getLog()
public Map getRegistrar()
public Object get(String id)
id - Component id ("id" configuration attribute)
public JComponent create(UI ui,
org.jdom.Element e)
create in interface UIFactoryui - reference to this UI instancee - free form configuration Element
public Object newInstance(String clazz)
throws Exception
newInstance in interface UIObjectFactoryclazz - the Clazzzz
Exception - if unable to instantiatesetLog(org.jpos.util.Log)
public void configure()
throws org.jdom.JDOMException
org.jdom.JDOMException
public void reconfigure(String elementName,
String panelName)
elementName - the element name used as new configurationpanelName - panel ID (see "id" attribute)Redirectpublic void dispose()
public boolean isDestroyed()
protected void configure(org.jdom.Element ui)
throws org.jdom.JDOMException
org.jdom.JDOMExceptionprotected void setLookAndFeel(org.jdom.Element ui)
protected JComponent doScript(JComponent component,
org.jdom.Element e)
public JComponent create(org.jdom.Element e)
public JFrame getMainFrame()
protected void warn(Object obj)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||