DynamicPDF by ceTe Software

com.cete.dynamicpdf
Class DocumentJavaScriptList

java.lang.Object
  extended by com.cete.dynamicpdf.Resource
      extended by com.cete.dynamicpdf.DocumentJavaScriptList

public class DocumentJavaScriptList
extends Resource

Represents a list of JavaScript entries.

Licensing:
This property is a DynamicPDF Generator Enterprise Edition feature. One of the following licenses is required for non-evaluation usage:

View Example


Method Summary
 void add(DocumentJavaScript javaScript)
          Adds a DocumentJavaScript to the DocumentJavaScriptList.
 boolean containsName(java.lang.String name)
          Returns a value indicating whether the provided name is found in the list of JavaScript entries.
 void draw(DocumentWriter writer)
          Draws the JavaScript entries to the given DocumentWriter object.
 DocumentJavaScript getDocumentJavaScript(int index)
          Gets the DocumentJavaScript at the given index.
 DocumentJavaScript getDocumentJavaScript(java.lang.String name)
          Gets the DocumentJavaScript with the name.
 int size()
          Gets the number of JavaScript entries actually contained in the DocumentJavaScriptList.
 
Methods inherited from class com.cete.dynamicpdf.Resource
getRequiredPdfObjects, getResourceType, getUid, newUid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

size

public int size()
Gets the number of JavaScript entries actually contained in the DocumentJavaScriptList.

Returns:
the list size.

getDocumentJavaScript

public DocumentJavaScript getDocumentJavaScript(int index)
Gets the DocumentJavaScript at the given index.

Parameters:
index - The index of the docuemntJavaScript
Returns:
the document java script.
See Also:
DocumentJavaScript

getDocumentJavaScript

public DocumentJavaScript getDocumentJavaScript(java.lang.String name)
Gets the DocumentJavaScript with the name.

Parameters:
name - name of the document java Script.
Returns:
the document java script.
See Also:
DocumentJavaScript

draw

public void draw(DocumentWriter writer)
Draws the JavaScript entries to the given DocumentWriter object.

Specified by:
draw in class Resource
Parameters:
writer - DocumentWriter object to receive the JavaScript entries.
See Also:
DocumentWriter

add

public void add(DocumentJavaScript javaScript)
Adds a DocumentJavaScript to the DocumentJavaScriptList.

Parameters:
javaScript - DocumentJavaScript to add.
See Also:
DocumentJavaScript

containsName

public boolean containsName(java.lang.String name)
Returns a value indicating whether the provided name is found in the list of JavaScript entries.

Parameters:
name - Name to check if it is in the JavaScript entries.
Returns:
boolean value indicating whether the provided name is found in the list of JavaScript entries.

DynamicPDF by ceTe Software

API Reference for DynamicPDF v10.07 for Java generated on Aug 12, 2020
© Copyright 2020, ceTe Software