JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.util.progress
Class JCProgressEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--java.awt.AWTEvent
              |
              +--com.klg.jclass.util.progress.JCProgressEvent
All Implemented Interfaces:
Serializable

public class JCProgressEvent
extends AWTEvent

JCProgressEvent is used to monitor the status of a process.

See Also:
JCProgressListener, Serialized Form

Field Summary
protected  boolean abort
           
protected  int current_unit
           
protected  String process_name
           
protected  int unit_count
           
protected  String unit_name
           
 
Fields inherited from class java.awt.AWTEvent
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
JCProgressEvent(Object source, int action, String unit_name, String process_name, int unit_count, int current_unit)
           
 
Method Summary
 int getCurrentUnit()
          Returns the current_unit being processed.
 String getProcessName()
          Returns the process name.
 int getUnitCount()
          Returns the total unit count for the process.
 String getUnitName()
          Returns the unit name.
 boolean isAborted()
          Checks to see if the process is aborted.
 void setAbort(boolean abort)
          Allows the listener to abort the process.
 
Methods inherited from class java.awt.AWTEvent
consume, getID, isConsumed, paramString, setSource, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

unit_name

protected String unit_name

process_name

protected String process_name

unit_count

protected int unit_count

current_unit

protected int current_unit

abort

protected boolean abort
Constructor Detail

JCProgressEvent

public JCProgressEvent(Object source,
                       int action,
                       String unit_name,
                       String process_name,
                       int unit_count,
                       int current_unit)
Method Detail

getUnitName

public String getUnitName()
Returns the unit name.

Returns:
unit name

getProcessName

public String getProcessName()
Returns the process name.

Returns:
process name

getUnitCount

public int getUnitCount()
Returns the total unit count for the process.

Returns:
total unit count for the process

getCurrentUnit

public int getCurrentUnit()
Returns the current_unit being processed.

Returns:
current_unit being processed

isAborted

public boolean isAborted()
Checks to see if the process is aborted.

Returns:

setAbort

public void setAbort(boolean abort)
Allows the listener to abort the process.

Parameters:
abort -

Copyright © 2004 Quest Software Inc..
All rights reserved.