|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozilla.jrex.JRexFactory
A factory class for initialization of XPCOM and JRex interface implementers The implementor's for any interface in JRex is mapped in 'jrex.impl' file. Which will be loaded at startup and intialized, if you want to replace any of the interface implementation with yours put your implementation calss against interface key in 'jrex.impl' file. Note:- All the implementation classes should have no param constructor.
Field Summary | |
static String |
CONTEXTMENU_EVENT_HANDLER
Key for ContextMenuEventHandler implementer retrival. |
static String |
HISTORY_EVENT_HANDLER
Key for HistoryEventHandler implementer retrival. |
static String |
JREX_MENUBAR
Key for JRexMenuBar implementer retrival. |
static String |
JREX_POPUPMENU
Key for JRexPopupMenu implementer retrival. |
static String |
JREX_PRINTPREVIEWTOOLBAR
Key for JRexPrintPreviewToolBar implementer retrival. |
static String |
JREX_STATUSBAR
Key for JRexStatusBar implementer retrival. |
static String |
JREX_TOOLBAR
Key for JRexToolBar implementer retrival. |
static String |
OBSERVER_EVENT_HANDLER
Key for ObserverEventHandler implementer retrival. |
static String |
PROGRESS_EVENT_HANDLER
Key for ProgressEventHandler implementer retrival. |
static String |
TOOLTIP_EVENT_HANDLER
Key for TooltipEventHandler implementer retrival. |
static String |
URICONTENT_EVENT_HANDLER
Key for URIContentEventHandler implementer retrival. |
static String |
WINDOW_EVENT_HANDLER
Key for WindowEventHandler implementer retrival. |
static String |
WINDOW_MANAGER
Key for WindowManager implementer retrival. |
Method Summary | |
boolean |
getAutoShutdown()
Returns true if XPCOM will be auto shutdown when Root-Window closes. |
Object |
getImplInstance(String key)
This function returns implemenation instance for give interface key. |
Object |
getImplNewInstance(String key)
This function returns new implemenation instance for give interface key. |
static JRexFactory |
getInstance()
This function returns JRexFactory instance. |
boolean |
isDOMEnabled()
Returns true if DOM is enabled. |
boolean |
isShutdownHook()
Returns true if current thread is ShutdownHook that was registered when
XPCOM was started. |
void |
setAutoShutdown(boolean autoShutdown)
If set to true then XPCOM will be auto shutdown when Root-Window closes. |
void |
shutdownEngine()
This function Stops the XPCOM engine and JRexEventManager. |
void |
startEngine()
This function Starts the XPCOM Engine and JRexEventManager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String WINDOW_MANAGER
public static final String WINDOW_EVENT_HANDLER
public static final String HISTORY_EVENT_HANDLER
public static final String PROGRESS_EVENT_HANDLER
public static final String CONTEXTMENU_EVENT_HANDLER
public static final String TOOLTIP_EVENT_HANDLER
public static final String OBSERVER_EVENT_HANDLER
public static final String URICONTENT_EVENT_HANDLER
public static final String JREX_MENUBAR
public static final String JREX_STATUSBAR
public static final String JREX_TOOLBAR
public static final String JREX_POPUPMENU
public static final String JREX_PRINTPREVIEWTOOLBAR
Method Detail |
public static JRexFactory getInstance()
public Object getImplNewInstance(String key)
key
- The interface key.
Object
the Instance of the interface.public Object getImplInstance(String key)
key
- The interface key.
Object
the Instance of the interface.public void startEngine() throws JRexException
JRexException
public void setAutoShutdown(boolean autoShutdown)
true
then XPCOM will be auto shutdown when Root-Window closes.
Root-Window will be parent window of component passed to WindowManager init method.
If null
is passed to init method the JFrame window created by window manger
will be Root-Window. Default value is set to true
.
JRexWindowManager.init(javax.swing.JComponent)
public boolean getAutoShutdown()
true
if XPCOM will be auto shutdown when Root-Window closes.
setAutoShutdown(boolean)
public boolean isDOMEnabled()
true
if DOM is enabled.
To enable JRex DOM set "jrex.dom.enable" system property to true before starting XPCOM engine.
public boolean isShutdownHook()
true
if current thread is ShutdownHook that was registered when
XPCOM was started.
startEngine()
public void shutdownEngine() throws JRexException
JRexException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |