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

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

Introduction

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

Prototype

public MarkupContainer add(final Component... children) 

Source Link

Document

Adds the child component(s) to this container.

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.
 * //from w ww .j a v a 2  s.c  om
 * @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;
}