|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.model.Factory
The Factory
interface define contants used
by the element factories. In general, these contants indicate when
elements are created, cached, and uncached. In addition this class
provides support for notifying observers of a factory when object
are created, cached, and uncached.
Nested Class Summary | |
protected static class |
Factory.RecognizerList
|
Field Summary | |
static int |
NODE_CACHED
Update message sent when a node is cached by a factory. |
static int |
NODE_CREATED
Update message sent when a node is created by a factory. |
static int |
NODE_UNCACHED
Update message sent when a node is uncached by a factory. |
Constructor Summary | |
Factory()
|
Method Summary | |
static void |
attach(Observer observer,
java.lang.Class clazz)
Associates the specified observer with the given
clazz . |
static void |
detach(Observer observer,
java.lang.Class clazz)
Removes the specified observer from the given
clazz list of observers. |
protected static void |
notify(Element element,
int msgID)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int NODE_CREATED
public static final int NODE_CACHED
public static final int NODE_UNCACHED
Constructor Detail |
public Factory()
Method Detail |
public static void attach(Observer observer, java.lang.Class clazz)
observer
with the given
clazz
. Every time an instance of clazz
is cached in the node factory, a NODE_CACHED notification is
broadcast to the observer
. The clazz
should be the class of node and not of the data. The reason for
this is that calling Node.getData()
may break lazy
loading for some nodes.
public static void detach(Observer observer, java.lang.Class clazz)
observer
from the given
clazz
list of observers.
protected static void notify(Element element, int msgID)
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.