luxor
Class XulManager

java.lang.Object
  |
  +--luxor.XulManager

public class XulManager
extends java.lang.Object


Nested Class Summary
static class XulManager.NullJComponentResolver
           
 
Field Summary
static XulManager.NullJComponentResolver NULL_JCOMPONENT_RESOLVER
           
 
Method Summary
 void addAction(java.lang.String key, XulAction value)
           
 void addAnimDef(AnimDef def)
           
 void addBoxDef(XulBox def)
           
 void addBrowser(java.lang.String key, BrowserService browser)
           
 void addCommandDef(CommandDef def)
           
 void addHistoryResolver(HistoryResolver resolver)
           
 void addIconDef(IconDef idef)
           
 void addKey(KeyDef def)
           
 void addListDef(ListDef def)
           
 void addMapDef(MapDef def)
           
 void addMenu(java.lang.String key, javax.swing.JMenu menu)
           
 void addMenuBarDef(MenuBarDef mdef)
           
 void addPopupDef(PopupDef def)
           
 void addPortalDef(PortalDef def)
           
 void addPortlet(java.lang.String id, XulPortlet portlet)
           
 void addPreDef(PreDef def)
           
 void addServlet(java.lang.String key, XulServlet value)
           
 void addToolBarDef(ToolBarDef tdef)
           
 javax.swing.JComponent createJComponentFromBox(java.lang.String key)
           
 java.lang.String[] createList(java.lang.String key)
           
 XulMap createMap(java.lang.String key)
           
 javax.swing.JMenuBar createMenuBar(java.lang.String key)
           
 NContainer createNContainerFromBox(java.lang.String key, JComponentResolver resolver)
           
 javax.swing.JToolBar createToolBar(java.lang.String key)
           
 java.util.Map getActions()
           
 java.util.Map getAnims()
           
 java.util.Map getBoxes()
           
 java.util.Map getCommands()
           
 java.lang.String getHTML(java.util.Map data, java.lang.String name)
          convenience method; adds html directory to path
 java.lang.String getHTML(java.lang.String name)
          convenience method
 java.util.Map getIcons()
           
 int getInt(java.lang.String key, int defaultValue)
           
 java.util.Map getKeys()
           
 java.util.Map getLists()
           
 java.util.Map getMaps()
           
 java.util.Map getMenuBars()
           
 java.util.Map getMenus()
           
 java.util.Map getPopups()
           
 java.lang.String getPortal(java.util.Map data, java.lang.String id)
           
 java.lang.String getPortal(java.lang.String id)
          convienience method; doesn't require a Map
 java.util.Map getPortals()
           
 java.util.Map getPortlets()
           
 java.lang.String getPre(java.lang.String key)
           
 java.util.Map getPres()
           
 javax.swing.ImageIcon getResourceAsImageIcon(java.lang.String name)
           
 java.util.Properties getResourceAsProperties(java.lang.String name)
           
 java.io.InputStream getResourceAsStream(java.lang.String name)
           
 java.lang.String getResourceAsString(java.lang.String name)
           
 java.net.URL getResourceAsUrl(java.lang.String name)
           
 Document getResourceAsXmlDocument(java.lang.String name)
           
 java.util.Map getServlets()
           
 java.lang.String getString(java.lang.String key)
           
 java.lang.String getString(java.lang.String key, java.lang.String defaultValue)
           
 java.lang.String[] getStringArray(java.lang.String key)
           
 java.lang.String getTemplate(java.util.Map data, java.lang.String name)
           
 java.lang.String getTemplate(java.lang.String name)
          convenience method; doesn't require a map
 java.util.Map getToolBars()
           
