com.raritantechnologies.searchApp.taglibrary
Class TabbedCustomTags

java.lang.Object
  extended bycom.raritantechnologies.searchApp.taglibrary.TabbedCustomTags
All Implemented Interfaces:
IConfigurable, ICustomTag

public class TabbedCustomTags
extends java.lang.Object
implements ICustomTag, IConfigurable

Enables Tab-selectable displays of any object that implements the ICustomTag interface. Note that objects to be inserted into a TabbedCustomTags renderer must implement both ICustomTag and IConfigurable.

XML Configuration Template:
 <SystemObjects>
    <SystemObject type="CustomTagDisplay" name="[name of this display object]"
                     class="com.raritantechnologies.searchApp.taglibrary.TabbedCustomTags"
                     tabActionURL="jsp page that will redraw the tabbed results" >

     <TabRenderer class="[Tab Renderer class]" >
       <Tab ID="tabID1"  display="tab display 1" />
       <Tab ID="tabID2" display="tab display 2" />

       <!-- details needed by TabRenderer -->
     </TabRenderer>

     <!-- Tab Bodies (optional) if left out, only the Tab Control will be rendered -->
      <TabBodies>
        <TabBody class="some ICustomTag object"
                   tabID="Name that goes in tab" >
           <!-- initialization parameters for tab body -->
        </TabBody>
      </TabBodies>

    </SystemObject>
  </SystemObjects>
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
TabbedCustomTags()
           
 
Method Summary
 void addTab(java.lang.String tabID, ICustomTag custTag)
           
 void addTab(java.lang.String tabID, java.lang.String tabName, ICustomTag custTag)
           
 java.lang.String getBody(RaritanPageContext rpc)
          Returns the tag body.
 OrderedMap getCustomTagMap()
           
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 void initialize(java.util.Map initParams)
           
 void setCustomTagMap(OrderedMap customTagMap)
           
 void setCustomTagMap(java.lang.String[] tagNames, ICustomTag[] customTags)
           
 void setTabRenderer(TabRenderer tabRenderer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabbedCustomTags

public TabbedCustomTags()
Method Detail

setTabRenderer

public void setTabRenderer(TabRenderer tabRenderer)

setCustomTagMap

public void setCustomTagMap(java.lang.String[] tagNames,
                            ICustomTag[] customTags)

setCustomTagMap

public void setCustomTagMap(OrderedMap customTagMap)

getCustomTagMap

public OrderedMap getCustomTagMap()

addTab

public void addTab(java.lang.String tabID,
                   java.lang.String tabName,
                   ICustomTag custTag)

addTab

public void addTab(java.lang.String tabID,
                   ICustomTag custTag)

getBody

public java.lang.String getBody(RaritanPageContext rpc)
Description copied from interface: ICustomTag
Returns the tag body.

Specified by:
getBody in interface ICustomTag
Parameters:
rpc - Platform-neutral page context ( can be used in non J2EE environments such as ASP).
Returns:
The tag body text string.

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IConfigurable
Initializes the object from an XML tag or element. This method is called by the Framework as part of the application initializtion. see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory. Configurable objects that are owned or contained by other configurable objects will be initialized in by the parent object.

Specified by:
initialize in interface IConfigurable

initialize

public void initialize(java.util.Map initParams)
Specified by:
initialize in interface ICustomTag