borland Packages  Class Hierarchy  internetbeans Package 

PageProducer class

java.lang.Object
   +----com.borland.internetbeans.PageProducer
           +----com.borland.internetbeans.IxPageProducer

About the PageProducer class

Variables  Properties  Methods  

Implements Binder, Renderable, Serializable, Cloneable

Note: This package is a feature of JBuilder Professional and Enterprise.

Generates markup text from a template file, replacing identified spans with dynamic content from Ix components.


PageProducer variables

Variables implemented in this class

PageProducer properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.lang.Object

PageProducer methods

Methods implemented in this class

Methods implemented in java.lang.Object


PageProducer variables

cartList

  protected Map cartList
Maps start tags to corresponding Cartridge.

ixObjects

  protected Map ixObjects
Maps IxSpan.getIdentifer() names to corresponding IxSpan.

PageProducer properties

content

 public String getContent()
Renders the page, replacing matched elements in the source page with dynamic content from Ix components, into a string.

Returns string containing rendered content.

controlNames

 public String[] getControlNames()
The values of all control NAME attributes used in the source (HTML) page. Used to populate the controlName property editor.

htmlFile

 public String getHtmlFile()
 public void setHtmlFile(String newHtmlFile)
Name of HTML file that is parsed, and then regenerated with dynamic content

objectMap

 public Map getObjectMap()
Return all the bound components, mapped by their identifier.

Returns map of components; may be empty, but not null. See also: Identifier

objects

 public IxComponent[] getObjects()
Return all the bound components in an array.

Returns array of components; may be empty, but not null.

sourceObjects

 public String[] getSourceObjects()
The values of all ID attributes used in the source (HTML) page. Used to populate the elementID property editor.

PageProducer methods

needsRebuild()

  protected void needsRebuild()
Called whenever objects are added or removed, or when the source HTML file changes to indicate that the content needs to be rebuilt.

render(outWrap, currentContent)

  protected void render(OutputWrapper outWrap, Renderable[] currentContent)
Renders the specified content list

Parameters:

outWrap
The stream-like output into which the content goes
currentContent
A list of Renderable objects, usually a mix of static strings and IxComponent objects.

replicateContentForTupleModel(tupleModel, java.util.Map)

  protected Renderable[] replicateContentForTupleModel(TupleModel tupleModel, Map ixObjects)
Clones object and content lists to be used with a new (clone of the) data model.

Parameters:

tupleModel
New data model
ixObjects
Empty map, which will be updated

Returns new content list containing renderable content.