Package io.guise.framework.model
Class AbstractModel
- java.lang.Object
-
- com.globalmentor.beans.BoundPropertyObject
-
- io.guise.framework.model.AbstractModel
-
- All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable
,com.globalmentor.beans.PropertyConstrainable
,Model
- Direct Known Subclasses:
AbstractProxyPrototype
,AbstractTableModel
,AbstractValueModel
,ComponentNavigationModel
,DefaultActionModel
,DefaultImageModel
,DefaultLabelModel
,DefaultNavigationModel
,DefaultTextModel
,DefaultTreeModel
public abstract class AbstractModel extends com.globalmentor.beans.BoundPropertyObject implements Model
A base abstract class implementing helpful functionality for models.- Author:
- Garret Wilson
-
-
Constructor Summary
Constructors Constructor Description AbstractModel()
Default constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.globalmentor.event.EventListenerManager
getEventListenerManager()
static java.lang.String
getPlainText(java.lang.String text, com.globalmentor.net.ContentType contentType)
Determines the plain text form of the given text, based upon its content type.-
Methods inherited from class com.globalmentor.beans.BoundPropertyObject
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, createPostponedPropertyChangeEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getForwardPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeSupport, getRepeatPropertyChangeListener, getRepeatVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, getVetoableChangeSupport, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
getEventListenerManager
protected com.globalmentor.event.EventListenerManager getEventListenerManager()
- Returns:
- The object managing event listeners.
-
getPlainText
public static java.lang.String getPlainText(java.lang.String text, com.globalmentor.net.ContentType contentType)
Determines the plain text form of the given text, based upon its content type.- Parameters:
text
- The given text.contentType
- The content type of the text.- Returns:
- The plain text form of the given text, based upon the given content type.
- Throws:
java.lang.NullPointerException
- if the given text and/or content type isnull
.java.lang.IllegalArgumentException
- if the given content type is not a text content type.
-
-