You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
862 B
41 lines
862 B
package com.fr.design.designer.beans.events; |
|
|
|
import com.fr.design.designer.creator.XComponent; |
|
|
|
/** |
|
* 设计事件 |
|
*/ |
|
public class DesignerEvent { |
|
|
|
public static final int CREATOR_ADDED = 1; |
|
|
|
public static final int CREATOR_DELETED = 2; |
|
|
|
public static final int CREATOR_CUTED = 3; |
|
|
|
public static final int CREATOR_PASTED = 4; |
|
|
|
public static final int CREATOR_EDITED = 5; |
|
|
|
public static final int CREATOR_RESIZED = 6; |
|
|
|
public static final int CREATOR_SELECTED = 7; |
|
|
|
public static final int CREATOR_RENAMED = 8; |
|
|
|
private int eventID; |
|
private XComponent affectedXCreator; |
|
|
|
DesignerEvent(int eventID, XComponent comp) { |
|
this.eventID = eventID; |
|
this.affectedXCreator = comp; |
|
} |
|
|
|
public int getCreatorEventID() { |
|
return eventID; |
|
} |
|
|
|
public XComponent getAffectedCreator() { |
|
return affectedXCreator; |
|
} |
|
} |