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;
}
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;
}
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;
}
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;
}