| 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 | |
|---|
| 1 | package event.editor.frame; |
|---|
| 2 | |
|---|
| 3 | import event.editor.frame.PropertyPanel; |
|---|
| 4 | import event.editor.frame.Properties; |
|---|
| 5 | import javax.swing.JPanel; |
|---|
| 6 | |
|---|
| 7 | /** |
|---|
| 8 | * |
|---|
| 9 | * @author Bryan McGuffin |
|---|
| 10 | */ |
|---|
| 11 | public 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.