org.nuiton.jaxx.util
Class UIFactory
java.lang.Object
org.nuiton.jaxx.util.UIFactory
public class UIFactory
- extends java.lang.Object
Factory for UI, using a cache and a provider to find ui implementations.
- Author:
- chemit
|
Field Summary |
protected static org.apache.commons.logging.Log |
log
|
|
Method Summary |
void |
addFactoryWindowListener(FactoryWindowListener l)
|
void |
close()
|
protected UIProvider[] |
detectProviders()
|
protected void |
finalize()
|
protected DialogUIDef<?,?,?>[] |
getDefs()
|
|
getUI(DialogUIDef<M,U,H> uiType,
java.lang.Object... params)
|
protected void |
init()
|
protected void |
initDef(UIProvider[] providers,
DialogUIDef<?,?,?> def)
|
protected
|
registerUI(DialogUIDef<M,U,H> uiType,
U ui,
H handler)
|
void |
removeFactoryWindowListener(FactoryWindowListener l)
|
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.apache.commons.logging.Log log
UIFactory
public UIFactory(java.lang.String applicationName,
DialogUIDef<?,?,?>[] defs,
FactoryWindowListener... listeners)
addFactoryWindowListener
public void addFactoryWindowListener(FactoryWindowListener l)
removeFactoryWindowListener
public void removeFactoryWindowListener(FactoryWindowListener l)
close
public void close()
init
protected void init()
initDef
protected void initDef(UIProvider[] providers,
DialogUIDef<?,?,?> def)
detectProviders
protected UIProvider[] detectProviders()
getDefs
protected DialogUIDef<?,?,?>[] getDefs()
finalize
protected void finalize()
throws java.lang.Throwable
- Overrides:
finalize in class java.lang.Object
- Throws:
java.lang.Throwable
getUI
public <M extends DialogUIModel,U extends DialogUI<H>,H extends DialogUIHandler<M,U>> U getUI(DialogUIDef<M,U,H> uiType,
java.lang.Object... params)
registerUI
protected <M extends DialogUIModel,U extends DialogUI<H>,H extends DialogUIHandler<M,U>> void registerUI(DialogUIDef<M,U,H> uiType,
U ui,
H handler)
Copyright © 2008-2009 CodeLutin. All Rights Reserved.