@Override public String toString(){ return getClass().getSimpleName() + "[placeholder=" + getPlaceholder() + ", backup=" + getBackup() + ", successor=" + getSuccessor() + "]"; }
@Override public boolean insert( SplitDockPlaceholderProperty property, Dockable dockable ){ Path placeholder = property.getPlaceholder(); if( hasPlaceholder( placeholder )){ return replace( placeholder, dockable ); } return false; }
/** * Ensures that the dropped {@link Dockable} does not come to rest at a location that would destroy the columns. */ @Override public boolean drop( Dockable dockable, SplitDockPlaceholderProperty property ){ SplitNode node = getRoot().getPlaceholderNode( property.getPlaceholder() ); if( node != null && !(node instanceof Leaf) && !(node instanceof Root)){ if( node instanceof Placeholder || ((Node)node).getOrientation() == side.getHeaderOrientation() ){ pushIntoHeader( node ); } } return super.drop( dockable, property ); }
@Override public boolean insert( SplitDockPlaceholderProperty property, Dockable dockable ){ Path placeholder = property.getPlaceholder(); if( hasPlaceholder( placeholder )){
@Override public boolean insert( SplitDockPlaceholderProperty property, Dockable dockable ){ Path placeholder = property.getPlaceholder(); if( hasPlaceholder( placeholder )){
if( location instanceof SplitDockPlaceholderProperty ){ SplitDockPlaceholderProperty property = (SplitDockPlaceholderProperty)location; SplitNode node = root().getPlaceholderNode( property.getPlaceholder() ); if( node != null ){ node.aside( request );
if( location instanceof SplitDockPlaceholderProperty ){ SplitDockPlaceholderProperty property = (SplitDockPlaceholderProperty)location; SplitNode node = root().getPlaceholderNode( property.getPlaceholder() ); if( node != null ){ node.aside( request );