package event.editor.frame; /** * * @author Bryan McGuffin */ public class PropertyUpdate { private UpdateType type; private PropertyPanel panel; private int position = -1; public PropertyUpdate(UpdateType theType, PropertyPanel thePanel) { type = theType; panel = thePanel; } public PropertyUpdate(UpdateType theType, PropertyPanel thePanel, int thePosition) { this(theType, thePanel); position = thePosition; } public int getPosition() { if (position == -1) { throw new RuntimeException("position unknown"); } return position; } public UpdateType getType() { return type; } public PropertyPanel getPanel() { return panel; } }