/** * Sets the minimal size which the popup-window can have. * @param windowMinSize the minimal size */ public void setWindowMinSize( int windowMinSize ) { if( windowMinSize < 0 ) throw new IllegalArgumentException( "Min size must not be smaller than 0" ); this.windowMinSize = windowMinSize; updateWindowBounds(); }
/** * Sets the size of the draggable area on the popup-window, that is used * to change the size of the window. * @param windowBorder the border, at least 0 */ public void setWindowBorder( int windowBorder ) { if( windowBorder < 0 ) throw new IllegalArgumentException( "Border must not be less than 0" ); this.windowBorder = windowBorder; updateWindowBounds(); }
public void ancestorMoved( HierarchyEvent e ) { if( autoDirection ) selfSetDirection(); else updateWindowBounds(); } public void ancestorResized( HierarchyEvent e ) {
public void ancestorResized( HierarchyEvent e ) { if( autoDirection ) selfSetDirection(); else updateWindowBounds(); } });
@Override public void componentResized( ComponentEvent e ) { if( autoDirection ) selfSetDirection(); else updateWindowBounds(); } });
/** * Updates the size of the window if <code>dockable</code> is currently * shown. The new size is provided by the {@link FlapLayoutManager layout manager}. * @param dockable the element whose size should be updated */ public void updateWindowSize( Dockable dockable ){ if( getFrontDockable() == dockable ){ updateWindowBounds(); } }
setDirection( direction ); else updateWindowBounds();
/** * Sets the direction in which the popup-window points. The direction * may be overridden, if the property {@link #isAutoDirection() autoDirection} * is set to <code>true</code>. * @param direction The direction of the popup-window */ public void setDirection( Direction direction ) { if( direction == null ) throw new IllegalArgumentException(); this.direction = direction; DockTitle.Orientation orientation = orientation( direction ); for( DockableHandle dockable : handles.dockables() ){ DockTitle title = dockable.getTitle(); if( title != null ){ title.setOrientation( orientation ); } } buttonPane.resetTitles(); updateWindowBounds(); buttonPane.revalidate(); }
window.setWindowVisible( true ); updateWindowBounds();