|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectworkspace.WorkspaceEvent
public class WorkspaceEvent
Field Summary | |
---|---|
static int |
BLOCK_ADDED
|
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 Summary | |
---|---|
WorkspaceEvent(WorkspaceWidget widget,
BlockLink link,
int eventType)
Constructs a new WorkspaceEvent. |
|
WorkspaceEvent(WorkspaceWidget widget,
BlockLink link,
int eventType,
boolean userSpawned)
|
|
WorkspaceEvent(WorkspaceWidget page,
int eventType)
Constructs a new WorkspaceEvent. |
|
WorkspaceEvent(WorkspaceWidget page,
int eventType,
boolean userSpawned)
|
|
WorkspaceEvent(WorkspaceWidget widget,
java.lang.Long blockID,
int eventType)
Constructs a new WorkspaceEvent. |
|
WorkspaceEvent(WorkspaceWidget widget,
java.lang.Long blockID,
int eventType,
boolean userSpawned)
|
|
WorkspaceEvent(WorkspaceWidget page,
java.lang.String oldName,
int eventType)
Constructs a new WorkspaceEvent. |
|
WorkspaceEvent(WorkspaceWidget page,
java.lang.String oldName,
int eventType,
boolean userSpawned)
|
Method Summary | |
---|---|
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. |
boolean |
isUserEvent()
Tells if this event is a user spawned event or not |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public WorkspaceEvent(WorkspaceWidget page, int eventType)
page
- eventType
- public WorkspaceEvent(WorkspaceWidget page, int eventType, boolean userSpawned)
public WorkspaceEvent(WorkspaceWidget page, java.lang.String oldName, int eventType)
page
- oldName
- the old String name of this pageeventType
- public WorkspaceEvent(WorkspaceWidget page, java.lang.String oldName, int eventType, boolean userSpawned)
public WorkspaceEvent(WorkspaceWidget widget, java.lang.Long blockID, int eventType)
widget
- blockID
- eventType
- public WorkspaceEvent(WorkspaceWidget widget, java.lang.Long blockID, int eventType, boolean userSpawned)
public WorkspaceEvent(WorkspaceWidget widget, BlockLink link, int eventType)
widget
- link
- eventType
- public WorkspaceEvent(WorkspaceWidget widget, BlockLink link, int eventType, boolean userSpawned)
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |