You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
561 B
24 lines
561 B
package de.srsoftware.web4rail; |
|
|
|
import de.srsoftware.tools.Tag; |
|
|
|
public class Window extends Tag{ |
|
|
|
private static final long serialVersionUID = 9035075889261889575L; |
|
|
|
public Window(String id, String title) { |
|
super("div"); |
|
id(id).clazz("window"); |
|
new Tag("h2") |
|
.clazz("title") |
|
.content(title).addTo(this); |
|
new Tag("div") |
|
.clazz("closebtn") |
|
.attr("onclick", "return closeWindows();") |
|
.content("×").addTo(this); |
|
new Tag("div") |
|
.clazz("swapbtn") |
|
.attr("onclick", "return swapTiling();") |
|
.content("◧").addTo(this); |
|
} |
|
}
|
|
|