source: tmcsimulator-scriptbuilder/trunk/src/event/editor/frame/PropertyUpdate.java @ 94

Revision 94, 803 bytes checked in by bmcguffin, 9 years ago (diff)

Minor cosmetic changes.

Line 
1package event.editor.frame;
2
3/**
4 *
5 * @author Bryan McGuffin
6 */
7public class PropertyUpdate
8{
9
10    private UpdateType type;
11    private PropertyPanel panel;
12    private int position = -1;
13
14    public PropertyUpdate(UpdateType theType, PropertyPanel thePanel)
15    {
16        type = theType;
17        panel = thePanel;
18    }
19
20    public PropertyUpdate(UpdateType theType, PropertyPanel thePanel, int thePosition)
21    {
22        this(theType, thePanel);
23        position = thePosition;
24    }
25
26    public int getPosition()
27    {
28        if (position == -1)
29        {
30            throw new RuntimeException("position unknown");
31        }
32
33        return position;
34    }
35
36    public UpdateType getType()
37    {
38        return type;
39    }
40
41    public PropertyPanel getPanel()
42    {
43        return panel;
44    }
45}
Note: See TracBrowser for help on using the repository browser.