Search in sources :

Example 6 with Element

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;
}
Also used : Element(elemental2.dom.Element) HTMLDivElement(elemental2.dom.HTMLDivElement) HTMLElement(elemental2.dom.HTMLElement) HTMLDivElement(elemental2.dom.HTMLDivElement)

Example 7 with Element

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;
}
Also used : Element(elemental2.dom.Element) HTMLDivElement(elemental2.dom.HTMLDivElement) HTMLElement(elemental2.dom.HTMLElement) HTMLDivElement(elemental2.dom.HTMLDivElement)

Example 8 with Element

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;
}
Also used : Element(elemental2.dom.Element) HTMLDivElement(elemental2.dom.HTMLDivElement) HTMLElement(elemental2.dom.HTMLElement) HTMLDivElement(elemental2.dom.HTMLDivElement)

Example 9 with Element

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;
}
Also used : Element(elemental2.dom.Element) HTMLDivElement(elemental2.dom.HTMLDivElement) HTMLElement(elemental2.dom.HTMLElement) HTMLDivElement(elemental2.dom.HTMLDivElement)

Example 10 with Element

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;
}
Also used : Element(elemental2.dom.Element) HTMLDivElement(elemental2.dom.HTMLDivElement) HTMLElement(elemental2.dom.HTMLElement) HTMLDivElement(elemental2.dom.HTMLDivElement)

Aggregations

Element (elemental2.dom.Element)269 HTMLElement (elemental2.dom.HTMLElement)215 Test (org.junit.Test)175 HTMLDivElement (elemental2.dom.HTMLDivElement)129 HTMLButtonElement (elemental2.dom.HTMLButtonElement)63 HTMLInputElement (elemental2.dom.HTMLInputElement)60 Element (org.apache.tapestry5.dom.Element)39 DOMTokenList (elemental2.dom.DOMTokenList)38 Test (org.testng.annotations.Test)34 HTMLAnchorElement (elemental2.dom.HTMLAnchorElement)32 DataType (org.kie.workbench.common.dmn.client.editors.types.common.DataType)29 MarkupWriter (org.apache.tapestry5.MarkupWriter)16 ArrayList (java.util.ArrayList)14 IsElement (org.jboss.gwt.elemento.core.IsElement)14 List (java.util.List)13 Elements (org.jboss.gwt.elemento.core.Elements)13 HTMLSelectElement (elemental2.dom.HTMLSelectElement)12 EventType.click (org.jboss.gwt.elemento.core.EventType.click)12 ComponentModel (org.apache.tapestry5.model.ComponentModel)11 Ids (org.jboss.hal.resources.Ids)11