use of org.apache.tapestry5.dom.Element in project nalu by NaluKit.
the class MockShell03 method render.
private HTMLElement render() {
document.body.style.margin = CSSProperties.MarginUnionType.of(0);
this.shell = (HTMLDivElement) document.createElement("div");
this.shell.style.height = CSSProperties.HeightUnionType.of("auto");
this.shell.style.width = CSSProperties.WidthUnionType.of("100%");
this.shell.style.margin = CSSProperties.MarginUnionType.of(0);
Element header = createNorth();
this.shell.appendChild(header);
HTMLDivElement navigation = (HTMLDivElement) document.createElement("div");
navigation.id = "navigation";
navigation.style.position = "absolute";
navigation.style.overflow = "hidden";
navigation.style.top = "128px";
navigation.style.bottom = "42px";
navigation.style.left = String.valueOf(0);
navigation.style.width = CSSProperties.WidthUnionType.of("212px");
navigation.style.borderRight = "black 1px solid";
this.shell.appendChild(navigation);
HTMLDivElement content = (HTMLDivElement) document.createElement("div");
content.id = "content";
content.style.position = "absolute";
content.style.overflow = "hidden";
content.style.top = "128px";
content.style.bottom = "42px";
content.style.left = "212px";
content.style.right = String.valueOf(0);
this.shell.appendChild(content);
Element footer = createSouth();
this.shell.appendChild(footer);
return this.shell;
}
use of org.apache.tapestry5.dom.Element in project nalu by NaluKit.
the class MockShell01 method render.
private HTMLElement render() {
document.body.style.margin = CSSProperties.MarginUnionType.of(0);
this.shell = (HTMLDivElement) document.createElement("div");
this.shell.style.height = CSSProperties.HeightUnionType.of("auto");
this.shell.style.width = CSSProperties.WidthUnionType.of("100%");
this.shell.style.margin = CSSProperties.MarginUnionType.of(0);
Element header = createNorth();
this.shell.appendChild(header);
HTMLDivElement navigation = (HTMLDivElement) document.createElement("div");
navigation.id = "navigation";
navigation.style.position = "absolute";
navigation.style.overflow = "hidden";
navigation.style.top = "128px";
navigation.style.bottom = "42px";
navigation.style.left = String.valueOf(0);
navigation.style.width = CSSProperties.WidthUnionType.of("212px");
navigation.style.borderRight = "black 1px solid";
this.shell.appendChild(navigation);
HTMLDivElement content = (HTMLDivElement) document.createElement("div");
content.id = "content";
content.style.position = "absolute";
content.style.overflow = "hidden";
content.style.top = "128px";
content.style.bottom = "42px";
content.style.left = "212px";
content.style.right = String.valueOf(0);
this.shell.appendChild(content);
Element footer = createSouth();
this.shell.appendChild(footer);
return this.shell;
}
use of org.apache.tapestry5.dom.Element in project nalu by NaluKit.
the class MockShell01 method render.
private HTMLElement render() {
document.body.style.margin = CSSProperties.MarginUnionType.of(0);
this.shell = (HTMLDivElement) document.createElement("div");
this.shell.style.height = CSSProperties.HeightUnionType.of("auto");
this.shell.style.width = CSSProperties.WidthUnionType.of("100%");
this.shell.style.margin = CSSProperties.MarginUnionType.of(0);
Element header = createNorth();
this.shell.appendChild(header);
HTMLDivElement navigation = (HTMLDivElement) document.createElement("div");
navigation.id = "navigation";
navigation.style.position = "absolute";
navigation.style.overflow = "hidden";
navigation.style.top = "128px";
navigation.style.bottom = "42px";
navigation.style.left = String.valueOf(0);
navigation.style.width = CSSProperties.WidthUnionType.of("212px");
navigation.style.borderRight = "black 1px solid";
this.shell.appendChild(navigation);
HTMLDivElement content = (HTMLDivElement) document.createElement("div");
content.id = "content";
content.style.position = "absolute";
content.style.overflow = "hidden";
content.style.top = "128px";
content.style.bottom = "42px";
content.style.left = "212px";
content.style.right = String.valueOf(0);
this.shell.appendChild(content);
Element footer = createSouth();
this.shell.appendChild(footer);
return this.shell;
}
use of org.apache.tapestry5.dom.Element in project nalu by NaluKit.
the class MockShell02 method render.
private HTMLElement render() {
document.body.style.margin = CSSProperties.MarginUnionType.of(0);
this.shell = (HTMLDivElement) document.createElement("div");
this.shell.style.height = CSSProperties.HeightUnionType.of("auto");
this.shell.style.width = CSSProperties.WidthUnionType.of("100%");
this.shell.style.margin = CSSProperties.MarginUnionType.of(0);
Element header = createNorth();
this.shell.appendChild(header);
HTMLDivElement navigation = (HTMLDivElement) document.createElement("div");
navigation.id = "navigation";
navigation.style.position = "absolute";
navigation.style.overflow = "hidden";
navigation.style.top = "128px";
navigation.style.bottom = "42px";
navigation.style.left = String.valueOf(0);
navigation.style.width = CSSProperties.WidthUnionType.of("212px");
navigation.style.borderRight = "black 1px solid";
this.shell.appendChild(navigation);
HTMLDivElement content = (HTMLDivElement) document.createElement("div");
content.id = "content";
content.style.position = "absolute";
content.style.overflow = "hidden";
content.style.top = "128px";
content.style.bottom = "42px";
content.style.left = "212px";
content.style.right = String.valueOf(0);
this.shell.appendChild(content);
Element footer = createSouth();
this.shell.appendChild(footer);
return this.shell;
}
use of org.apache.tapestry5.dom.Element in project nalu by NaluKit.
the class MockShellLogin method render.
private HTMLElement render() {
document.body.style.margin = CSSProperties.MarginUnionType.of(0);
HTMLDivElement shell = (HTMLDivElement) document.createElement("div");
shell.style.height = CSSProperties.HeightUnionType.of("auto");
shell.style.width = CSSProperties.WidthUnionType.of("100%");
shell.style.margin = CSSProperties.MarginUnionType.of(0);
HTMLDivElement content = (HTMLDivElement) document.createElement("div");
content.id = "content";
content.style.position = "absolute";
content.style.overflow = "hidden";
content.style.top = "128px";
content.style.bottom = "42px";
content.style.left = "212px";
content.style.right = String.valueOf(0);
shell.appendChild(content);
Element footer = createSouth();
shell.appendChild(footer);
return shell;
}
Aggregations