|
jPOS 1.6.1 API Documentation | ||||||||
| 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 |
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 |
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)
|
void |
setObjectFactory(UIObjectFactory objFactory)
Assigns an object factory use to create new object instances. |
| Methods inherited from class java.lang.Object |
|---|
equals, 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 instanceconfig - free form configuration Element
public java.lang.Object newInstance(java.lang.String clazz)
throws java.lang.Exception
newInstance in interface UIObjectFactoryclazz - the Clazzzz
throw - exception if unable to instantiate
java.lang.ExceptionsetLog
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()
public javax.swing.JComponent create(org.jdom.Element e)
public javax.swing.JFrame getMainFrame()
|
jPOS.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||