org.openbp.swing.components.treetable
Class TreeTableEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.openbp.swing.components.treetable.TreeTableEvent
All Implemented Interfaces:
java.io.Serializable

public class TreeTableEvent
extends java.util.EventObject

Tree table event.

Author:
Heiko Erhardt
See Also:
Serialized Form

Field Summary
static int EVENT_COMMAND
          Command event
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TreeTableEvent(JTreeTable source, int type)
          Default constructor.
 
Method Summary
 void consume()
          Sets the flag that the event has been consumed.
 int getCommand()
          Gets the command.
 int getType()
          Gets the event type.
 boolean isConsumed()
          Gets the flag that the event has been consumed.
 void setCommand(int command)
          Sets the command.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EVENT_COMMAND

public static final int EVENT_COMMAND
Command event

See Also:
Constant Field Values
Constructor Detail

TreeTableEvent

public TreeTableEvent(JTreeTable source,
                      int type)
Default constructor.

Parameters:
source - Tree table that fired the event
type - Event type (see the constants of this class)
Method Detail

consume

public void consume()
Sets the flag that the event has been consumed.


isConsumed

public boolean isConsumed()
Gets the flag that the event has been consumed.


getType

public int getType()
Gets the event type.


getCommand

public int getCommand()
Gets the command.

Returns:
See the JTreeTable.CMD_* constants

setCommand

public void setCommand(int command)
Sets the command. (See the JTreeTable.CMD_* constants).

Parameters:
command - See the JTreeTable.CMD_* constants


Copyright © 2011. All Rights Reserved.