|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTree
com.lowagie.rups.view.itext.FormTree
public class FormTree
A JTree visualizing information about the Interactive Form of the PDF file (if any). Normally shows a tree view of the field hierarchy and individual XDP packets.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JTree |
|---|
JTree.AccessibleJTree, JTree.DropLocation, JTree.DynamicUtilTreeNode, JTree.EmptySelectionModel, JTree.TreeModelHandler, JTree.TreeSelectionRedirector |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected PdfReaderController |
controller
Nodes in the FormTree correspond with nodes in the main PdfTree. |
private static long |
serialVersionUID
A serial version UID. |
protected XfaFile |
xfaFile
If the form is an XFA form, the XML file is stored in this object. |
protected XfaTextArea |
xfaTextArea
Textview of the XFA file. |
protected XfaTree |
xfaTree
Treeview of the XFA file. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
FormTree(PdfReaderController controller)
Creates a new FormTree. |
|
| Method Summary | |
|---|---|
XfaTextArea |
getXfaTextArea()
|
XfaTree |
getXfaTree()
|
private void |
loadFields(TreeNodeFactory factory,
FormTreeNode form_node,
PdfObjectTreeNode object_node)
Method that can be used recursively to load the fields hierarchy into the tree. |
private void |
loadXfa(TreeNodeFactory factory,
XfaTreeNode form_node,
PdfObjectTreeNode object_node)
Method that will load the nodes that refer to XFA streams. |
void |
update(Observable observable,
Object obj)
Loads the fields of a PDF document into the FormTree. |
void |
valueChanged(TreeSelectionEvent evt)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected PdfReaderController controller
protected XfaFile xfaFile
protected XfaTree xfaTree
protected XfaTextArea xfaTextArea
private static final long serialVersionUID
| Constructor Detail |
|---|
public FormTree(PdfReaderController controller)
| Method Detail |
|---|
public void update(Observable observable,
Object obj)
update in interface Observerobservable - the observable objectobj - the object
private void loadFields(TreeNodeFactory factory,
FormTreeNode form_node,
PdfObjectTreeNode object_node)
factory - a factory that can produce new PDF object nodesform_node - the parent node in the form treeobject_node - the object node that will be used to create a child node
private void loadXfa(TreeNodeFactory factory,
XfaTreeNode form_node,
PdfObjectTreeNode object_node)
form_node - the parent node in the form treeobject_node - the object node that will be used to create a child nodepublic void valueChanged(TreeSelectionEvent evt)
valueChanged in interface TreeSelectionListenerTreeSelectionListener.valueChanged(javax.swing.event.TreeSelectionEvent)public XfaTree getXfaTree()
public XfaTextArea getXfaTextArea()
|
Hosted by Hostbasket | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||