/** * Tells this model which orientation the {@link DockTitle} has, on which * the view of this model is displayed. * @param orientation the orientation, not <code>null</code> */ public void setOrientation( Orientation orientation ) { if( orientation == null ) throw new IllegalArgumentException( "Orientation must not be null" ); Orientation old = this.orientation; this.orientation = orientation; for( BasicButtonModelListener listener : listeners() ){ listener.orientationChanged( this, old, orientation ); } changed(); }