/** * Creates a new instance of {@code DockLayoutPageView} and initializes it with the {@code * DockLayoutPanel} used as underlying layout panel. * * @param pnl the {@code DockLayoutPanel} associated with this object (must not be <b>null</b>) * @throws NullPointerException if the passed in panel is <b>null</b> */ public DockLayoutPageView(DockLayoutPanel pnl) { if (pnl == null) { throw new NullPointerException("DockLayoutPanel must not be null!"); } layoutPanel = pnl; templates = new ArrayList<TemplateData>(LayoutPart.values().length); }
/** * Adds the template component managed by this object to the specified layout panel. * * @param pnl the layout panel */ public void add(DockLayoutPanel pnl) { part.add(pnl, widget, size); }