/** * Creates a new listener * @param representative the element which will be observed */ public MouseRepresentativeListener( DockElementRepresentative representative ){ this.representative = representative; if( representative instanceof DockTitle ) title = (DockTitle)representative; dockable = representative.getElement().asDockable(); }
public void setFrontDockable( Dockable dockable ){ Dockable old = getFrontDockable(); this.frontDockable = dockable; if( isFullScreen() && dockable != null ) setFullScreen(dockable); if( old != dockable ){ access.dockableSelected( old ); } }
public void contentChanged(){ int count = getDockableCount(); for( int i = 0; i < count; i++ ){ updateContent( i ); } }
public boolean drop( Dockable dockable, DockableProperty property ){ if( property instanceof ScreenDockProperty ) return drop( dockable, (ScreenDockProperty)property ); else return false; }
/** * Initializes this panel with the default layout, namely exactly one child which is the * {@link #setDockablePane(JComponent) dockable pane}. */ public void setupLayout(){ setDockablePane( createBackgroundPanel() ); setBasePane( dockablePane ); }
@Override public void setOrientation( Orientation orientation ){ // it's very important to change position and orientation of inside // dockables first, else doLayout() is done on wrong inside information this.orientation = orientation; fireOrientingEvent(); mainPanel.revalidate(); }
public SizeFixedPanel(){ super( Transparency.SOLID ); setBackground( ToolbarDockStation.this.getBackgroundAlgorithm() ); }
@Override public void dockableRemoved( DockStation station, Dockable dockable ){ updateConfigurableDisplayerHints(); } });
public void ancestorMoved( HierarchyEvent e ) { if( autoDirection ) selfSetDirection(); else updateWindowBounds(); } public void ancestorResized( HierarchyEvent e ) {
/** * Constructs a new station and sets the theme. * @param theme the theme of the station, may be <code>null</code> */ public StackDockStation( DockTheme theme ){ super( theme ); init(); }
@Override protected void valueChanged( BoundaryRestriction oldValue, BoundaryRestriction newValue ) { checkWindowBoundaries(); } };
/** * Tells whether this station shows its children. This method just calls * {@link #isShowing()}. * @return <code>true</code> if the windows are visible, <code>false</code> * if not. * @see #isShowing() */ public boolean isStationShowing(){ return isShowing(); }
private Dockable getDockable(){ if( source == null ){ return null; } return source.getElement().asDockable(); }
public void setFrontDockable( Dockable dockable ){ Dockable old = getFrontDockable(); this.frontDockable = dockable; if( isFullScreen() && dockable != null ) setFullScreen(dockable); if( old != dockable ){ access.dockableSelected( old ); } }
/** * Creates a new listener * @param representative the element which will be observed */ public MouseRepresentativeListener( Listener parent, DockElementRepresentative representative ){ this.parent = parent; this.representative = representative; if( representative instanceof DockTitle ) title = (DockTitle)representative; dockable = representative.getElement().asDockable(); }
@Override protected Dockable getDockable() { return representative.getElement().asDockable(); }
@Override protected Dockable getDockable() { return representative.getElement().asDockable(); }