java.lang.Object
java.util.EventObject
java.awt.AWTEvent
org.jorigin.plugin.PluginToolkitEvent
- All Implemented Interfaces:
Serializable
An event launched by the plugin toolkit. This event enables to monitor the
PluginToolkit work.- 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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intFlag used when the plugin discovery task is working on an archive.static final intFlag used when the plugin discovery task is working on a directory.static final intFlag used when the plugin discovery task has finished.static final intFlag used when the plugin discovery task has sarted.static final intFlag used when the plugin loading task has encountred an error.static final intFlag used when the plugin loading task finishes.static final intFlag used when the plugin loading task has loaded a plugin.static final intFlag used when the plugin loading task starts.static final intFlag 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_MASKFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionPluginToolkitEvent(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
Modifier and TypeMethodDescriptionGet the message attached to this event.Get the plugin attached o this event.doubleGet the progress attached to this event.doubleGet the size of the task within this event has been fired.Methods inherited from class java.awt.AWTEvent
consume, getID, isConsumed, paramString, setSource, toStringMethods inherited from class java.util.EventObject
getSource
-
Field Details
-
PLUGIN_DISCOVERING_START
public static final int PLUGIN_DISCOVERING_STARTFlag used when the plugin discovery task has sarted.- See Also:
-
PLUGIN_DISCOVERING_FINISHED
public static final int PLUGIN_DISCOVERING_FINISHEDFlag used when the plugin discovery task has finished.- See Also:
-
PLUGIN_DISCOVERING_ARCHIVE
public static final int PLUGIN_DISCOVERING_ARCHIVEFlag used when the plugin discovery task is working on an archive.- See Also:
-
PLUGIN_DISCOVERING_DIR
public static final int PLUGIN_DISCOVERING_DIRFlag used when the plugin discovery task is working on a directory.- See Also:
-
PLUGIN_NO_DISCOVERY
public static final int PLUGIN_NO_DISCOVERYFlag used when the plugin discovery task has found no plugin.- See Also:
-
PLUGIN_LOADING_START
public static final int PLUGIN_LOADING_STARTFlag used when the plugin loading task starts.- See Also:
-
PLUGIN_LOADING_FINISHED
public static final int PLUGIN_LOADING_FINISHEDFlag used when the plugin loading task finishes.- See Also:
-
PLUGIN_LOADING_LOADED
public static final int PLUGIN_LOADING_LOADEDFlag used when the plugin loading task has loaded a plugin.- See Also:
-
PLUGIN_LOADING_ERROR
public static final int PLUGIN_LOADING_ERRORFlag used when the plugin loading task has encountred an error.- See Also:
-
-
Constructor Details
-
PluginToolkitEvent
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
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
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
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
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
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 Details
-
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
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.
-