- java.lang.Object
-
- java.util.EventObject
-
- java.awt.AWTEvent
-
- org.jorigin.plugin.PluginToolkitEvent
-
- All Implemented Interfaces:
Serializable
public class PluginToolkitEvent extends AWTEvent
An event launched by the plugin toolkit. This event enables to monitor thePluginToolkitwork.- Since:
- 1.0.0
- Version:
- "1.0.14" - b202111241200L
- Author:
- Julien SEINTURIER - Université de Toulon / CNRS LIS umr 7020 - github.com/jorigin/jcommon (contact@jorigin.org)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intPLUGIN_DISCOVERING_ARCHIVEFlag used when the plugin discovery task is working on an archive.static intPLUGIN_DISCOVERING_DIRFlag used when the plugin discovery task is working on a directory.static intPLUGIN_DISCOVERING_FINISHEDFlag used when the plugin discovery task has finished.static intPLUGIN_DISCOVERING_STARTFlag used when the plugin discovery task has sarted.static intPLUGIN_LOADING_ERRORFlag used when the plugin loading task has encountred an error.static intPLUGIN_LOADING_FINISHEDFlag used when the plugin loading task finishes.static intPLUGIN_LOADING_LOADEDFlag used when the plugin loading task has loaded a plugin.static intPLUGIN_LOADING_STARTFlag used when the plugin loading task starts.static intPLUGIN_NO_DISCOVERYFlag used when the plugin discovery task has found no plugin.-
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
Constructors Constructor Description PluginToolkitEvent(Object source, int id)Create a new event with the source and identifier given in parameterPluginToolkitEvent(Object source, int id, String msg)Create a new event with the source and identifier given in parameter.PluginToolkitEvent(Object source, int id, String msg, double progress)Create a new event with the source and identifier given in parameter.PluginToolkitEvent(Object source, int id, String msg, double progress, double taskSize)Create a new event with the source and identifier given in parameter.PluginToolkitEvent(Object source, int id, IPlugin plugin, double progress)Create a new event with the source and identifier given in parameter.PluginToolkitEvent(Object source, int id, IPlugin plugin, double progress, double taskSize)Create a new event with the source and identifier given in parameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()Get the message attached to this event.IPlugingetPlugin()Get the plugin attached o this event.doublegetProgress()Get the progress attached to this event.doublegetTaskSize()Get the size of the task within this event has been fired.-
Methods inherited from class java.awt.AWTEvent
consume, getID, isConsumed, paramString, setSource, toString
-
Methods inherited from class java.util.EventObject
getSource
-
-
-
-
Field Detail
-
PLUGIN_DISCOVERING_START
public static final int PLUGIN_DISCOVERING_START
Flag used when the plugin discovery task has sarted.- See Also:
- Constant Field Values
-
PLUGIN_DISCOVERING_FINISHED
public static final int PLUGIN_DISCOVERING_FINISHED
Flag used when the plugin discovery task has finished.- See Also:
- Constant Field Values
-
PLUGIN_DISCOVERING_ARCHIVE
public static final int PLUGIN_DISCOVERING_ARCHIVE
Flag used when the plugin discovery task is working on an archive.- See Also:
- Constant Field Values
-
PLUGIN_DISCOVERING_DIR
public static final int PLUGIN_DISCOVERING_DIR
Flag used when the plugin discovery task is working on a directory.- See Also:
- Constant Field Values
-
PLUGIN_NO_DISCOVERY
public static final int PLUGIN_NO_DISCOVERY
Flag used when the plugin discovery task has found no plugin.- See Also:
- Constant Field Values
-
PLUGIN_LOADING_START
public static final int PLUGIN_LOADING_START
Flag used when the plugin loading task starts.- See Also:
- Constant Field Values
-
PLUGIN_LOADING_FINISHED
public static final int PLUGIN_LOADING_FINISHED
Flag used when the plugin loading task finishes.- See Also:
- Constant Field Values
-
PLUGIN_LOADING_LOADED
public static final int PLUGIN_LOADING_LOADED
Flag used when the plugin loading task has loaded a plugin.- See Also:
- Constant Field Values
-
PLUGIN_LOADING_ERROR
public static final int PLUGIN_LOADING_ERROR
Flag used when the plugin loading task has encountred an error.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PluginToolkitEvent
public PluginToolkitEvent(Object source, int id)
Create a new event with the source and identifier given in parameter- Parameters:
source- the source of the event (should be an instance ofPluginToolkit)id- the identifier of the event. See the static descriptors of this class
-
PluginToolkitEvent
public PluginToolkitEvent(Object source, int id, String msg)
Create a new event with the source and identifier given in parameter. A message is attached to the event.- Parameters:
source- the source of the event (should be an instance ofPluginToolkit)id- the identifier of the event. See the static descriptors of this classmsg- the message associated to the event
-
PluginToolkitEvent
public PluginToolkitEvent(Object source, int id, String msg, double progress)
Create a new event with the source and identifier given in parameter. A message is attached to the event.
A progress is attached to the event, so if the event represents a task progress, the overall progress can be monitored.- Parameters:
source- the source of the event (should be an instance ofPluginToolkit)id- the identifier of the event. See the static descriptors of this classmsg- the message associated to the eventprogress- the progress associated to this event.
-
PluginToolkitEvent
public PluginToolkitEvent(Object source, int id, String msg, double progress, double taskSize)
Create a new event with the source and identifier given in parameter. A message is attached to the event.
A progress is attached to the event, so if the event represents a task progress, the overall progress can be monitored. The overall task size is given by the parametertaskSize.- Parameters:
source- the source of the event (should be an instance ofPluginToolkit)id- the identifier of the event. See the static descriptors of this classmsg- the message associated to the eventprogress- the progress associated to this event.taskSize- the total size of the task which this event is attached.
-
PluginToolkitEvent
public PluginToolkitEvent(Object source, int id, IPlugin plugin, double progress)
Create a new event with the source and identifier given in parameter. The plugin thats lead to this event to be fired is given in parameter.
A progress is attached to the event, so if the event represents a task progress, the overall progress can be monitored.- Parameters:
source- the source of the event (should be an instance ofPluginToolkit)id- the identifier of the event. See the static descriptors of this classplugin- the plugin attached to this eventprogress- the progress associated to this event.
-
PluginToolkitEvent
public PluginToolkitEvent(Object source, int id, IPlugin plugin, double progress, double taskSize)
Create a new event with the source and identifier given in parameter. The plugin thats lead to this event to be fired is given in parameter.
A progress is attached to the event, so if the event represents a task progress, the overall progress can be monitored. The overall task size is given by the parametertaskSize- Parameters:
source- the source of the event (should be an instance ofPluginToolkit)id- the identifier of the event. See the static descriptors of this classplugin- the plugin attached to this eventprogress- the progress associated to this event.taskSize- the total size of the task which this event is attached.
-
-
Method Detail
-
getMessage
public String getMessage()
Get the message attached to this event.- Returns:
- the message attached to this event.
-
getProgress
public double getProgress()
Get the progress attached to this event.- Returns:
- the message attached to this event.
-
getPlugin
public IPlugin getPlugin()
Get the plugin attached o this event.- Returns:
- the plugin attached o this event.
-
getTaskSize
public double getTaskSize()
Get the size of the task within this event has been fired.- Returns:
- the size of the task within this event has been fired.
-
-