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

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


    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

TOP

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

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.