|
|||||||||
| 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
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)
|
javax.swing.JComponent |
create(org.jdom.Element e)
|
javax.swing.JComponent |
create(UI ui,
org.jdom.Element e)
UI is itself a UIFactory. |
void |
dispose()
dispose this UI object |
protected javax.swing.JComponent |
doScript(javax.swing.JComponent component,
org.jdom.Element e)
|
java.lang.Object |
get(java.lang.String id)
|
Log |
getLog()
|
javax.swing.JFrame |
getMainFrame()
|
java.util.Map |
getRegistrar()
UI uses a map to hold references to its components ("id" attribute) |
boolean |
isDestroyed()
|
java.lang.Object |
newInstance(java.lang.String clazz)
UIObjectFactory implementation. |
void |
reconfigure(java.lang.String elementName,
java.lang.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(java.lang.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 java.util.Map getRegistrar()
public java.lang.Object get(java.lang.String id)
id - Component id ("id" configuration attribute)
public javax.swing.JComponent create(UI ui,
org.jdom.Element e)
create in interface UIFactoryui - reference to this UI instancee - free form configuration Element
public java.lang.Object newInstance(java.lang.String clazz)
throws java.lang.Exception
newInstance in interface UIObjectFactoryclazz - the Clazzzz
java.lang.Exception - if unable to instantiatesetLog(org.jpos.util.Log)
public void configure()
throws org.jdom.JDOMException
org.jdom.JDOMException
public void reconfigure(java.lang.String elementName,
java.lang.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 javax.swing.JComponent doScript(javax.swing.JComponent component,
org.jdom.Element e)
public javax.swing.JComponent create(org.jdom.Element e)
public javax.swing.JFrame getMainFrame()
protected void warn(java.lang.Object obj)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||