File tree 3 files changed +11
-8
lines changed
src/main/java/ch/petikoch/examples/mvvm_rxjava/rxjava_mvvm
3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ apply plugin: 'java'
7
7
apply plugin : ' eclipse'
8
8
apply plugin : ' groovy'
9
9
10
- version = ' 1.0 '
10
+ version = ' 1.1 '
11
11
12
12
def fileEncoding = ' UTF-8'
13
13
@@ -20,12 +20,12 @@ repositories {
20
20
21
21
def googleGuavaVersion = ' 18.0'
22
22
def rxJavaVersion = ' 1.0.14'
23
- def rxSwingVersion = ' 0.24 .0'
23
+ def rxSwingVersion = ' 0.25 .0'
24
24
def jcipVersion = ' 1.0'
25
- def jsr305Version = ' 3.0.0 '
25
+ def jsr305Version = ' 3.0.1 '
26
26
def commonsLang3Version = ' 3.4'
27
27
28
- def groovyVersion = ' 2.4.4 '
28
+ def groovyVersion = ' 2.4.5 '
29
29
def spockVersion = ' 1.0-groovy-2.4'
30
30
def cglibVersion = ' 3.1'
31
31
def asmVersion = ' 5.0.4'
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =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) {
45
45
}
46
46
47
47
public void toSwingViewEnabledPropertyOf (JComponent target ) {
48
- source .observeOn (SwingScheduler .getInstance ())
48
+ source .onBackpressureLatest ()
49
+ .observeOn (SwingScheduler .getInstance ())
49
50
.subscribe (target ::setEnabled );
50
51
}
51
52
}
@@ -59,12 +60,14 @@ private StringBindOfAble(final Observable<String> source) {
59
60
}
60
61
61
62
public void toSwingViewText (JTextComponent target ) {
62
- source .observeOn (SwingScheduler .getInstance ())
63
+ source .onBackpressureLatest ()
64
+ .observeOn (SwingScheduler .getInstance ())
63
65
.subscribe (target ::setText );
64
66
}
65
67
66
68
public void toSwingViewLabel (JLabel target ) {
67
- source .observeOn (SwingScheduler .getInstance ())
69
+ source .onBackpressureLatest ()
70
+ .observeOn (SwingScheduler .getInstance ())
68
71
.subscribe (target ::setText );
69
72
}
70
73
}
You can’t perform that action at this time.
0 commit comments