Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 208 results for
observable
- Page 1
Re: Listen for global or local variable change
Programming
Software Development
12 Years Ago
by JamesCherrill
… the Java single-inheritance problem, ie if you extend
Observable
you can't extend anything else, which will frequently … rather than inheritance, ie create a private instance of
Observable
in your class, then write one-line covers for … yourself. I would not recommend using the code in
Observable
as an example or code template. The code goes …
Observable in TPL Dataflow
Programming
1 Year Ago
by nalb4242
… coming from the previous but why resources and programmers use
observable
and subscribe on target is that doing same as Transform…
Observer Observable
Programming
Software Development
11 Years Ago
by solomon_13000
…package com.observer3; import java.awt.FlowLayout; import java.util.
Observable
; import java.util.Observer; import javax.swing.JLabel; import… } package com.observer3; import java.util.
Observable
; public class C extends
Observable
{ private int count=0; public C(int…
Re: Observer Observable
Programming
Software Development
11 Years Ago
by solomon_13000
…package com.observer3; import java.awt.FlowLayout; import java.util.
Observable
; import java.util.Observer; import javax.swing.JFrame; import… } package com.observer3; import java.util.
Observable
; public class C extends
Observable
{ private int count=0; public C(int…
Re: Observer Observable
Programming
Software Development
11 Years Ago
by solomon_13000
… com.observer3; import java.awt.FlowLayout; import java.util.
Observable
; import java.util.Observer; import javax.swing.JFrame; import…} } package com.observer3; import java.util.
Observable
; public class C extends
Observable
{ private int count=0; public void setCount…
java and using observable class
Programming
Software Development
20 Years Ago
by Phaelax
…f.pack(); f.show(); } /*************************************** */ public void update(
Observable
o, Object arg) { } /*************************************** */ private JMenu …FlowLayout(FlowLayout.LEFT)); class ButtonListener extends
Observable
implements ActionListener { public void actionPerformed(ActionEvent…
Re: java and using observable class
Programming
Software Development
16 Years Ago
by trajesh
…f.pack(); f.show(); } /*************************************** */ public void update(
Observable
o, Object arg) { } /*************************************** */ private JMenu …FlowLayout(FlowLayout.LEFT)); class ButtonListener extends
Observable
implements ActionListener { public void actionPerformed(ActionEvent…
Strange problem with Observer/Observable "update" method call.
Programming
Software Development
14 Years Ago
by David22
…, no big problem here. However, in my update(
Observable
obs, Object arg) method, I am trying to …;update" method because it is a special observer/
observable
method? Here is what I mean: [CODE] public… void update(
Observable
obs, Object args){ Location loc = (Location)obs; …
Re: java and using observable class
Programming
Software Development
16 Years Ago
by orko
… Because you specified you want to add observer and
observable
to your classes, but you did not even implemented…bergin/mvc/mvcgui.html[/url] HINTS: to make observer/
observable
works, you must have to notify observer about the… change is made in
observable
object by calling notifyObserver(); Besides, you must have …
Re: Observer Observable
Programming
Software Development
11 Years Ago
by bguild
… hoping for. In order to make use of being an `
Observable
`, you will also need some way for `c` to change…
Re: Strange problem with Observer/Observable "update" method call.
Programming
Software Development
13 Years Ago
by ~s.o.s~
… be persisting the data in an Observer since theoretically an
Observable
can have multiple observers. The right place to persist updates… the source of the data change i.e. in your
Observable
. HTH
Re: java and using observable class
Programming
Software Development
16 Years Ago
by trajesh
Also I wanted to learn about how to use observer and
Observable
Thank You
Re: java and using observable class
Programming
Software Development
16 Years Ago
by orko
…? In that case, you should start from little beginning. Observer/
Observable
is little advanced level. If you already know how to…
Filtering observable array in Ionic
Programming
Mobile Development
3 Years Ago
by Mel441
… I am well and truly stuck: how to manipulate an
observable
array in ionic/ Angular/Typescript? The HTTP call gets the… my blindness involves how to display selected subsets from the
observable
array. Days of ineffective googling and looking at O'Reilly…
Re: A couple of questions on Observer/Observable/
Programming
Software Development
14 Years Ago
by David22
… your replies. I've been playing around with the Observer/
Observable
stuff but I haven't had any luck that. Can… my GUI as the Observer and the Location objects as
Observable
. Whenever a user retrieves their watchlist, they subscribe to all…
Re: A couple of questions on Observer/Observable/
Programming
Software Development
14 Years Ago
by JamesCherrill
The
Observable
object has a Collection (eg ArrayList) of Observers, so the addObserver method just adds the Observer (passed as the parameter) to the Collection. so: Observer: observableObject.addObserver(this);
Observable
: public void addObserver(Observer o) { observers.add(o); }
A couple of questions on Observer/Observable/
Programming
Software Development
14 Years Ago
by David22
… of my system, and it requires use of the observer/
observable
pattern, something I haven't a clue about! Basically, I…
RxJava 3 - How to create and observe Observables
Programming
Software Development
2 Years Ago
by dimitrilc
… ## Creating an
Observable
## The
Observable
interface (`io.reactivex.rxjava3.core.
Observable
`) has a lot … object received from the
Observable
when the
Observable
is completed. Now we… private static <T> void subWithConsumers(
Observable
<T> obs){ obs.blockingSubscribe( item…
Combine RxJava Observables - mergeWith() and concatWith()
Programming
Software Development
2 Years Ago
by dimitrilc
… ObservableSource, such as SingleSource, MaybeSource, and CompletableSource, public final @NonNull
Observable
<T> mergeWith(@NonNull SingleSource<? extends T>… understand. The method signature for `concatWith()` is: public final @NonNull
Observable
<T> concatWith(@NonNull ObservableSource<? extends T>…
Creating Interactive Web Interfaces with the help of Knockout.js
Programming
Web Development
10 Years Ago
by jeffcogswell
… = { main: { presidents: ko.observableArray([]) }, helpers: { newitem: { firstName: ko.
observable
(), lastName: ko.
observable
(), number: ko.
observable
() } } }; var datum1 = { firstName: 'George', lastName: 'Washington', number: 1…
Re: Creating Interactive Web Interfaces with the help of Knockout.js
Programming
Web Development
10 Years Ago
by jeffcogswell
… the form fields. I just push the data into an
observable
with one line of code, and the fields get filled…
Understanding observers, a simple program
Programming
Software Development
5 Years Ago
by Violet_82
… } } //the Observer(s) import java.util.
Observable
; import java.util.Observer; public class BankAccountObserver implements … this.bankAccount = bankAccount; } @Override public void update(
Observable
o, Object arg) { if (o == bankAccount) {…
Interface ... extends ... implements ... (Need help)
Programming
Software Development
16 Years Ago
by balgarath
… Observer { public void update(
Observable
o); } [/code]
Observable
.java [code] package toys; public interface
Observable
{ public void addObserver(String s…java.rmi.RemoteException; public interface ToyFactory extends Remote implements
Observable
{ String sayHello() throws RemoteException; public void addObserver(…
Need help with an error in observer pattern implementation
Programming
Software Development
12 Years Ago
by jfunchio
…namespace std; class Observer; //=========================================================================== class
Observable
{ public: virtual void attach(Observer…: CountingObserver(UpperCaseMonitor *); ~CountingObserver(); virtual void update(
Observable
*); void show_data(); //private: UpperCaseMonitor *_subject; int…
Need help with the implementation of an observer pattern
Programming
Software Development
12 Years Ago
by jfunchio
…CountingObserver() { _subject->detach(this); } void CountingObserver::update(
Observable
* ChangedState) { if(ChangedState = _subject) show_data(); } void…::~AccumulatingObserver() { _subject->detach(this); } void AccumulatingObserver::update(
Observable
* ChangedState) { if(ChangedState = _subject) show_data(); } void…
Problems accessing the maintained state changes in Oberver Pattern
Programming
Software Development
12 Years Ago
by jfunchio
…using namespace std; class Observer; //=========================================================================== class
Observable
{ public: virtual void attach(Observer*) = …() { _subject->detach(this); } void AccumulatingObserver::update(
Observable
* ChangedState) { if(ChangedState = _subject) show_data(); } void…
Re: Understanding observers, a simple program
Programming
Software Development
5 Years Ago
by JamesCherrill
… only annoying thing in the Java API version is that
Observable
is a class so if you want to use it… in practice you end up copy/pasting the code for
observable
into all your classes that need it. Maybe in Java… methods? (note to self: have a look at that). ps:
Observable
and Observer have been deprecated in Java 9, so their…
Memory leak in Observer pattern
Programming
Software Development
5 Years Ago
by Violet_82
…()){ setChanged();//set the flag to indicate that this
observable
has changed notifyObservers();//notify everyone //} } public String…String getName() { return name; } @Override public void update(
Observable
o, Object arg) { System.out.println("Username &…
Re: Understanding observers, a simple program
Programming
Software Development
5 Years Ago
by JamesCherrill
… hold the list of listeners for each
Observable
I created a static Map with the
Observable
instance as key as its listeners…
Re: Understanding observers, a simple program
Programming
Software Development
5 Years Ago
by Violet_82
… only annoying thing in the Java API version is that
Observable
is a class so if you want to use it…
1
2
3
4
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC