Search in sources :

Example 1 with AtDepth

use of org.structr.api.util.html.attr.AtDepth in project structr by structr.

the class StructrConfigHtmlWriter method beginObject.

@Override
public RestWriter beginObject(final GraphObject graphObject) throws IOException {
    increaseSerializationDepth();
    currentObject = graphObject;
    if (!hasName) {
        currentElement = currentElement.block(LI);
    }
    currentElement.inline("span").text("{");
    currentElement = currentElement.block(UL).attr(new AtDepth(CLOSE_LEVEL, new Css("collapsibleList")));
    hasName = false;
    return this;
}
Also used : Css(org.structr.api.util.html.attr.Css) AtDepth(org.structr.api.util.html.attr.AtDepth)

Example 2 with AtDepth

use of org.structr.api.util.html.attr.AtDepth in project structr by structr.

the class StructrJsonHtmlWriter method beginObject.

@Override
public RestWriter beginObject(final GraphObject graphObject) throws IOException {
    increaseSerializationDepth();
    currentObject = graphObject;
    if (!hasName) {
        currentElement = currentElement.block(LI);
    }
    currentElement.inline("span").text("{");
    currentElement = currentElement.block(UL).attr(new AtDepth(CLOSE_LEVEL, new Css("collapsibleList")));
    hasName = false;
    return this;
}
Also used : Css(org.structr.api.util.html.attr.Css) AtDepth(org.structr.api.util.html.attr.AtDepth)

Example 3 with AtDepth

use of org.structr.api.util.html.attr.AtDepth in project structr by structr.

the class StructrConfigHtmlWriter method beginArray.

@Override
public RestWriter beginArray() throws IOException {
    // print [
    currentElement.inline("span").text("[");
    currentElement = currentElement.block(UL).attr(new AtDepth(CLOSE_LEVEL, new Css("collapsibleList")));
    hasName = false;
    return this;
}
Also used : Css(org.structr.api.util.html.attr.Css) AtDepth(org.structr.api.util.html.attr.AtDepth)

Example 4 with AtDepth

use of org.structr.api.util.html.attr.AtDepth in project structr by structr.

the class StructrJsonHtmlWriter method beginArray.

@Override
public RestWriter beginArray() throws IOException {
    // print [
    currentElement.inline("span").text("[");
    currentElement = currentElement.block(UL).attr(new AtDepth(CLOSE_LEVEL, new Css("collapsibleList")));
    hasName = false;
    return this;
}
Also used : Css(org.structr.api.util.html.attr.Css) AtDepth(org.structr.api.util.html.attr.AtDepth)

Aggregations

AtDepth (org.structr.api.util.html.attr.AtDepth)4 Css (org.structr.api.util.html.attr.Css)4