/** * Removes the action at <code>index</code> from this source. * @param index The index of the action to remove */ public void remove( int index ){ remove( index, 1 ); }
/** * Removes the action at location <code>index</code>. * @param index the location of the element to remove */ public void remove( int index ){ menu.remove( index ); }
/** * Removes the action at location <code>index</code>. * @param index the location of the element to remove */ public void remove( int index ){ menu.remove( index ); }
public void remove(){ if( removed ) throw new IllegalStateException( "Next not yet called or remove already called" ); removed = true; DefaultDockActionSource.this.remove( current-- ); } };
/** * Removes the given <code>action</code> from this source. * @param action The action to remove */ public void remove( DockAction action ){ int index = indexOf( action ); if( index >= 0 ) remove( index ); }
/** * Removes an action from this menu * @param action the action to remove */ public void remove( CAction action ){ menu.remove( action.intern() ); } }
/** * Removes an action from this menu * @param action the action to remove */ public void remove( CAction action ){ menu.remove( action.intern() ); } }
/** * Removes all actions stored in this source. */ public void removeAll(){ remove( 0, getDockActionCount() ); }
/** * Updates the visibility-state of the hide action */ public void updateHideAction(){ boolean shouldShow = hideable && showHideAction; if( shouldShow != hideActionVisible ){ hideActionVisible = shouldShow; if( shouldShow ){ source.add( hider ); } else{ source.remove( hider ); } } }
/** * Sets the action which must be triggered in order to activate this mode. This * action will be returned by {@link #getActions(Dockable, Mode, DockActionSource)} if the mode * is not <code>this</code>. Changes to this property are applied to all visible * {@link Dockable}. * @param selectModeAction the action or <code>null</code> */ public void setSelectModeAction( DockAction selectModeAction ){ if( this.selectModeAction != selectModeAction ){ if( this.selectModeAction != null ) selectModeSource.remove( this.selectModeAction ); this.selectModeAction = selectModeAction; if( this.selectModeAction != null ) selectModeSource.add( this.selectModeAction ); } }
/** * Sets the action which must be triggered in order to activate this mode. This * action will be returned by {@link #getActions(Dockable, Mode, DockActionSource)} if the mode * is not <code>this</code>. Changes to this property are applied to all visible * {@link Dockable}. * @param selectModeAction the action or <code>null</code> */ public void setSelectModeAction( DockAction selectModeAction ){ if( this.selectModeAction != selectModeAction ){ if( this.selectModeAction != null ) selectModeSource.remove( this.selectModeAction ); this.selectModeAction = selectModeAction; if( this.selectModeAction != null ) selectModeSource.add( this.selectModeAction ); } }
public void remove( DockAction action ){ actions.remove( action ); if( getSelection() == action ) setSelection( (Dockable)null, (StandardDockAction)null ); }
public void remove( DockAction action ){ actions.remove( action ); if( getSelection() == action ) setSelection( (Dockable)null, (StandardDockAction)null ); }
public void remove( int index ){ DockAction action = actions.getDockAction( index ); actions.remove( index ); if( getSelection() == action ){ setSelection( (StandardDockAction)null ); } }
public void remove( int index ){ DockAction action = actions.getDockAction( index ); actions.remove( index ); if( getSelection() == action ){ setSelection( (StandardDockAction)null ); } }
/** * Sets the visibility of the action. The visibility can be changed at any * time and has effect on all occurrences of the action. * @param visible the new state */ public void setVisible( boolean visible ){ if( visible != isVisible() ){ if( visible ) source.add( action ); else source.remove( 0, source.getDockActionCount() ); } }
/** * Sets the visibility of the action. The visibility can be changed at any * time and has effect on all occurrences of the action. * @param visible the new state */ public void setVisible( boolean visible ){ if( visible != isVisible() ){ if( visible ) source.add( action ); else source.remove( 0, source.getDockActionCount() ); } }