public class WorkspaceEvent
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BLOCK_ADDED |
static int |
BLOCK_CLONED |
static int |
BLOCK_COMMENT_ADDED |
static int |
BLOCK_COMMENT_CHANGED |
static int |
BLOCK_COMMENT_MOVED |
static int |
BLOCK_COMMENT_REMOVED |
static int |
BLOCK_COMMENT_RESIZED |
static int |
BLOCK_COMMENT_VISBILITY_CHANGE |
static int |
BLOCK_GENUS_CHANGED |
static int |
BLOCK_MOVED |
static int |
BLOCK_REMOVED |
static int |
BLOCK_RENAMED |
static int |
BLOCK_STACK_COMPILED |
static int |
BLOCKS_CONNECTED |
static int |
BLOCKS_DISCONNECTED |
static int |
PAGE_ADDED |
static int |
PAGE_REMOVED |
static int |
PAGE_RENAMED |
static int |
PAGE_RESIZED |
static int |
WORKSPACE_FINISHED_LOADING |
| Constructor and Description |
|---|
WorkspaceEvent(Workspace workspace,
WorkspaceWidget widget,
BlockLink link,
int eventType)
Constructs a new WorkspaceEvent.
|
WorkspaceEvent(Workspace workspace,
WorkspaceWidget widget,
BlockLink link,
int eventType,
boolean userSpawned) |
WorkspaceEvent(Workspace workspace,
WorkspaceWidget page,
int eventType)
Constructs a new WorkspaceEvent.
|
WorkspaceEvent(Workspace workspace,
WorkspaceWidget page,
int eventType,
boolean userSpawned) |
WorkspaceEvent(Workspace workspace,
WorkspaceWidget widget,
java.lang.Long blockID,
int eventType)
Constructs a new WorkspaceEvent.
|
WorkspaceEvent(Workspace workspace,
WorkspaceWidget widget,
java.lang.Long blockID,
int eventType,
boolean userSpawned) |
WorkspaceEvent(Workspace workspace,
WorkspaceWidget page,
java.lang.String oldName,
int eventType)
Constructs a new WorkspaceEvent.
|
WorkspaceEvent(Workspace workspace,
WorkspaceWidget page,
java.lang.String oldName,
int eventType,
boolean userSpawned) |
| Modifier and Type | Method and Description |
|---|---|
int |
getEventType()
Returns the int event type of this
|
java.lang.String |
getOldNameOfSourceWidget()
Returns the original name of the source widget; null if the source widget's
name did not change.
|
java.lang.Long |
getSourceBlockID()
Returns the Long ID of the Block where this event occured.
|
BlockLink |
getSourceLink()
Returns the BlockLink where this event originated, or null if the event type
of this is not block connected or disconnected.
|
WorkspaceWidget |
getSourceWidget()
Returns the WorkspaceWidget where this event occured.
|
Workspace |
getWorkspace()
Returns a reference on the workspace that is currently being used
|
boolean |
isUserEvent()
Tells if this event is a user spawned event or not
|
java.lang.String |
toString() |
public static final int PAGE_ADDED
public static final int PAGE_REMOVED
public static final int BLOCK_ADDED
public static final int BLOCK_REMOVED
public static final int BLOCKS_CONNECTED
public static final int BLOCKS_DISCONNECTED
public static final int BLOCK_STACK_COMPILED
public static final int PAGE_RENAMED
public static final int PAGE_RESIZED
public static final int BLOCK_RENAMED
public static final int BLOCK_MOVED
public static final int BLOCK_GENUS_CHANGED
public static final int BLOCK_COMMENT_ADDED
public static final int BLOCK_COMMENT_REMOVED
public static final int BLOCK_COMMENT_MOVED
public static final int BLOCK_COMMENT_RESIZED
public static final int BLOCK_COMMENT_VISBILITY_CHANGE
public static final int BLOCK_COMMENT_CHANGED
public static final int WORKSPACE_FINISHED_LOADING
public static final int BLOCK_CLONED
public WorkspaceEvent(Workspace workspace, WorkspaceWidget page, int eventType)
page - eventType - public WorkspaceEvent(Workspace workspace, WorkspaceWidget page, int eventType, boolean userSpawned)
public WorkspaceEvent(Workspace workspace, WorkspaceWidget page, java.lang.String oldName, int eventType)
page - oldName - the old String name of this pageeventType - public WorkspaceEvent(Workspace workspace, WorkspaceWidget page, java.lang.String oldName, int eventType, boolean userSpawned)
public WorkspaceEvent(Workspace workspace, WorkspaceWidget widget, java.lang.Long blockID, int eventType)
widget - blockID - eventType - public WorkspaceEvent(Workspace workspace, WorkspaceWidget widget, java.lang.Long blockID, int eventType, boolean userSpawned)
public WorkspaceEvent(Workspace workspace, WorkspaceWidget widget, BlockLink link, int eventType)
widget - link - eventType - public WorkspaceEvent(Workspace workspace, WorkspaceWidget widget, BlockLink link, int eventType, boolean userSpawned)
public Workspace getWorkspace()
public boolean isUserEvent()
public WorkspaceWidget getSourceWidget()
public java.lang.Long getSourceBlockID()
public int getEventType()
public BlockLink getSourceLink()
public java.lang.String getOldNameOfSourceWidget()
public java.lang.String toString()
toString in class java.lang.Object