Skip to content

Commit

Permalink
1.0.4
Browse files Browse the repository at this point in the history
- add popup and tooltip from bootstrap, also check for chrome unsafe ports before using it
- fix some js code being executed before the page loaded and thus before boostrap dependency loaded.
- added some component convenience methods
- enhanced GenerateStatics class
- style enhancements
- method enhancements
  • Loading branch information
Osiris-Team committed Jun 21, 2024
1 parent 46a7031 commit 7699d34
Show file tree
Hide file tree
Showing 28 changed files with 614 additions and 355 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ test {
}

group = 'com.osiris.desku'
version = '1.0.2'
version = '1.0.4'
description = 'Desku'
sourceCompatibility = 1.11
targetCompatibility = 1.11
Expand Down
40 changes: 40 additions & 0 deletions src/main/java/com/osiris/desku/Statics.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.osiris.desku.ui.input.*;
import com.osiris.desku.ui.input.fileuploader.FileUploader;
import com.osiris.desku.ui.layout.*;
import org.jetbrains.annotations.Nullable;

import java.awt.image.BufferedImage;
import java.awt.image.RenderedImage;
Expand Down Expand Up @@ -275,6 +276,30 @@ static public Slider slider(Text label, double defaultValue, double minValue, do
return new Slider(label, defaultValue, minValue, maxValue, stepValue);
}

/**
*/
static public TextArea textarea() {
return new TextArea();
}

/**
*/
static public TextArea textarea(String label) {
return new TextArea(label);
}

/**
*/
static public TextArea textarea(String label, String defaultValue) {
return new TextArea(label, defaultValue);
}

/**
*/
static public TextArea textarea(Text label, String defaultValue) {
return new TextArea(label, defaultValue);
}

/**
*/
static public TextField textfield() {
Expand Down Expand Up @@ -325,6 +350,21 @@ static public PageLayout pagelayout() {
return new PageLayout();
}

/**
*/
static public Popup popup() {
return new Popup();
}

/**
* @param title
* @param btn1 closes the popup on click through data-bs-dismiss="modal"
* @param btn2 closes the popup on click throguh data-bs-dismiss="modal"
*/
static public Popup popup(@Nullable Text title, @Nullable Button btn1, @Nullable Button btn2) {
return new Popup(title, btn1, btn2);
}

/**
* Smart, mobile optimized layout, that aligns items horizontally if there is space
* or goes to the next line.
Expand Down
Loading

0 comments on commit 7699d34

Please sign in to comment.