com.ibm.designer.domino.xsp.api.util
Class ComputedFieldContentTypeLookup

java.lang.Object
  extended by com.ibm.commons.iloader.node.lookups.api.AbstractLookup
      extended by com.ibm.designer.domino.xsp.api.util.ComputedFieldContentTypeLookup
All Implemented Interfaces:
ILookup

public class ComputedFieldContentTypeLookup
extends com.ibm.commons.iloader.node.lookups.api.AbstractLookup

A Lookup that provides an array of 'codes' and 'labels' to controls that support ILookup. The codes and labels correspond to the names and display names for all registered content type renderers. The Computed Field has a special lookup as it also returns a "HTML" and "TEXT" content type. The codes for these content types are true and false as they are used by the escape attribute of the Computed Field XPages control


Constructor Summary
ComputedFieldContentTypeLookup()
          Creates a new instance of the class.
 
Method Summary
 java.lang.String getCode(int index)
          Return the code or model value for this index.
 java.lang.String getLabel(int index)
          Return the label displayed to the user for this index.
 int size()
          Return the number of items in this lookup.
 
Methods inherited from class com.ibm.commons.iloader.node.lookups.api.AbstractLookup
addLookupListener, addNotify, getImage, getLabelFromCode, getLabelFromCodeIgnoreCase, notifyLookupChanged, removeLookupListener, removeNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComputedFieldContentTypeLookup

public ComputedFieldContentTypeLookup()
Creates a new instance of the class. If it is the first time the class has been initialized the extension point registry is queried for all registered ContentTypeRenderers

Method Detail

size

public int size()
Description copied from interface: ILookup
Return the number of items in this lookup.


getCode

public java.lang.String getCode(int index)
Description copied from interface: ILookup
Return the code or model value for this index.


getLabel

public java.lang.String getLabel(int index)
Description copied from interface: ILookup
Return the label displayed to the user for this index.