| Revision 93,
597 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.Properties; |
|---|
| 4 | import javax.swing.JPanel; |
|---|
| 5 | |
|---|
| 6 | /** |
|---|
| 7 | * |
|---|
| 8 | * @author Bryan McGuffin |
|---|
| 9 | */ |
|---|
| 10 | public class PropertyPanel |
|---|
| 11 | { |
|---|
| 12 | |
|---|
| 13 | private final JPanel panel; |
|---|
| 14 | private final Properties property; |
|---|
| 15 | |
|---|
| 16 | public PropertyPanel(JPanel thePanel, |
|---|
| 17 | Properties theProperty) |
|---|
| 18 | { |
|---|
| 19 | panel = thePanel; |
|---|
| 20 | property = theProperty; |
|---|
| 21 | } |
|---|
| 22 | |
|---|
| 23 | public JPanel getPanel() |
|---|
| 24 | { |
|---|
| 25 | return panel; |
|---|
| 26 | } |
|---|
| 27 | |
|---|
| 28 | public Properties getProperty() |
|---|
| 29 | { |
|---|
| 30 | return property; |
|---|
| 31 | } |
|---|
| 32 | |
|---|
| 33 | public String title() |
|---|
| 34 | { |
|---|
| 35 | return property.getTitle(); |
|---|
| 36 | } |
|---|
| 37 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.