public void aside( AsideRequest request ){ DockableProperty location = request.getLocation(); if( location instanceof ScreenDockProperty ){ ScreenDockProperty screenLocation = (ScreenDockProperty)location; DockablePlaceholderList<ScreenDockWindowHandle>.Item item = getItem( screenLocation ); if( item != null ){ delegate().combine( item, getCombiner(), request ); } ScreenDockProperty copy = screenLocation.copy(); copy.setSuccessor( null ); copy.setPlaceholder( request.getPlaceholder() ); request.answer( copy ); } }
public DockableProperty getLocationAt( Path placeholder ) { DockablePlaceholderList<ScreenDockWindowHandle>.Item item = dockables.getItem( placeholder ); if( item == null ){ return null; } ScreenDockWindowHandle handle = item.getDockable(); if( handle != null ){ Dockable dockable = handle.asDockable(); ScreenDockProperty property = getLocation( dockable, dockable ); property.setPlaceholder( placeholder ); return property; } else if( item.contains( "x", "y", "width", "height" )){ int x = item.getInt( "x" ); int y = item.getInt( "y" ); int width = item.getInt( "width" ); int height = item.getInt( "height" ); return new ScreenDockProperty( x, y, width, height, placeholder ); } else{ return null; } } };