Skip to content

Commit 17c756c

Browse files
committed
fix CustomTextField and CustomPasswordField
1 parent 6d0f4e6 commit 17c756c

File tree

4 files changed

+27
-25
lines changed

4 files changed

+27
-25
lines changed

package.php.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: jphp-controlsfx-ext
2-
version: 1.0.3
2+
version: 1.0.5
33

44
plugins:
55
- Hub
@@ -34,7 +34,7 @@ config:
3434
- /dn-sources/**
3535

3636
develnext-bundle:
37-
version: 1.0.4
37+
version: 1.0.5
3838
name: ControlsFX
3939
author: broelik
4040
icon: "develnext/bundle/controlsfx/icon32.png"

src-jvm/main/java/org/develnext/jphp/ext/controlsfx/classes/control/UXCustomPasswordField.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ public void setRight(@Reflection.Nullable Node node) {
4848
}
4949
@Reflection.Getter
5050
public Node getRight() {
51-
return getWrappedObject().getLeft();
51+
return getWrappedObject().getRight();
5252
}
5353
}

src-jvm/main/java/org/develnext/jphp/ext/controlsfx/classes/control/UXCustomTextField.java

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@
1010

1111
@Reflection.Namespace(ControlsFXExtension.NS)
1212
@Reflection.Name("UXCustomTextField")
13-
public class UXCustomTextField extends UXTextField<CustomTextField> {
14-
public UXCustomTextField(Environment env, CustomTextField wrappedObject) {
13+
public class UXCustomTextField extends UXTextField<CustomTextField>{
14+
public UXCustomTextField(Environment env, CustomTextField wrappedObject){
1515
super(env, wrappedObject);
1616
}
17-
public UXCustomTextField(Environment env, ClassEntity clazz) {
17+
18+
public UXCustomTextField(Environment env, ClassEntity clazz){
1819
super(env, clazz);
1920
}
2021

@@ -23,21 +24,24 @@ public void __construct(){
2324
__wrappedObject = new CustomTextField();
2425
}
2526

27+
2628
@Reflection.Setter
27-
public void setLeft(@Reflection.Nullable Node node) {
29+
public void setLeft(@Reflection.Nullable Node node){
2830
getWrappedObject().setLeft(node);
2931
}
32+
3033
@Reflection.Getter
31-
public Node getLeft() {
34+
public Node getLeft(){
3235
return getWrappedObject().getLeft();
3336
}
3437

3538
@Reflection.Setter
36-
public void setRight(@Reflection.Nullable Node node) {
39+
public void setRight(@Reflection.Nullable Node node){
3740
getWrappedObject().setRight(node);
3841
}
42+
3943
@Reflection.Getter
40-
public Node getRight() {
41-
return getWrappedObject().getLeft();
44+
public Node getRight(){
45+
return getWrappedObject().getRight();
4246
}
4347
}

src-jvm/main/java/org/develnext/jphp/ext/controlsfx/classes/control/UXGridView.java

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,27 +34,25 @@ interface WrappedInterface{
3434
public void __construct(){
3535
__wrappedObject = new GridView<>();
3636
}
37+
3738
@Reflection.Signature
39+
@SuppressWarnings("unchecked")
3840
public void setCellFactory(Environment env, Invoker invoker){
3941
if(invoker == null){
4042
getWrappedObject().setCellFactory(null);
4143
}
4244
else{
43-
getWrappedObject().setCellFactory((grid) -> {
44-
GridCell cell = new GridCell(){
45-
@Override
46-
protected void updateItem(Object item, boolean empty) {
47-
if(empty){
48-
setGraphic(null);
49-
setText(null);
50-
}
51-
else{
52-
invoker.callAny(new UXGridCell(env, this), item);
53-
}
45+
getWrappedObject().setCellFactory((grid) -> new GridCell(){
46+
@Override
47+
protected void updateItem(Object item, boolean empty) {
48+
if(empty){
49+
setGraphic(null);
50+
setText(null);
5451
}
55-
};
56-
57-
return cell;
52+
else{
53+
invoker.callAny(new UXGridCell(env, this), item);
54+
}
55+
}
5856
});
5957
}
6058
}

0 commit comments

Comments
 (0)