public DockableProperty getDockableProperty( PerspectiveDockable child, PerspectiveDockable target ){ ScreenPerspectiveWindow window = getWindow( child ); if( window == null ){ throw new IllegalArgumentException( "child is not a child of this station" ); } Path placeholder = null; if( target != null ){ placeholder = target.getPlaceholder(); } else{ placeholder = child.getPlaceholder(); } return new ScreenDockProperty( window.getX(), window.getY(), window.getWidth(), window.getHeight(), placeholder, window.isFullscreen() ); }
public DockableProperty getDockableProperty( PerspectiveDockable child, PerspectiveDockable target ){ ScreenPerspectiveWindow window = getWindow( child ); if( window == null ){ throw new IllegalArgumentException( "child is not a child of this station" ); } Path placeholder = null; if( target != null ){ placeholder = target.getPlaceholder(); } else{ placeholder = child.getPlaceholder(); } return new ScreenDockProperty( window.getX(), window.getY(), window.getWidth(), window.getHeight(), placeholder, window.isFullscreen() ); }
@Override public ConvertedPlaceholderListItem convert( int index, ScreenPerspectiveWindow child ) { if( children == null ){ return null; } ConvertedPlaceholderListItem item = new ConvertedPlaceholderListItem(); item.putInt( "id", children.get( child.asDockable() ) ); item.putInt( "x", child.getX() ); item.putInt( "y", child.getY() ); item.putInt( "width", child.getWidth() ); item.putInt( "height", child.getHeight() ); item.putBoolean( "fullscreen", child.isFullscreen() ); Path placeholder = child.asDockable().getPlaceholder(); if( placeholder != null ){ item.putString( "placeholder", placeholder.toString() ); item.setPlaceholder( placeholder ); } return item; } });
@Override public ConvertedPlaceholderListItem convert( int index, ScreenPerspectiveWindow child ) { if( children == null ){ return null; } ConvertedPlaceholderListItem item = new ConvertedPlaceholderListItem(); item.putInt( "id", children.get( child.asDockable() ) ); item.putInt( "x", child.getX() ); item.putInt( "y", child.getY() ); item.putInt( "width", child.getWidth() ); item.putInt( "height", child.getHeight() ); item.putBoolean( "fullscreen", child.isFullscreen() ); Path placeholder = child.asDockable().getPlaceholder(); if( placeholder != null ){ item.putString( "placeholder", placeholder.toString() ); item.setPlaceholder( placeholder ); } return item; } });
public boolean isChild( PerspectiveDockable dockable ){ if( dockable.getParent() == intern() ){ return !delegate.getWindow( dockable ).isFullscreen(); } return false; } public boolean isChildLocation( DockableProperty location ){
public boolean isChild( PerspectiveDockable dockable ){ if( dockable.getParent() == intern() ){ return delegate.getWindow( dockable ).isFullscreen(); } return false; }
public boolean isChild( PerspectiveDockable dockable ){ if( dockable.getParent() == intern() ){ return delegate.getWindow( dockable ).isFullscreen(); } return false; }
public boolean isChild( PerspectiveDockable dockable ){ if( dockable.getParent() == intern() ){ return !delegate.getWindow( dockable ).isFullscreen(); } return false; } public boolean isChildLocation( DockableProperty location ){