public class ContentModel extends java.lang.Object implements IPropertyChangeNotifier
ContentModel
stores the content Object
s that are
visualized. The ContentModel
fires a property change event when the
contents are changed.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTENTS_PROPERTY
Property name used when notifying listeners about content changes.
|
Constructor and Description |
---|
ContentModel() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener) |
java.util.List<? extends java.lang.Object> |
getContents()
Returns an unmodifiable list containing the current content objects.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener) |
void |
setContents(java.util.List<? extends java.lang.Object> contents)
Replaces the currently stored content objects with the given list of new
content objects.
|
public static final java.lang.String CONTENTS_PROPERTY
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener
in interface IPropertyChangeNotifier
public java.util.List<? extends java.lang.Object> getContents()
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener
in interface IPropertyChangeNotifier
public void setContents(java.util.List<? extends java.lang.Object> contents)
contents
- A list containing the new content objects to store in this
ContentModel
.Copyright (c) 2014 itemis AG and others. All rights reserved.