com.taco.swinger.text2gui
Class JTabbedPaneConverter.TabAdder

java.lang.Object
  extended by com.taco.swinger.text2gui.JTabbedPaneConverter.TabAdder
All Implemented Interfaces:
CompositeConverter.ISetPropertyAction
Enclosing class:
JTabbedPaneConverter

protected static class JTabbedPaneConverter.TabAdder
extends java.lang.Object
implements CompositeConverter.ISetPropertyAction

An implementation of ISetPropertyAction for JTabbedPaneConverter that adds tabs to the tabbed pane.


Field Summary
static JTabbedPaneConverter.TabAdder instance
          The singleton instance of this class.
 
Method Summary
protected  void _addTab(javax.swing.JTabbedPane tabbedPane, int tabIndex, java.util.Map tabPropertyMap)
          Given a map of properties for a tab, add the tab to the tabbed pane.
 void setProperty(java.lang.Object composite, java.lang.Object propertyKey, java.lang.Object propertyValue, java.util.Map propertyMap)
          Set the property of the composite.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final JTabbedPaneConverter.TabAdder instance
The singleton instance of this class.

Method Detail

setProperty

public void setProperty(java.lang.Object composite,
                        java.lang.Object propertyKey,
                        java.lang.Object propertyValue,
                        java.util.Map propertyMap)
Description copied from interface: CompositeConverter.ISetPropertyAction
Set the property of the composite.

Specified by:
setProperty in interface CompositeConverter.ISetPropertyAction

_addTab

protected void _addTab(javax.swing.JTabbedPane tabbedPane,
                       int tabIndex,
                       java.util.Map tabPropertyMap)
Given a map of properties for a tab, add the tab to the tabbed pane.