Tags:
create new tag
view all tags
This topic given documentation elements for fr.jmmc.mcs.util package %TOC% ---+++ ObservableDelegate This object can be used by one class that must extend one mother class and be observed. It can be Observable using one delegate class. See java.util.Observer/Observable classes and interface. Code snippet. <verbatim> public Class A implements Observer{ public void update(Observable o, Object arg){ if(o instanceof ObservableDelegate){ Object source = ((ObservableDelegate)o).getSource(); } //add code } } public Class B { ObservableDelegate delegate; public B(){ delegate = ObservableDelegate(this); } public void addObserver(Observer o){ delegate.addObserver(Observer o); } } </verbatim>
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2009-03-04
-
GuillaumeMella
Home
Site map
Jmmc web
Faq web
ProspectiveHRA2014 web
Software web
VltiSchool2010 web
VltiSchool2013 web
VltiSchool2015 web
VltiSchool2018 web
Main web
Sandbox web
DeuxiemePage web
TWiki web
Software Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
E
dit
A
ttach
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback