Package edu.wpi.grip.core.events
Class SocketPreviewChangedEvent
- java.lang.Object
-
- edu.wpi.grip.core.events.SocketPreviewChangedEvent
-
- All Implemented Interfaces:
DirtiesSaveEvent
public class SocketPreviewChangedEvent extends java.lang.Object implements DirtiesSaveEvent
An event that occurs when aOutputSocket
is set to be either previewed or not previewed. The GUI listens for these events so it knows which sockets to show previews for.
-
-
Constructor Summary
Constructors Constructor Description SocketPreviewChangedEvent(OutputSocket socket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputSocket
getSocket()
boolean
isRegarding(OutputSocket socket)
Queries the event to determine if this event is about this socket.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface edu.wpi.grip.core.events.DirtiesSaveEvent
doesDirtySave
-
-
-
-
Constructor Detail
-
SocketPreviewChangedEvent
public SocketPreviewChangedEvent(OutputSocket socket)
- Parameters:
socket
- The socket being previewed.
-
-
Method Detail
-
isRegarding
public boolean isRegarding(OutputSocket socket)
Queries the event to determine if this event is about this socket.- Parameters:
socket
- The socket to check to see if it is related to.- Returns:
- True if this socket is with regards to this event.
-
getSocket
public OutputSocket getSocket()
- Returns:
- The socket being previewed.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-