| Revision 93,
845 bytes
checked in by bmcguffin, 9 years ago
(diff) |
|
Moved classes which represent elements of the main event editor frame to their own package, for clarity' sake.
|
| Line | |
|---|
| 1 | package event.editor.frame; |
|---|
| 2 | |
|---|
| 3 | import event.editor.frame.PropertyPanel; |
|---|
| 4 | |
|---|
| 5 | /** |
|---|
| 6 | * |
|---|
| 7 | * @author Bryan McGuffin |
|---|
| 8 | */ |
|---|
| 9 | public class PropertyUpdate |
|---|
| 10 | { |
|---|
| 11 | |
|---|
| 12 | private UpdateType type; |
|---|
| 13 | private PropertyPanel panel; |
|---|
| 14 | private int position = -1; |
|---|
| 15 | |
|---|
| 16 | public PropertyUpdate(UpdateType theType, PropertyPanel thePanel) |
|---|
| 17 | { |
|---|
| 18 | type = theType; |
|---|
| 19 | panel = thePanel; |
|---|
| 20 | } |
|---|
| 21 | |
|---|
| 22 | public PropertyUpdate(UpdateType theType, PropertyPanel thePanel, int thePosition) |
|---|
| 23 | { |
|---|
| 24 | this(theType, thePanel); |
|---|
| 25 | position = thePosition; |
|---|
| 26 | } |
|---|
| 27 | |
|---|
| 28 | public int getPosition() |
|---|
| 29 | { |
|---|
| 30 | if (position == -1) |
|---|
| 31 | { |
|---|
| 32 | throw new RuntimeException("position unknown"); |
|---|
| 33 | } |
|---|
| 34 | |
|---|
| 35 | return position; |
|---|
| 36 | } |
|---|
| 37 | |
|---|
| 38 | public UpdateType getType() |
|---|
| 39 | { |
|---|
| 40 | return type; |
|---|
| 41 | } |
|---|
| 42 | |
|---|
| 43 | public PropertyPanel getPanel() |
|---|
| 44 | { |
|---|
| 45 | return panel; |
|---|
| 46 | } |
|---|
| 47 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.