/** * Calls {@link EntryListener#removed(SplitDockPerspective.Entry, SplitDockPerspective.Entry)} on all listeners that are currently * known to this perspective * @param parent the parent from which <code>child</code> was removed * @param child the child which was removed */ protected void fireRemoved( Entry parent, Entry child ){ for( EntryListener listener : listeners() ){ listener.removed( parent, child ); } }
/** * Calls {@link EntryListener#added(SplitDockPerspective.Entry, SplitDockPerspective.Entry)} on all listeners that are currently * known to this perspective * @param parent the parent of the new element * @param child the child that was added */ protected void fireAdded( Entry parent, Entry child ){ for( EntryListener listener : listeners() ){ listener.added( parent, child ); } }
/** * Calls {@link EntryListener#removed(SplitDockPerspective.Entry, SplitDockPerspective.Entry)} on all listeners that are currently * known to this perspective * @param parent the parent from which <code>child</code> was removed * @param child the child which was removed */ protected void fireRemoved( Entry parent, Entry child ){ for( EntryListener listener : listeners() ){ listener.removed( parent, child ); } }
/** * Calls {@link EntryListener#added(SplitDockPerspective.Entry, SplitDockPerspective.Entry)} on all listeners that are currently * known to this perspective * @param parent the parent of the new element * @param child the child that was added */ protected void fireAdded( Entry parent, Entry child ){ for( EntryListener listener : listeners() ){ listener.added( parent, child ); } }
/** * Exchanges the element that is represented by this perspective. This operation does not change any * placeholders. * @param dockable the new element, can be <code>null</code> */ public void setDockable( PerspectiveDockable dockable ){ SplitDockPerspective perspective = getPerspective(); if( perspective == null ){ this.dockable = dockable; } else{ PerspectiveDockable oldDockable = this.dockable; this.dockable = dockable; for( EntryListener listener : perspective.listeners() ){ listener.modified( this, oldDockable, dockable ); } } }
/** * Exchanges the element that is represented by this perspective. This operation does not change any * placeholders. * @param dockable the new element, can be <code>null</code> */ public void setDockable( PerspectiveDockable dockable ){ SplitDockPerspective perspective = getPerspective(); if( perspective == null ){ this.dockable = dockable; } else{ PerspectiveDockable oldDockable = this.dockable; this.dockable = dockable; for( EntryListener listener : perspective.listeners() ){ listener.modified( this, oldDockable, dockable ); } } }