preparing property dialog
This commit is contained in:
@@ -6,9 +6,15 @@ public class Window extends Tag{
|
||||
|
||||
private static final long serialVersionUID = 9035075889261889575L;
|
||||
|
||||
public Window(String id) {
|
||||
public Window(String id, String title) {
|
||||
super("div");
|
||||
id(id);
|
||||
new Tag("div").clazz("closebtn").attr("onclick", "$('#"+id+"').remove(); return false").content("×").addTo(this);
|
||||
new Tag("h2")
|
||||
.clazz("title")
|
||||
.content(title).addTo(this);
|
||||
new Tag("div")
|
||||
.clazz("closebtn")
|
||||
.attr("onclick", "$('#"+id+"').remove(); return false")
|
||||
.content("×").addTo(this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,12 +58,12 @@ public abstract class Tile {
|
||||
return svg.toString();
|
||||
}
|
||||
|
||||
private String t(String txt, Object...fills) {
|
||||
private static String t(String txt, Object...fills) {
|
||||
return Translation.get(Application.class, txt, fills);
|
||||
}
|
||||
|
||||
public static Tag propMenu() {
|
||||
return new Window("tile-properties").content("Eigenschaften...");
|
||||
return new Window("tile-properties",t("Properties")).content(t("This tile has no properties"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user