class PanelDefinitionImpl implements PanelDefinition {

    public void setParent(PanelDefinition parent) {
        if (this.parent != null && parent != null) {
            throw new IllegalStateException("Can't change parent: this panel still belongs to " + this.parent);
        }
        this.parent = parent;
    }

    @JsIgnore public  PanelDefinitionImpl();
    @JsIgnore public  PanelDefinitionImpl(final String type);

}