Package com.tagtraum.beatunes.messages
Class MessagePanel
- java.lang.Object
-
- com.tagtraum.beatunes.messages.MessagePanel
-
- All Implemented Interfaces:
ApplicationComponent<BeaTunes>
public class MessagePanel extends Object implements ApplicationComponent<BeaTunes>
Message panel.- Author:
- Hendrik Schreiber
-
-
Constructor Summary
Constructors Constructor Description MessagePanel(BeaTunes application)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JComponent
$$$getRootComponent$$$()
void
addMessage(Message message)
void
addPropertyChangeListener(String name, PropertyChangeListener propertyChangeListener)
BeaTunes
getApplication()
Returns the main application component.JPanel
getComponent()
String
getId()
Unique id for each instance of this object.DefaultListModel<Message>
getMessageModel()
void
init()
Initializes this component and its sub-components.boolean
isVisible()
void
setApplication(BeaTunes beaTunes)
Sets the main application component.void
setVisible(boolean v)
void
shutdown()
Shuts down this component and its sub-components.
-
-
-
Constructor Detail
-
MessagePanel
public MessagePanel(BeaTunes application)
-
-
Method Detail
-
init
public void init()
Description copied from interface:ApplicationComponent
Initializes this component and its sub-components.- Specified by:
init
in interfaceApplicationComponent<BeaTunes>
-
getMessageModel
public DefaultListModel<Message> getMessageModel()
-
shutdown
public void shutdown()
Description copied from interface:ApplicationComponent
Shuts down this component and its sub-components.- Specified by:
shutdown
in interfaceApplicationComponent<BeaTunes>
-
addPropertyChangeListener
public void addPropertyChangeListener(String name, PropertyChangeListener propertyChangeListener)
-
addMessage
public void addMessage(Message message)
-
setVisible
public void setVisible(boolean v)
-
isVisible
public boolean isVisible()
-
getApplication
public BeaTunes getApplication()
Description copied from interface:ApplicationComponent
Returns the main application component.- Specified by:
getApplication
in interfaceApplicationComponent<BeaTunes>
- Returns:
- application object
-
setApplication
public void setApplication(BeaTunes beaTunes)
Description copied from interface:ApplicationComponent
Sets the main application component.- Specified by:
setApplication
in interfaceApplicationComponent<BeaTunes>
- Parameters:
beaTunes
- main application component
-
getId
public String getId()
Description copied from interface:ApplicationComponent
Unique id for each instance of this object.- Specified by:
getId
in interfaceApplicationComponent<BeaTunes>
- Returns:
- id
-
getComponent
public JPanel getComponent()
-
$$$getRootComponent$$$
public JComponent $$$getRootComponent$$$()
-
-