ehsbe CommonsTM
Version 1.1.0rc3

com.ehsbe.commons.gui.wizard
Class TaskControlEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.swing.event.ChangeEvent
          extended by com.ehsbe.commons.gui.wizard.TaskControlEvent
All Implemented Interfaces:
Serializable

public class TaskControlEvent
extends ChangeEvent

Event fired when the state of a task changed.

Version:
$Revision: 495 $
Author:
Jens Elkner
See Also:
Serialized Form

Nested Class Summary
static class TaskControlEvent.Type
          The type of the change.
 
Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TaskControlEvent(TaskControl source, TaskControlEvent.Type type, EnumSet<NavMode> mode)
          Construct a TaskEvent.
 
Method Summary
 EnumSet<NavMode> getMode()
          Get the navigation mode, which should be propagated.
 TaskControlEvent.Type getType()
          Get the type of state change.
 
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
 

Constructor Detail

TaskControlEvent

public TaskControlEvent(TaskControl source,
                        TaskControlEvent.Type type,
                        EnumSet<NavMode> mode)
Construct a TaskEvent.

Parameters:
source - the task controller, which fired this event.
type - the type of state change.
mode - optional navigation mode, which changed
Throws:
IllegalArgumentException - if a parameter is null
Method Detail

getType

public TaskControlEvent.Type getType()
Get the type of state change.

Returns:
the type

getMode

public EnumSet<NavMode> getMode()
Get the navigation mode, which should be propagated.

Returns:
null if not set (default), the mode otherwise.

ehsbe CommonsTM
Version 1.1.0rc3

Copyright ©2005-2009 EHSBE, Walther-Rathenau-Str. 58, 39104 Magdeburg, Sachsen-Anhalt, Germany. All Rights Reserved.