/** * Gets the Component which should be used to layout the current * DockTitle. * @param title the current DockTitle, never <code>null</code> * @return the component representing <code>title</code> */ protected Component getComponent( DockTitle title ){ return title.getComponent(); }
/** * Gets the Component which should be used to layout the current * DockTitle. * @param title the current DockTitle, never <code>null</code> * @return the component representing <code>title</code> */ protected Component getComponent( DockTitle title ){ return title.getComponent(); }
public Component getComponent() { return title.getComponent(); }
public Component getComponent(){ return getTitle().getComponent(); } }
public Component getComponent(){ return getTitle().getComponent(); } }
@Override protected void answer( DockTitle previous, DockTitle title ){ if( previous != null ){ dockable.unbind( previous ); } content.removeAll(); if( title != null ){ title.setOrientation( orientation ); dockable.bind( title ); content.add( title.getComponent(), BorderLayout.CENTER ); } } };
public Component getAfter( Container container, Component component ) { DockTitle title = displayer.getTitle(); Dockable dockable = displayer.getDockable(); if( dockable != null && dockable.getComponent() == component ){ if( title != null ) return title.getComponent(); } else if( title != null && title.getComponent() == component ){ if( dockable != null ) return dockable.getComponent(); } return null; }
public Component getAfter( Container container, Component component ) { DockTitle title = displayer.getTitle(); Dockable dockable = displayer.getDockable(); if( dockable != null && dockable.getComponent() == component ){ if( title != null ) return title.getComponent(); } else if( title != null && title.getComponent() == component ){ if( dockable != null ) return dockable.getComponent(); } return null; }
public Component getBefore( Container container, Component component ) { DockTitle title = displayer.getTitle(); Dockable dockable = displayer.getDockable(); if( dockable != null && dockable.getComponent() == component ){ if( title != null ) return title.getComponent(); } else if( title != null && title.getComponent() == component ){ if( dockable != null ) return dockable.getComponent(); } return null; }
public Component getBefore( Container container, Component component ) { DockTitle title = displayer.getTitle(); Dockable dockable = displayer.getDockable(); if( dockable != null && dockable.getComponent() == component ){ if( title != null ) return title.getComponent(); } else if( title != null && title.getComponent() == component ){ if( dockable != null ) return dockable.getComponent(); } return null; }
public Component getFirst( Container container ) { DockTitle title = displayer.getTitle(); Dockable dockable = displayer.getDockable(); if( dockable != null ) return dockable.getComponent(); if( title != null ) return title.getComponent(); return null; }
public Component getLast( Container container ) { DockTitle title = displayer.getTitle(); Dockable dockable = displayer.getDockable(); if( title != null ) return title.getComponent(); if( dockable != null ) return dockable.getComponent(); return null; } }
public Component getLast( Container container ) { DockTitle title = displayer.getTitle(); Dockable dockable = displayer.getDockable(); if( title != null ) return title.getComponent(); if( dockable != null ) return dockable.getComponent(); return null; } }
public Component getFirst( Container container ) { DockTitle title = displayer.getTitle(); Dockable dockable = displayer.getDockable(); if( dockable != null ) return dockable.getComponent(); if( title != null ) return title.getComponent(); return null; }
protected TraverseResult shouldTraverse( Component component ) { // do not visit title or Dockable DockTitle title = getTitle(); if( title != null && title.getComponent() == component ){ return TraverseResult.EXCLUDE; } Dockable dockable = getDockable(); if( dockable != null && dockable.getComponent() == component ){ return TraverseResult.EXCLUDE; } return TraverseResult.INCLUDE_CHILDREN; } };
protected TraverseResult shouldTraverse( Component component ) { // do not visit title or Dockable DockTitle title = getTitle(); if( title != null && title.getComponent() == component ){ return TraverseResult.EXCLUDE; } Dockable dockable = getDockable(); if( dockable != null && dockable.getComponent() == component ){ return TraverseResult.EXCLUDE; } return TraverseResult.INCLUDE_CHILDREN; } };
public Point getOffsetMove() { if( handle == null ) return null; DockableDisplayer displayer = handle.getDisplayer(); if( displayer == null ) return null; DockTitle title = displayer.getTitle(); if( title == null ) return null; Component base = getWindowComponent(); if( base == null ) return null; Point zero = new Point( 0, 0 ); zero = SwingUtilities.convertPoint( title.getComponent(), zero, base ); return zero; }
@Override protected void answer( DockTitle previous, DockTitle title ){ if( previous != null ){ content.removeAll(); dockable.unbind( previous ); previous.removeMouseInputListener( mouseListener ); } if( title != null ){ dockable.bind( title ); title.addMouseInputListener( mouseListener ); updateOrientation(); content.add( title.getComponent(), BorderLayout.CENTER ); fire(); } } };
public void run(){ resetStarted = false; getContentPane().removeAll(); for( int i = 0, n = station.getDockableCount(); i<n; i++ ){ DockTitle title = station.getButton( i ); if( title != null ){ getContentPane().add( title.getComponent() ); } } span.reset(); revalidate(); } };
@Override protected Rectangle getBoundaries( StationChildHandle item ){ Rectangle result = getBoundaries( item.getDockable().getComponent() ); Rectangle title = null; if( item.getTitle() != null ) { title = getBoundaries( item.getTitle().getComponent() ); if( result == null ){ result = title; } else{ result = result.union( title ); } } return result; }