Skip to content

Releases: Osiris-Team/Desku

0.7.5

11 May 22:03
Compare
Choose a tag to compare

Added Table and RTable (HTML5 table Java bindings, styling is in TODO):
image

        // Simple table
        ly.add(new Table().headers("Header 1", "Header 2")
                .row("Data 1", "Data 2")
                .row("Data 3", "Data 4"));

image

        // 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

11 May 21:59
Compare
Choose a tag to compare
cleanup

0.7.2

29 Apr 15:09
Compare
Choose a tag to compare

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

29 Apr 11:38
Compare
Choose a tag to compare

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

29 Apr 11:32
Compare
Choose a tag to compare

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

11 Feb 17:16
Compare
Choose a tag to compare
integrated NativeWindow into UI

and cleanup
and enhanced JS listeners

0.5.9

10 Feb 18:33
Compare
Choose a tag to compare
added theme

0.5.8

09 Feb 16:31
Compare
Choose a tag to compare
  • added Image class and organized example projects
  • enhance load event handling and using gradle now instead of maven

0.5.7

09 Feb 16:13
ea6b31b
Compare
Choose a tag to compare
  • added Image class and organized example projects
  • enhance load event handling and using gradle now instead of maven

0.5.6

06 Feb 20:07
Compare
Choose a tag to compare
fix infinite loop in NativeWindow

also added try/catch to loading window to support Android/iOS devices
where swing/awt fails