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