static XulManager getXulManager()
           
 void load()
           
 XulAction lookupAction(java.lang.String key)
           
 javax.swing.ImageIcon[] lookupAnim(java.lang.String key)
           
 BrowserService lookupBrowser(java.lang.String key)
           
 HistoryModel lookupHistory(java.lang.String key)
           
 javax.swing.ImageIcon lookupIcon(java.lang.String key)
           
 java.lang.String lookupKey(java.lang.String id)
           
 javax.swing.JMenu lookupMenu(java.lang.String key)
           
 javax.swing.JPopupMenu lookupPopup(java.lang.String key)
           
 XulPortlet lookupPortlet(java.lang.String id)
           
 XulServlet lookupServlet(java.lang.String key)
           
 XulResourceLoader setResourceLoader(XulResourceLoader newLoader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL_JCOMPONENT_RESOLVER

public static XulManager.NullJComponentResolver NULL_JCOMPONENT_RESOLVER
Method Detail

setResourceLoader

public XulResourceLoader setResourceLoader(XulResourceLoader newLoader)

getXulManager

public static XulManager getXulManager()

getActions

public java.util.Map getActions()

getAnims

public java.util.Map getAnims()

getBoxes

public java.util.Map getBoxes()

getCommands

public java.util.Map getCommands()

getHTML

public java.lang.String getHTML(java.util.Map data,
                                java.lang.String name)
convenience method; adds html directory to path


getHTML

public java.lang.String getHTML(java.lang.String name)
convenience method


getIcons

public java.util.Map getIcons()

getInt

public int getInt(java.lang.String key,
                  int defaultValue)

getKeys

public java.util.Map getKeys()

getLists

public java.util.Map getLists()

getMaps

public java.util.Map getMaps()

getMenuBars

public java.util.Map getMenuBars()

getMenus

public java.util.Map getMenus()

getPopups

public java.util.Map getPopups()

getPortal

public java.lang.String getPortal(java.lang.String id)
convienience method; doesn't require a Map


getPortal

public java.lang.String getPortal(java.util.Map data,
                                  java.lang.String id)

getPortals

public java.util.Map getPortals()

getPortlets

public java.util.Map getPortlets()

getPre

public java.lang.String getPre(java.lang.String key)

getPres

public java.util.Map getPres()

getResourceAsImageIcon

public javax.swing.ImageIcon getResourceAsImageIcon(java.lang.String name)

getResourceAsProperties

public java.util.Properties getResourceAsProperties(java.lang.String name)
                                             throws java.io.IOException
java.io.IOException

getResourceAsStream

public java.io.InputStream getResourceAsStream(java.lang.String name)

getResourceAsString

public java.lang.String getResourceAsString(java.lang.String name)
                                     throws java.io.IOException
java.io.IOException

getResourceAsUrl

public java.net.URL getResourceAsUrl(java.lang.String name)

getResourceAsXmlDocument

public Document getResourceAsXmlDocument(java.lang.String name)
                                  throws JDOMException
JDOMException

getServlets

public java.util.Map getServlets()

getString

public java.lang.String getString(java.lang.String key)

getString

public java.lang.String getString(java.lang.String key,
                                  java.lang.String defaultValue)

getStringArray

public java.lang.String[] getStringArray(java.lang.String key)

getTemplate

public java.lang.String getTemplate(java.util.Map data,
                                    java.lang.String name)

getTemplate

public java.lang.String getTemplate(java.lang.String name)
convenience method; doesn't require a map


getToolBars

public java.util.Map getToolBars()

addAction

public void addAction(java.lang.String key,
                      XulAction value)

addAnimDef

public void addAnimDef(AnimDef def)

addBoxDef

public void addBoxDef(XulBox def)

addBrowser

public void addBrowser(java.lang.String key,
                       BrowserService browser)

addCommandDef

public void addCommandDef(CommandDef def)

addHistoryResolver

public void addHistoryResolver(HistoryResolver resolver)

addIconDef

public void addIconDef(IconDef idef)

addKey

public void addKey(KeyDef def)

addListDef

public void addListDef(ListDef def)

addMapDef

public void addMapDef(MapDef def)

addMenu

public void addMenu(java.lang.String key,
                    javax.swing.JMenu menu)

addMenuBarDef

public void addMenuBarDef(MenuBarDef mdef)

addPopupDef

public void addPopupDef(PopupDef def)

addPortalDef

public void addPortalDef(PortalDef def)

addPortlet

public void addPortlet(java.lang.String id,
                       XulPortlet portlet)

addPreDef

public void addPreDef(PreDef def)

addServlet

public void addServlet(java.lang.String key,
                       XulServlet value)

addToolBarDef

public void addToolBarDef(ToolBarDef tdef)

createJComponentFromBox

public javax.swing.JComponent createJComponentFromBox(java.lang.String key)

createList

public java.lang.String[] createList(java.lang.String key)

createMap

public XulMap createMap(java.lang.String key)

createMenuBar

public javax.swing.JMenuBar createMenuBar(java.lang.String key)

createNContainerFromBox

public NContainer createNContainerFromBox(java.lang.String key,
                                          JComponentResolver resolver)

createToolBar

public javax.swing.JToolBar createToolBar(java.lang.String key)

load

public void load()

lookupAction

public XulAction lookupAction(java.lang.String key)

lookupAnim

public javax.swing.ImageIcon[] lookupAnim(java.lang.String key)

lookupBrowser

public BrowserService lookupBrowser(java.lang.String key)

lookupHistory

public HistoryModel lookupHistory(java.lang.String key)

lookupIcon

public javax.swing.ImageIcon lookupIcon(java.lang.String key)

lookupKey

public java.lang.String lookupKey(java.lang.String id)

lookupMenu

public javax.swing.JMenu lookupMenu(java.lang.String key)

lookupPopup

public javax.swing.JPopupMenu lookupPopup(java.lang.String key)

lookupPortlet

public XulPortlet lookupPortlet(java.lang.String id)

lookupServlet

public XulServlet lookupServlet(java.lang.String key)


Copyright 2001, 2002 Gerald Bauer. All Rights Reserved. Hosted by SourceForge Logo