/** * Sets the action-source of this {@link Dockable}. Other elements which * used {@link #getGlobalActionOffers()} will be informed about this change. * @param source The new source, may be <code>null</code> */ public void setActionOffers( DockActionSource source ){ this.source = source; globalSource.update(); }
public void hierarchyChanged( DockHierarchyEvent event ){ update(); }
public void hierarchyChanged( DockHierarchyEvent event ){ update(); }
/** * Creates a new source. * @param dockable the Dockable to observe */ public HierarchyDockActionSource( Dockable dockable ){ this.dockable = dockable; update(); }
/** * Creates a new source. * @param dockable the Dockable to observe */ public HierarchyDockActionSource( Dockable dockable ){ this.dockable = dockable; update(); }
public void controllerChanged( DockHierarchyEvent event ){ update(); } public void hierarchyChanged( DockHierarchyEvent event ){
public void controllerChanged( DockHierarchyEvent event ){ update(); } public void hierarchyChanged( DockHierarchyEvent event ){
/** * Ensures that this source observes its Dockable. */ public void bind(){ if( bound == 0 ){ dockable.addDockHierarchyListener( listener ); update(); } bound++; }
/** * Ensures that this source observes its Dockable. */ public void bind(){ if( bound == 0 ){ dockable.addDockHierarchyListener( listener ); update(); } bound++; }