Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

dr.clipboard
Class ClipboardEvent  view ClipboardEvent download ClipboardEvent.java

java.lang.Object
  extended bydr.clipboard.ClipboardEvent
All Implemented Interfaces:
ClipTypes

public class ClipboardEvent
extends java.lang.Object
implements ClipTypes

A semantic event which indicates that clipboard event occured. Objects that implements the ClipboardEventListener interface and that is registered as listener gets this ClipboardEvent when a event occured.


Field Summary
private  java.lang.Object clipboardOwner
           
private  boolean consumed
           
private  java.lang.Object data
           
private  int eventType
           
 
Fields inherited from interface dr.clipboard.ClipTypes
CLEAR, COPY, CUT, PASTE
 
Constructor Summary
ClipboardEvent(int eventType, java.lang.Object data, java.lang.Object clipboardOwner)
          Creates a new ClipboardEvent instance.
 
Method Summary
 java.lang.Object getClipboardOwner()
          Returns the clipboard owner.
 java.lang.Object getData()
          Returns the clipped data.
 int getEventType()
          Returns the event type.
 java.lang.Object getSource()
          Returns the Clipboard instance that invoked the event.
 boolean isConsumed()
          Checks the consumed flag.
 void setConsumed(boolean consumed)
          Sets the consumed flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eventType

private int eventType

data

private java.lang.Object data

clipboardOwner

private java.lang.Object clipboardOwner

consumed

private boolean consumed
Constructor Detail

ClipboardEvent

public ClipboardEvent(int eventType,
                      java.lang.Object data,
                      java.lang.Object clipboardOwner)
Creates a new ClipboardEvent instance.

Method Detail

getEventType

public int getEventType()
Returns the event type.


getData

public java.lang.Object getData()
Returns the clipped data.


getClipboardOwner

public java.lang.Object getClipboardOwner()
Returns the clipboard owner.


isConsumed

public boolean isConsumed()
Checks the consumed flag.


setConsumed

public void setConsumed(boolean consumed)
Sets the consumed flag.


getSource

public java.lang.Object getSource()
Returns the Clipboard instance that invoked the event.