com.japisoft.framework.dockable
Class ComponentFactory

java.lang.Object
  |
  +--com.japisoft.framework.dockable.ComponentFactory

public class ComponentFactory
extends java.lang.Object

Author:
(c) 2003 JAPISOFT

Constructor Summary
ComponentFactory()
           
 
Method Summary
 javax.swing.JButton buildButton(javax.swing.Action a)
          Build a button for the title bar of the DockableFrame
 javax.swing.JComponent buildContentPaneForFrame()
           
 javax.swing.JFrame buildDockedFrame(javax.swing.Action source, com.japisoft.framework.dockable.Windowable panel)
          Build an individual frame for the DockableFrame
 DockableFrameTitleBar buildTitleBar(java.lang.String title)
          Build a new title bar for the DockableFrame
static ComponentFactory getComponentFactory()
           
 void setAutoScrollMode(boolean autoScrollMode)
          This is a mode for adding a JScrollPane automatically inside any inner window.
static void setComponentFactory(ComponentFactory factory)
          Override the default factory by this sub class
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentFactory

public ComponentFactory()
Method Detail

setComponentFactory

public static void setComponentFactory(ComponentFactory factory)
Override the default factory by this sub class


getComponentFactory

public static ComponentFactory getComponentFactory()
Returns:
the current component factory

setAutoScrollMode

public void setAutoScrollMode(boolean autoScrollMode)
This is a mode for adding a JScrollPane automatically inside any inner window. By default false


buildButton

public javax.swing.JButton buildButton(javax.swing.Action a)
Build a button for the title bar of the DockableFrame


buildTitleBar

public DockableFrameTitleBar buildTitleBar(java.lang.String title)
Build a new title bar for the DockableFrame


buildDockedFrame

public javax.swing.JFrame buildDockedFrame(javax.swing.Action source,
                                           com.japisoft.framework.dockable.Windowable panel)
Build an individual frame for the DockableFrame

Parameters:
source - The Action that has changed the state of the DockableFrame
panel - The initial DockableFrame

buildContentPaneForFrame

public javax.swing.JComponent buildContentPaneForFrame()
Returns:
a new contentPane for the DockableFrame