Package com.github.fracpete.jshell.event
Class JShellPanelEvent
java.lang.Object
java.util.EventObject
com.github.fracpete.jshell.event.JShellPanelEvent
- All Implemented Interfaces:
Serializable
Events sent by the
JShellPanel.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionJShellPanelEvent(JShellPanel source, JShellPanelEvent.EventType type) Constructs a prototypical Event. -
Method Summary
Modifier and TypeMethodDescriptionReturns the JShellPanel that initiated the event.getType()Returns the event type.Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
m_Type
the event type.
-
-
Constructor Details
-
JShellPanelEvent
Constructs a prototypical Event.- Parameters:
source- the source from which the Event initially originated- Throws:
IllegalArgumentException- if source is null
-
-
Method Details
-
getJShellPanel
Returns the JShellPanel that initiated the event.- Returns:
- the instance
-
getType
Returns the event type.- Returns:
- the event type
-