|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.aspects.gui.Utils
A class with static methods to factorize code between display types (swing and web)
Constructor Summary | |
Utils()
|
Method Summary | |
static void |
registerCollection(Object object,
CollectionItem collection,
CollectionUpdate client)
Register for the collection events of an object. |
static void |
registerCollection(Object object,
CollectionItem collection,
CollectionUpdate client,
Object param)
Register for the collection events of an object. |
static void |
registerCollection(Object object,
String collectionName,
CollectionUpdate client)
Register for the collection events of an object. |
static void |
registerField(Object object,
FieldItem field,
FieldUpdate client)
Register field events for the field of an object. |
static void |
registerField(Object object,
FieldItem field,
FieldUpdate client,
Object param)
Register field events for the field of an object (with parameters). |
static void |
registerMethod(Object object,
MethodItem method,
MethodUpdate client)
Register for method events. |
static void |
registerMethod(Object object,
MethodItem method,
MethodUpdate client,
Object param)
Register for method events. |
static void |
registerObject(Object object,
ObjectUpdate client)
Register object events for a single object. |
static void |
registerObject(Object object,
ObjectUpdate client,
Object param)
Register object events for a single object with extra parameters. |
static URL |
stringToURL(String string)
Converts a string into an URL |
static void |
unregister(Object object,
CollectionUpdate client)
Unregister from an object's events. |
static void |
unregisterCollection(Object object,
CollectionItem collection,
CollectionUpdate client)
Unregister from a single object's collection. |
static void |
unregisterCollection(Object object,
String collectionName,
CollectionUpdate client)
Unregister from a single object's collection. |
static void |
unregisterField(Object object,
FieldItem field,
FieldUpdate client)
Unregister from a single object's field. |
static void |
unregisterMethod(Object object,
MethodItem method,
MethodUpdate client)
Unregister from a single object's method. |
static void |
unregisterObject(Object object,
ObjectUpdate client)
Unregister from a single object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Utils()
Method Detail |
public static URL stringToURL(String string)
public static void registerObject(Object object, ObjectUpdate client)
object
- the object that is listened toclient
- the object that is notified for the eventspublic static void registerObject(Object object, ObjectUpdate client, Object param)
object
- the object that is listened toclient
- the object that is notified for the eventsparam
- extra info that can be passed to the event
listenerspublic static void registerField(Object object, FieldItem field, FieldUpdate client)
object
- the object that owns the fieldfield
- the field that is listened toclient
- the object that is notified for the eventspublic static void registerField(Object object, FieldItem field, FieldUpdate client, Object param)
object
- the object that owns the fieldfield
- the field that is listened toclient
- the object that is notified for the eventsparam
- extra info that can be passed to the event
listenerspublic static void registerCollection(Object object, CollectionItem collection, CollectionUpdate client)
object
- the object that owns the collectioncollection
- the collection that is listened toclient
- the object that is notified for the eventspublic static void registerCollection(Object object, String collectionName, CollectionUpdate client)
object
- the object that owns the collectioncollectionName
- name the collection that is listened toclient
- the object that is notified for the eventspublic static void registerMethod(Object object, MethodItem method, MethodUpdate client)
object
- the object that owns the fieldmethod
- the method that is listened toclient
- the object that is notified for the eventspublic static void registerMethod(Object object, MethodItem method, MethodUpdate client, Object param)
object
- the object that owns the fieldmethod
- the method that is listened toclient
- the object that is notified for the eventsparam
- extra info that can be passed to the event listenerspublic static void registerCollection(Object object, CollectionItem collection, CollectionUpdate client, Object param)
object
- the object that owns the collectioncollection
- the collection that is listened toclient
- the object that is notified for the eventsparam
- extra info that can be passed to the event
listenerspublic static void unregisterObject(Object object, ObjectUpdate client)
public static void unregisterField(Object object, FieldItem field, FieldUpdate client)
object
- the object whose collection to unregister fromfield
- the field to unregister fromclient
- the client object unregisterpublic static void unregisterCollection(Object object, CollectionItem collection, CollectionUpdate client)
object
- the object whose collection to unregister fromcollection
- the collection to unregister fromclient
- the client object unregisterpublic static void unregisterCollection(Object object, String collectionName, CollectionUpdate client)
object
- the object whose collection to unregister fromcollectionName
- the name of the collection to unregister fromclient
- the client object to unregisterpublic static void unregisterMethod(Object object, MethodItem method, MethodUpdate client)
object
- the object whose method to unregister frommethod
- the method to unregister fromclient
- the client object unregisterpublic static void unregister(Object object, CollectionUpdate client)
object
- the object to unregister fromclient
- the client object to unregister
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |