File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed
src/main/java/ch/petikoch/examples/mvvm_rxjava/rxjava_mvvm Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ apply plugin: 'java'
77apply plugin : ' eclipse'
88apply plugin : ' groovy'
99
10- version = ' 1.0 '
10+ version = ' 1.1 '
1111
1212def fileEncoding = ' UTF-8'
1313
@@ -20,12 +20,12 @@ repositories {
2020
2121def googleGuavaVersion = ' 18.0'
2222def rxJavaVersion = ' 1.0.14'
23- def rxSwingVersion = ' 0.24 .0'
23+ def rxSwingVersion = ' 0.25 .0'
2424def jcipVersion = ' 1.0'
25- def jsr305Version = ' 3.0.0 '
25+ def jsr305Version = ' 3.0.1 '
2626def commonsLang3Version = ' 3.4'
2727
28- def groovyVersion = ' 2.4.4 '
28+ def groovyVersion = ' 2.4.5 '
2929def spockVersion = ' 1.0-groovy-2.4'
3030def cglibVersion = ' 3.1'
3131def asmVersion = ' 5.0.4'
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33distributionPath =wrapper/dists
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
6- distributionUrl =https\://services.gradle.org/distributions/gradle-2.6 -all.zip
6+ distributionUrl =https\://services.gradle.org/distributions/gradle-2.8 -all.zip
Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ private BooleanBindOfAble(final Observable<Boolean> source) {
4545 }
4646
4747 public void toSwingViewEnabledPropertyOf (JComponent target ) {
48- source .observeOn (SwingScheduler .getInstance ())
48+ source .onBackpressureLatest ()
49+ .observeOn (SwingScheduler .getInstance ())
4950 .subscribe (target ::setEnabled );
5051 }
5152 }
@@ -59,12 +60,14 @@ private StringBindOfAble(final Observable<String> source) {
5960 }
6061
6162 public void toSwingViewText (JTextComponent target ) {
62- source .observeOn (SwingScheduler .getInstance ())
63+ source .onBackpressureLatest ()
64+ .observeOn (SwingScheduler .getInstance ())
6365 .subscribe (target ::setText );
6466 }
6567
6668 public void toSwingViewLabel (JLabel target ) {
67- source .observeOn (SwingScheduler .getInstance ())
69+ source .onBackpressureLatest ()
70+ .observeOn (SwingScheduler .getInstance ())
6871 .subscribe (target ::setText );
6972 }
7073 }
You can’t perform that action at this time.
0 commit comments