Package bibliothek.gui.dock.action

Examples of bibliothek.gui.dock.action.DockAction


     * @return the action or <code>null</code> if the <code>index</code>'th
     * {@link DockAction} is not a {@link CommonDockAction} (and hence no {@link CAction}
     * can be found)
     */
    public CAction getAction( int index ){
      DockAction action = menu.getDockAction( index );
      if( action instanceof CommonDockAction ){
        return ((CommonDockAction)action).getAction();
      }
      return null;
    }
View Full Code Here


     * @return the action or <code>null</code> if the <code>index</code>'th
     * {@link DockAction} is not a {@link CommonDockAction} (and hence no {@link CAction}
     * can be found)
     */
    public CAction getAction( int index ){
      DockAction action = intern().getDockAction( index );
      if( action instanceof CommonDockAction ){
        return ((CommonDockAction)action).getAction();
      }
      return null;
    }
View Full Code Here

    /**
     * Gets the currently selected action.
     * @return the selected action or <code>null</code>
     */
    public CAction getSelection(){
      DockAction action = intern().getSelection();
      if( action instanceof CommonDockAction ){
        return ((CommonDockAction)action).getAction();
      }
      return null;
    }
View Full Code Here

      }
     
      public DockAction next(){
        if( action == null )
          throw new IllegalStateException( "no elements left" );
        DockAction result = action;
        action = null;
        return result;
      }
     
      public void remove(){
View Full Code Here

   
    /**
     * Called when the content of this source needs to be updated.
     */
    protected void update(){
        DockAction next = null;
        if( control != null ){
            if( dockable.isCloseable() ){
                CAction cnext = dockable.getAction( CDockable.ACTION_KEY_CLOSE );
                if( cnext != null )
                    next = cnext.intern();
View Full Code Here

            public DockAction next() {
                if( action == null )
                    throw new NoSuchElementException();
               
                DockAction result = action;
                action = null;
                return result;
            }

            public void remove() {
View Full Code Here

TOP

Related Classes of bibliothek.gui.dock.action.DockAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.