/** * Creates an empty {@link Div} element. * * @return The new element. */ public static final Div div() { return new Div(); }
private Div examplesDiv(ObjectMap m) { if (m.isEmpty()) return null; Select select = null; if (m.size() > 1) { select = (Select)select().onchange("selectExample(this)")._class("example-select"); } Div div = div(select)._class("examples"); if (select != null) select.child(option("model","model")); div.child(div(m.remove("model"))._class("model active").attr("data-name", "model")); for (Map.Entry<String,Object> e : m.entrySet()) { if (select != null) select.child(option(e.getKey(), e.getKey())); div.child(div(e.getValue().toString().replaceAll("\\n", "\n"))._class("example").attr("data-name", e.getKey())); } return div; }
script("text/javascript", new String[]{RESOURCES.getString("SwaggerUI.js")}), header(s) )._class("swagger-ui"); outer.child(div()._class("tag-block tag-block-open").children(tagBlockContents(s, null))); Div tagBlock = div()._class("tag-block tag-block-open").children( tagBlockSummary(t), tagBlockContents(s, t) ); outer.child(tagBlock); Div modelBlock = div()._class("tag-block").children( modelsBlockSummary(), modelsBlockContents(s) ); outer.child(modelBlock);
/** * Creates a {@link Div} element with the specified child nodes. * * @param children The child nodes. * @return The new element. */ public static final Div div(Object...children) { return div().children(children); }
/** * The swap method. * * <p> * Converts this bean into a div tag with contents. * * @param session The bean session. * @return The swapped contents of this bean. */ public Div swap(BeanSession session) { return div( small(display), span()._class("tooltiptext").children(content) )._class("tooltip"); } }
script("text/javascript", new String[]{RESOURCES.getString("SwaggerUI.js")}), header(s) )._class("swagger-ui"); outer.child(div()._class("tag-block tag-block-open").children(tagBlockContents(s, null))); Div tagBlock = div()._class("tag-block tag-block-open").children( tagBlockSummary(t), tagBlockContents(s, t) ); outer.child(tagBlock); Div modelBlock = div()._class("tag-block").children( modelsBlockSummary(), modelsBlockContents(s) ); outer.child(modelBlock);
/** * Creates a {@link Div} element with the specified child nodes. * * @param children The child nodes. * @return The new element. */ public static final Div div(Object...children) { return div().children(children); }
/** * The swap method. * * <p> * Converts this bean into a div tag with contents. * * @param session The bean session. * @return The swapped contents of this bean. */ public Div swap(BeanSession session) { return div( small(display), span()._class("tooltiptext").children(content) )._class("tooltip"); } }
script("text/javascript", new String[]{RESOURCES.getString("SwaggerUI.js")}), header(s) )._class("swagger-ui"); outer.child(div()._class("tag-block tag-block-open").children(tagBlockContents(s, null))); Div tagBlock = div()._class("tag-block tag-block-open").children( tagBlockSummary(t), tagBlockContents(s, t) ); outer.child(tagBlock); Div modelBlock = div()._class("tag-block").children( modelsBlockSummary(), modelsBlockContents(s) ); outer.child(modelBlock);
private Div examplesDiv(ObjectMap m) { if (m.isEmpty()) return null; Select select = null; if (m.size() > 1) { select = (Select)select().onchange("selectExample(this)")._class("example-select"); } Div div = div(select)._class("examples"); if (select != null) select.child(option("model","model")); div.child(div(m.remove("model"))._class("model active").attr("data-name", "model")); for (Map.Entry<String,Object> e : m.entrySet()) { if (select != null) select.child(option(e.getKey(), e.getKey())); div.child(div(e.getValue().toString().replaceAll("\\n", "\n"))._class("example").attr("data-name", e.getKey())); } return div; }
/** * Creates a {@link Div} element with the specified child nodes. * * @param children The child nodes. * @return The new element. */ public static final Div div(Object...children) { return div().children(children); }
/** * The swap method. * * <p> * Converts this bean into a div tag with contents. * * @param session The bean session. * @return The swapped contents of this bean. */ public Div swap(BeanSession session) { return div( small(display), span()._class("tooltiptext").children(content) )._class("tooltip"); } }