org.nuiton.jaxx.tab
Class TabFactory

java.lang.Object
  extended by org.nuiton.jaxx.tab.TabFactory

public abstract class TabFactory
extends java.lang.Object

Une usine pour les Tabs, leur configs et leur modèles

Author:
tony
See Also:
TabContentConfig, TabModel

Field Summary
protected  java.util.Map<java.lang.String,JAXXTab> cache
          dictionary of instanciated actions
protected  java.util.Map<java.lang.String,TabContentConfig> configs
          dictionary of configs
protected static org.apache.commons.logging.Log log
          to use log facility, just put in your code: log.info(\"...\");
protected  java.util.Map<java.lang.String,TabModel> models
          dictionary of instanciated models
 
Constructor Summary
protected TabFactory()
           
 
Method Summary
protected  javax.swing.JComponent addTabHeader(javax.swing.JTabbedPane container, java.lang.String tabName, TabContentConfig config, JAXXTab comp)
           
protected  void checkRegistredConfig(java.lang.String tabName)
           
 void closeTab(javax.swing.JTabbedPane container, java.lang.String tabName)
           
 TabContentConfig getConfig(java.lang.String tabName)
           
 TabModel getModel(java.lang.String tabName, java.lang.Object... params)
           
 int getTabIndex(javax.swing.JTabbedPane container, javax.swing.JComponent comp)
           
 JAXXTab getUI(java.lang.String tabName)
           
protected abstract  java.util.Map<java.lang.String,TabContentConfig> initFactory()
           
protected  void initJAXXTab(TabContentConfig config, JAXXTab instance)
           
protected abstract  void initTab(JAXXTab tab, java.lang.String tabName, TabContentConfig config)
           
protected  TabModel initTabModel(TabContentConfig config, java.lang.Object... params)
           
 java.util.Set<java.lang.String> keySet()
           
protected  JAXXTab newTab(java.lang.String tabName)
           
protected  void registerTab(javax.swing.JTabbedPane container, java.lang.String tabName, TabContentConfig config, JAXXTab comp)
           
 void resetCache()
           
 void showTab(javax.swing.JTabbedPane container, java.lang.String tabName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
to use log facility, just put in your code: log.info(\"...\");


configs

protected java.util.Map<java.lang.String,TabContentConfig> configs
dictionary of configs


cache

protected java.util.Map<java.lang.String,JAXXTab> cache
dictionary of instanciated actions


models

protected java.util.Map<java.lang.String,TabModel> models
dictionary of instanciated models

Constructor Detail

TabFactory

protected TabFactory()
Method Detail

initFactory

protected abstract java.util.Map<java.lang.String,TabContentConfig> initFactory()

initTab

protected abstract void initTab(JAXXTab tab,
                                java.lang.String tabName,
                                TabContentConfig config)

newTab

protected JAXXTab newTab(java.lang.String tabName)

keySet

public java.util.Set<java.lang.String> keySet()

getConfig

public TabContentConfig getConfig(java.lang.String tabName)

getUI

public JAXXTab getUI(java.lang.String tabName)

getModel

public TabModel getModel(java.lang.String tabName,
                         java.lang.Object... params)

initTabModel

protected TabModel initTabModel(TabContentConfig config,
                                java.lang.Object... params)
                         throws java.lang.InstantiationException,
                                java.lang.IllegalAccessException
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

showTab

public void showTab(javax.swing.JTabbedPane container,
                    java.lang.String tabName)

closeTab

public void closeTab(javax.swing.JTabbedPane container,
                     java.lang.String tabName)

getTabIndex

public int getTabIndex(javax.swing.JTabbedPane container,
                       javax.swing.JComponent comp)

resetCache

public void resetCache()

addTabHeader

protected javax.swing.JComponent addTabHeader(javax.swing.JTabbedPane container,
                                              java.lang.String tabName,
                                              TabContentConfig config,
                                              JAXXTab comp)

registerTab

protected void registerTab(javax.swing.JTabbedPane container,
                           java.lang.String tabName,
                           TabContentConfig config,
                           JAXXTab comp)

initJAXXTab

protected void initJAXXTab(TabContentConfig config,
                           JAXXTab instance)
                    throws java.lang.NoSuchFieldException,
                           java.lang.IllegalAccessException
Throws:
java.lang.NoSuchFieldException
java.lang.IllegalAccessException

checkRegistredConfig

protected void checkRegistredConfig(java.lang.String tabName)


Copyright © 2008-2009 CodeLutin. All Rights Reserved.