jET
1.0alpha5


org.jet.sce
Interface SceneryEvent

All Known Implementing Classes:
Scenery.DefaultSceneryEvent

public interface SceneryEvent

Scenery event. This is only interface so it is possible to create undoable events.


Field Summary
static int CHANGE
          Change event type.
static int INSERT
          Insert event type.
static int REMOVE
          Remove event type.
 
Method Summary
 java.lang.Object[] getInserted()
          Gets array of inserted elements.
 java.lang.Object[] getRemoved()
          Gets array of removed elements.
 Scenery getScenery()
          Returns scenery which sent this event.
 int getType()
          Gets type of event.
 

Field Detail

INSERT

public static final int INSERT
Insert event type.

See Also:
Constant Field Values

CHANGE

public static final int CHANGE
Change event type.

See Also:
Constant Field Values

REMOVE

public static final int REMOVE
Remove event type.

See Also:
Constant Field Values
Method Detail

getScenery

public Scenery getScenery()
Returns scenery which sent this event.

Returns:
Scenery.

getType

public int getType()
Gets type of event. Event types are predefined values.

See Also:
INSERT, CHANGE, REMOVE

getInserted

public java.lang.Object[] getInserted()
Gets array of inserted elements.

Returns:
May return null when there was remove event.

getRemoved

public java.lang.Object[] getRemoved()
Gets array of removed elements.

Returns:
May return null when there was insert event.

jET
1.0alpha5