Example usage for org.apache.wicket.markup.html.link InlineFrame setOutputMarkupId

List of usage examples for org.apache.wicket.markup.html.link InlineFrame setOutputMarkupId

Introduction

In this page you can find the example usage for org.apache.wicket.markup.html.link InlineFrame setOutputMarkupId.

Prototype

public final Component setOutputMarkupId(final boolean output) 

Source Link

Document

Sets whether or not component will output id attribute into the markup.

Usage

From source file:org.cast.cwm.drawtool.SvgEditor.java

License:Open Source License

/**
 * Returns an {@link InlineFrame} that displays this SVG Editor.  This is the
 * preferred component to add to a page.
 * /* www. jav a 2 s. c o  m*/
 * @param id wicket:id
 * @return
 */
public InlineFrame getEditor(String id) {
    InlineFrame frame = new InlineFrame(id, this);
    frame.add(AttributeModifier.replace("style", "background:#FFFFFF;border:2px solid #AAAAAA"));
    frame.add(AttributeModifier.replace("width", String.valueOf(EDITOR_WIDTH)));
    frame.add(AttributeModifier.replace("height", String.valueOf(EDITOR_HEIGHT)));
    frame.add(AttributeModifier.replace("scrolling", "no"));
    frame.setOutputMarkupId(true);
    return frame;
}