Package org.structr.rest.serialization.html.attr

Examples of org.structr.rest.serialization.html.attr.Css


    try (final Tx tx = app.tx()) {

      for (SchemaNode node : app.nodeQuery(SchemaNode.class).getAsList()) {

        final String rawType = node.getName();
        top.inline("a").attr(new Href(restPath + "/" + rawType), new If(rawType.equals(currentType), new Css("active"))).text(rawType);
      }

    } catch (Throwable t) {
      t.printStackTrace();
    }

    for (String view : StructrApp.getConfiguration().getPropertyViews()) {

      if (!hiddenViews.contains(view)) {
        left.inline("a").attr(new Href(restPath + "/" + currentType + "/" + view), new If(view.equals(propertyView), new Css("active"))).text(view);
      }
    }

    // main div
    currentElement = body.block("div").id("right");
View Full Code Here


  }

  @Override
  public RestWriter beginArray() throws IOException {

    currentElement = currentElement.block(UL).attr(new AtDepth(CLOSE_LEVEL, new Css("collapsibleList")));

    hasName = false;

    return this;
  }
View Full Code Here

      }
    }

    currentElement.inline("span").text("{");

    currentElement = currentElement.block(UL).attr(new AtDepth(CLOSE_LEVEL, new Css("collapsibleList")));

    hasName = false;

    return this;
  }
View Full Code Here

    attr(new Id(id));
    return this;
  }
 
  public Tag css(String css) {
    attr(new Css(css));
    return this;
  }
View Full Code Here

TOP

Related Classes of org.structr.rest.serialization.html.attr.Css

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.