source: tmcsimulator-scriptbuilder/trunk/src/event/editor/frame/MultPropertyPanel.java @ 93

Revision 93, 675 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 
1package event.editor.frame;
2
3import event.editor.frame.PropertyPanel;
4import event.editor.frame.Properties;
5import javax.swing.JPanel;
6
7/**
8 *
9 * @author Bryan McGuffin
10 */
11public class MultPropertyPanel extends PropertyPanel
12{
13
14    private int index;
15
16    public MultPropertyPanel(JPanel thePanel,
17            Properties theProperty,
18            int theIndex)
19    {
20        super(thePanel, theProperty);
21        index = theIndex;
22    }
23
24    public int getIndex()
25    {
26        return index;
27    }
28
29    public void setIndex(int newIndex)
30    {
31        index = newIndex;
32    }
33
34    @Override
35    public String title()
36    {
37        return super.title() + " " + index;
38    }
39}
Note: See TracBrowser for help on using the repository browser.