Releases: Osiris-Team/Desku
Releases · Osiris-Team/Desku
0.7.5
Added Table and RTable (HTML5 table Java bindings, styling is in TODO):
// Simple table
ly.add(new Table().headers("Header 1", "Header 2")
.row("Data 1", "Data 2")
.row("Data 3", "Data 4"));
// Table via reflection
class Person {
public String name;
public int age;
public Person(String name, int age) {
this.name = name;
this.age = age;
}
}
List<Person> list = new ArrayList<>();
list.add(new Person("John", 34));
list.add(new Person("Peter", 56));
list.add(new Person("Maria", 33));
try {
ly.add(new RTable(Person.class).rows(list)); // One liner ;)
} catch (IllegalAccessException e) {
throw new RuntimeException(e);
}
Component:
- Added insert and replace methods
- Renamed async to later
- Renamed sync to now
0.7.4
cleanup
0.7.2
The most hassle-free way possible to asynchronously update your UI!
layout.add(new Text("Asynchronously update a component: Loading...").padding(true).async(txt -> {
try{
for (int i = 1; i <= 100; i++) {
Thread.sleep(1000);
txt.set("Asynchronously update a component: Loading... "+ i +"%");
}
} catch (Exception e) {
AL.warn(e);
}
}));
- Fixed component style changes not shown after first load.
0.7.1
The most hassle-free way possible to asynchronously update your UI!
layout.add(new Text("Asynchronously update a component: Loading...").padding(true).async(txt -> {
try{
for (int i = 1; i <= 100; i++) {
Thread.sleep(1000);
txt.set("Asynchronously update a component: Loading... "+ i +"%");
}
} catch (Exception e) {
AL.warn(e);
}
}));
0.7.0
The most hassle-free way possible to asynchronously update your UI!
layout.add(new Text("Asynchronously update a component: Loading...").padding(true).async(txt -> {
try{
for (int i = 1; i <= 100; i++) {
Thread.sleep(1000);
txt.set("Asynchronously update a component: Loading... "+ i +"%");
}
} catch (Exception e) {
AL.warn(e);
}
}));
0.6.0
integrated NativeWindow into UI and cleanup and enhanced JS listeners
0.5.9
added theme
0.5.8
- added Image class and organized example projects
- enhance load event handling and using gradle now instead of maven
0.5.7
- added Image class and organized example projects
- enhance load event handling and using gradle now instead of maven
0.5.6
fix infinite loop in NativeWindow also added try/catch to loading window to support Android/iOS devices where swing/awt fails