out.append( orientation ); out.append( " , id=" ); out.append( getId() ); out.append( ", placeholders={" ); Path[] placeholders = getPlaceholders();
@Override public <N> N submit( SplitTreeFactory<N> factory ) { if( orientation == SplitDockStation.Orientation.HORIZONTAL ) return factory.horizontal( left.submit( factory ), right.submit( factory ), divider, getId(), getPlaceholders(), getPlaceholderMap(), isVisible() ); else return factory.vertical( left.submit( factory ), right.submit( factory ), divider, getId(), getPlaceholders(), getPlaceholderMap(), isVisible() ); }
private boolean needToExpand( SplitDockPathProperty.Node node ){ boolean expand = // if this node is horizontal, but the path is vertical ( orientation == SplitDockStation.Orientation.HORIZONTAL && (node.getLocation() == SplitDockPathProperty.Location.TOP || node.getLocation() == SplitDockPathProperty.Location.BOTTOM )) || // ... or if this node is vertical, but the path is horizontal ( orientation == SplitDockStation.Orientation.VERTICAL && (node.getLocation() == SplitDockPathProperty.Location.LEFT || node.getLocation() == SplitDockPathProperty.Location.RIGHT )); if( node.getId() != -1 && node.getId() != getId() ){ expand = true; } return expand; }