|
JHotDraw 7.5.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jhotdraw.gui.fontchooser.AbstractFontChooserModel
public abstract class AbstractFontChooserModel
AbstractFontChooserModel.
| Field Summary | |
|---|---|
protected javax.swing.event.EventListenerList |
listenerList
Listeners. |
| Constructor Summary | |
|---|---|
AbstractFontChooserModel()
|
|
| Method Summary | ||
|---|---|---|
void |
addTreeModelListener(javax.swing.event.TreeModelListener l)
Adds a listener for the TreeModelEvent posted after the tree changes. |
|
protected void |
fireTreeNodesChanged(java.lang.Object source,
java.lang.Object[] path,
int[] childIndices,
java.lang.Object[] children)
Notifies all listeners that have registered interest for notification on this event type. |
|
protected void |
fireTreeNodesInserted(java.lang.Object source,
java.lang.Object[] path,
int[] childIndices,
java.lang.Object[] children)
Notifies all listeners that have registered interest for notification on this event type. |
|
protected void |
fireTreeNodesRemoved(java.lang.Object source,
java.lang.Object[] path,
int[] childIndices,
java.lang.Object[] children)
Notifies all listeners that have registered interest for notification on this event type. |
|
protected void |
fireTreeStructureChanged(java.lang.Object source,
java.lang.Object[] path,
int[] childIndices,
java.lang.Object[] children)
Notifies all listeners that have registered interest for notification on this event type. |
|
protected void |
fireTreeStructureChanged(java.lang.Object source,
javax.swing.tree.TreePath path)
|
|
|
getListeners(java.lang.Class<T> listenerType)
Returns an array of all the objects currently registered as FooListeners
upon this model. |
|
javax.swing.event.TreeModelListener[] |
getTreeModelListeners()
Returns an array of all the tree model listeners registered on this model. |
|
void |
removeTreeModelListener(javax.swing.event.TreeModelListener l)
Removes a listener previously added with addTreeModelListener(). |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jhotdraw.gui.fontchooser.FontChooserModel |
|---|
isEditable |
| Methods inherited from interface javax.swing.tree.TreeModel |
|---|
getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, valueForPathChanged |
| Field Detail |
|---|
protected javax.swing.event.EventListenerList listenerList
| Constructor Detail |
|---|
public AbstractFontChooserModel()
| Method Detail |
|---|
public void addTreeModelListener(javax.swing.event.TreeModelListener l)
addTreeModelListener in interface javax.swing.tree.TreeModell - the listener to addremoveTreeModelListener(javax.swing.event.TreeModelListener)public void removeTreeModelListener(javax.swing.event.TreeModelListener l)
removeTreeModelListener in interface javax.swing.tree.TreeModell - the listener to removeaddTreeModelListener(javax.swing.event.TreeModelListener)public javax.swing.event.TreeModelListener[] getTreeModelListeners()
TreeModelListeners
or an empty
array if no tree model listeners are currently registeredaddTreeModelListener(javax.swing.event.TreeModelListener),
removeTreeModelListener(javax.swing.event.TreeModelListener)
protected void fireTreeNodesChanged(java.lang.Object source,
java.lang.Object[] path,
int[] childIndices,
java.lang.Object[] children)
source - the node being changedpath - the path to the root nodechildIndices - the indices of the changed elementschildren - the changed elementsEventListenerList
protected void fireTreeNodesInserted(java.lang.Object source,
java.lang.Object[] path,
int[] childIndices,
java.lang.Object[] children)
source - the node where new elements are being insertedpath - the path to the root nodechildIndices - the indices of the new elementschildren - the new elementsEventListenerList
protected void fireTreeNodesRemoved(java.lang.Object source,
java.lang.Object[] path,
int[] childIndices,
java.lang.Object[] children)
source - the node where elements are being removedpath - the path to the root nodechildIndices - the indices of the removed elementschildren - the removed elementsEventListenerList
protected void fireTreeStructureChanged(java.lang.Object source,
java.lang.Object[] path,
int[] childIndices,
java.lang.Object[] children)
source - the node where the tree model has changedpath - the path to the root nodechildIndices - the indices of the affected elementschildren - the affected elementsEventListenerList
protected void fireTreeStructureChanged(java.lang.Object source,
javax.swing.tree.TreePath path)
public <T extends java.util.EventListener> T[] getListeners(java.lang.Class<T> listenerType)
FooListeners
upon this model.
FooListeners are registered using the
addFooListener method.
You can specify the listenerType argument
with a class literal,
such as
FooListener.class.
For example, you can query a
DefaultTreeModel m
for its tree model listeners with the following code:
TreeModelListener[] tmls = (TreeModelListener[])(m.getListeners(TreeModelListener.class));If no such listeners exist, this method returns an empty array.
listenerType - the type of listeners requested; this parameter
should specify an interface that descends from
java.util.EventListener
FooListeners on this component,
or an empty array if no such
listeners have been added
java.lang.ClassCastException - if listenerType
doesn't specify a class or interface that implements
java.util.EventListenergetTreeModelListeners()
|
Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project. Some rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||