org.ujac.print
Class DocumentEvent

java.lang.Object
  extended by org.ujac.print.DocumentEvent

public class DocumentEvent
extends Object

Name: DocumentEvent
Description: A class holding document event informations.

Author:
lauerc

Field Summary
static int CHARACTERS
          The characters event.
static int CLOSE
          The close event.
static int OPEN
          The open event.
 
Constructor Summary
DocumentEvent(int type, BaseDocumentTag item, String content)
          Constructs a DocumentEvent instance with no specific arguments.
 
Method Summary
 String getContent()
          Gets the item's content.
 BaseDocumentTag getItem()
          Gets the item.
 int getType()
          Gets the event type.
 String getTypeName()
          Gets the event type name.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OPEN

public static final int OPEN
The open event.

See Also:
Constant Field Values

CHARACTERS

public static final int CHARACTERS
The characters event.

See Also:
Constant Field Values

CLOSE

public static final int CLOSE
The close event.

See Also:
Constant Field Values
Constructor Detail

DocumentEvent

public DocumentEvent(int type,
                     BaseDocumentTag item,
                     String content)
Constructs a DocumentEvent instance with no specific arguments.

Parameters:
type - The initial event type.
item - The tag, where the event occurred.
content - The item's content at this stage.
Method Detail

getType

public int getType()
Gets the event type.

Returns:
The event type.

getTypeName

public String getTypeName()
Gets the event type name.

Returns:
The event type name.

getItem

public BaseDocumentTag getItem()
Gets the item.

Returns:
The item.

getContent

public String getContent()
Gets the item's content.

Returns:
The item's content.

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2003-2004 UJAC.org. All Rights Reserved.