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$$$()voidaddMessage(Message message)voidaddPropertyChangeListener(String name, PropertyChangeListener propertyChangeListener)BeaTunesgetApplication()Returns the main application component.JPanelgetComponent()StringgetId()Unique id for each instance of this object.DefaultListModel<Message>getMessageModel()voidinit()Initializes this component and its sub-components.booleanisVisible()voidsetApplication(BeaTunes beaTunes)Sets the main application component.voidsetVisible(boolean v)voidshutdown()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:ApplicationComponentInitializes this component and its sub-components.- Specified by:
initin interfaceApplicationComponent<BeaTunes>
-
getMessageModel
public DefaultListModel<Message> getMessageModel()
-
shutdown
public void shutdown()
Description copied from interface:ApplicationComponentShuts down this component and its sub-components.- Specified by:
shutdownin 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:ApplicationComponentReturns the main application component.- Specified by:
getApplicationin interfaceApplicationComponent<BeaTunes>- Returns:
- application object
-
setApplication
public void setApplication(BeaTunes beaTunes)
Description copied from interface:ApplicationComponentSets the main application component.- Specified by:
setApplicationin interfaceApplicationComponent<BeaTunes>- Parameters:
beaTunes- main application component
-
getId
public String getId()
Description copied from interface:ApplicationComponentUnique id for each instance of this object.- Specified by:
getIdin interfaceApplicationComponent<BeaTunes>- Returns:
- id
-
getComponent
public JPanel getComponent()
-
$$$getRootComponent$$$
public JComponent $$$getRootComponent$$$()
-
-