Package bibliothek.gui.dock.perspective

Examples of bibliothek.gui.dock.perspective.PerspectiveDockable


  }

  private void handle( Entry entry, double x, double y, double width, double height ){
    if( entry != null ){
      if( entry.asLeaf() != null ) {
        PerspectiveDockable dockable = entry.asLeaf().getDockable();
        if( dockable != null ) {
          grid.addDockable( x, y, width, height, dockable );
        }
      }
      else{
View Full Code Here


      if( child.asNode() != null ){
        remove( child.asNode().getChildA() );
        remove( child.asNode().getChildB() );
      }
      else{
        PerspectiveDockable dockable = child.asLeaf().getDockable();
        if( dockable != null ){
          remove( dockable );
        }
      }
    }
View Full Code Here

      if( child.asNode() != null ){
        add( child.asNode().getChildA() );
        add( child.asNode().getChildB() );
      }
      else{
        PerspectiveDockable dockable = child.asLeaf().getDockable();
        if( dockable != null ){
          add( dockable );
        }
      }
    }
View Full Code Here

   * Removes the <code>index</code>'th dockable of this area.
   * @param index the index of a child of this area
   * @return the element that was removed, <code>null</code> if the element is not a {@link CDockablePerspective}
   */
  public CDockablePerspective remove( int index ){
    PerspectiveDockable dockable = delegate.remove( index );
    if( dockable instanceof CommonElementPerspective ){
      return ((CommonElementPerspective)dockable).getElement().asDockable();
    }
    else{
      return null;
View Full Code Here

   * Removes the <code>index</code>'th child of this area.
   * @param index the index of the child to remove
   * @return the child that was removed, <code>null</code> if the child is not a {@link CDockablePerspective}
   */
  public CDockablePerspective remove( int index ){
    PerspectiveDockable dockable = delegate.remove( index );
    if( dockable instanceof CommonElementPerspective ){
      return ((CommonElementPerspective)dockable).getElement().asDockable();
    }
    else{
      return null;
View Full Code Here

  private CStationPerspective workingArea;
 
  private LocationHistory history = new LocationHistory();
 
  public CStationPerspective getParent(){
    PerspectiveDockable dockable = intern().asDockable();
   
    while( dockable != null ){
      PerspectiveStation parent = dockable.getParent();
      if( parent == null ){
        return null;
      }
      if( parent instanceof CommonElementPerspective ){
        CElementPerspective cparent = ((CommonElementPerspective)parent).getElement();
View Full Code Here

    }
   
    PerspectiveStation parent = getParent();
   
    if( count == 1 ){
      PerspectiveDockable result = getDockable( 0 );
      if( parent != null ){
        parent.replace( this, result );
        return result;
      }
      else{
View Full Code Here

TOP

Related Classes of bibliothek.gui.dock.perspective.PerspectiveDockable

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.