public void actionsRemoved( DockActionSource source, int firstIndex, int lastIndex ) { for( int i = lastIndex; i >= firstIndex; i-- ){ DockAction action = actions.remove( i ); action.unbind( dockable ); } } }
public void actionsRemoved( DockActionSource source, int firstIndex, int lastIndex ) { for( int i = lastIndex; i >= firstIndex; i-- ){ ActionItem entry = actions.remove( i ); if( entry.item != null ){ entry.item.unbind(); entry.action.unbind( dockable ); } } visibleActions = actions.size(); resetVisibleActions(); revalidate(); } }
public void actionsRemoved( DockActionSource source, int firstIndex, int lastIndex ) { for( int i = lastIndex; i >= firstIndex; i-- ){ ActionItem entry = actions.remove( i ); if( entry.item != null ){ entry.item.unbind(); entry.action.unbind( dockable ); } } visibleActions = actions.size(); resetVisibleActions(); revalidate(); } }
public void actionsRemoved( DockActionSource source, int firstIndex, int lastIndex ) { for( int i = lastIndex; i >= firstIndex; i-- ){ ActionItem item = actions.remove( i ); item.unbind(); if( item.handler != null ){ item.handler.unbind(); item.action.unbind( dockable ); } } reput(); } }
private void destroyView(){ if( view != null ){ JComponent item = view.getItem(); for( MouseInputListener listener : mouseListeners ){ item.removeMouseListener( listener ); item.removeMouseMotionListener( listener ); } view.unbind(); view = null; } action.unbind( dockable ); content.removeAll(); }
@Override public void unbind() { super.unbind(); source.removeDockActionSourceListener( sourceListener ); menu.removeAll(); for( ActionItem item : actions ){ item.unbind(); if( item.handler != null ){ item.handler.unbind(); item.action.unbind( dockable ); } } actions.clear(); }
if( item.item != null ){ item.item.unbind(); item.action.unbind( this.dockable );
if( item.item != null ){ item.item.unbind(); item.action.unbind( this.dockable );