List of usage examples for org.apache.wicket.markup.html.link InlineFrame add
public MarkupContainer add(final Component... children)
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; }