com.eliad.model
Class AbstractStyleModel
java.lang.Object
|
+--com.eliad.model.AbstractGenericModel
|
+--com.eliad.model.AbstractStyleModel
- Direct Known Subclasses:
- DefaultStyleModel
- public abstract class AbstractStyleModel
- extends com.eliad.model.AbstractGenericModel
- implements StyleModel
This abstract class provides default implementations for most of
the methods in the StyleModel
interface. It takes care of
the management of listeners and provides some conveniences for generating
StyleModelEvent
s and dispatching them to the listeners.
To create a concrete StyleModel
as a subclass of
AbstractStyleModel
you only need to provide implementations
for the following three methods:
public void updateUI();
public GridCellRenderer getRenderer(Class aClass, int row, int column, GridContext aGridContext);
public GridCellEditor getEditor(Class aClass, int row, int column, GridContext aGridContext);
- Version:
- 1.0 00/05/11
- Author:
- Stephan Szymkowicz
- See Also:
- Serialized Form
Fields inherited from class com.eliad.model.AbstractGenericModel |
listeners_ |
Method Summary |
void |
addStyleModelListener(StyleModelListener l)
Adds a listener to the list that is notified each time a change
to the style model occurs. |
void |
fireStyleEditorChanged(int firstRow,
int firstColumn,
int rowCount,
int columnCount)
Forwards a "editor changed" notification event to all
StyleModelListeners that are registered. |
void |
fireStyleEditorModelChanged()
Forwards an "editor model changed" notification event to all
StyleModelListeners that are registered. |
void |
fireStyleModelChanged()
Forwards a "model changed" notification event to all
StyleModelListeners that are registered. |
void |
fireStyleRendererChanged(int firstRow,
int firstColumn,
int rowCount,
int columnCount)
Forwards a "renderer changed" notification event to all
StyleModelListeners that are registered. |
void |
fireStyleRendererModelChanged()
Forwards a "renderer model changed" notification event to all
StyleModelListeners that are registered. |
void |
installUI()
|
void |
removeStyleModelListener(StyleModelListener l)
Removes a listener from the list that is notified each time a
change to the style model occurs. |
Methods inherited from class com.eliad.model.AbstractGenericModel |
getListenerCount,
getListeners |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
AbstractStyleModel
public AbstractStyleModel()
installUI
public void installUI()
addStyleModelListener
public void addStyleModelListener(StyleModelListener l)
- Adds a listener to the list that is notified each time a change
to the style model occurs.
- Specified by:
- addStyleModelListener in interface StyleModel
- Parameters:
l
- the StyleModelListener
removeStyleModelListener
public void removeStyleModelListener(StyleModelListener l)
- Removes a listener from the list that is notified each time a
change to the style model occurs.
- Specified by:
- removeStyleModelListener in interface StyleModel
- Parameters:
l
- the StyleModelListener
fireStyleModelChanged
public void fireStyleModelChanged()
- Forwards a "model changed" notification event to all
StyleModelListeners
that are registered.
- See Also:
addStyleModelListener(com.eliad.model.StyleModelListener)
,
StyleModelEvent
,
EventListenerList
fireStyleRendererModelChanged
public void fireStyleRendererModelChanged()
- Forwards a "renderer model changed" notification event to all
StyleModelListeners
that are registered.
- See Also:
StyleModelEvent
,
StyleModelListener
,
addStyleModelListener(com.eliad.model.StyleModelListener)
,
EventListenerList
fireStyleRendererChanged
public void fireStyleRendererChanged(int firstRow,
int firstColumn,
int rowCount,
int columnCount)
- Forwards a "renderer changed" notification event to all
StyleModelListeners
that are registered.
- See Also:
StyleModelEvent
,
StyleModelListener
,
addStyleModelListener(com.eliad.model.StyleModelListener)
,
EventListenerList
fireStyleEditorModelChanged
public void fireStyleEditorModelChanged()
- Forwards an "editor model changed" notification event to all
StyleModelListeners
that are registered.
- See Also:
StyleModelEvent
,
StyleModelListener
,
addStyleModelListener(com.eliad.model.StyleModelListener)
,
EventListenerList
fireStyleEditorChanged
public void fireStyleEditorChanged(int firstRow,
int firstColumn,
int rowCount,
int columnCount)
- Forwards a "editor changed" notification event to all
StyleModelListeners
that are registered.
- See Also:
StyleModelEvent
,
StyleModelListener
,
addStyleModelListener(com.eliad.model.StyleModelListener)
,
EventListenerList