Package bibliothek.gui.dock.common.perspective

Examples of bibliothek.gui.dock.common.perspective.CStationPerspective


    return element instanceof CommonDockStation<?,?>;
  }
 
  public boolean interested( PerspectiveElement element ){
    if( element instanceof CommonElementPerspective ){
      CStationPerspective station = ((CommonElementPerspective)element).getElement().asStation();
      return station != null;
    }
    return false;
  }
View Full Code Here


  public Path getLayout( DockElement element, Map<Dockable, Integer> children ){
    return ((CommonDockStation<?,?>)element).getStation().getTypeId();
  }
 
  public Path getPerspectiveLayout( PerspectiveElement element, Map<PerspectiveDockable, Integer> children ){
    CStationPerspective station = ((CommonElementPerspective)element).getElement().asStation();
    return station.getTypeId();
  }
View Full Code Here

   
                return false;
            }
            public boolean ignoreChildren( PerspectiveStation station ){
              if( station instanceof CommonElementPerspective ){
                CStationPerspective perspective = ((CommonElementPerspective)station).getElement().asStation();
                if( perspective != null ){
                  return perspective.isWorkingArea();
                }
              }
              return false;
            }
            public boolean ignoreElement( DockElement element ) {
                if( element instanceof CommonDockable ){
                    CDockable cdockable = ((CommonDockable)element).getDockable();
                    if( cdockable.getWorkingArea() != null )
                        return true;
                }
                return false;
            }
            public boolean ignoreElement( PerspectiveElement element ){
              if( element instanceof CommonElementPerspective ){
                CDockablePerspective perspective = ((CommonElementPerspective)element).getElement().asDockable();
                if( perspective != null ){
                  return perspective.getWorkingArea() != null;
                }
              }
              return false;
            }
        });
View Full Code Here

      PerspectiveStation parent = dockable.getParent();
      if( parent == null ){
        return null;
      }
      if( parent instanceof CommonElementPerspective ){
        CStationPerspective station = ((CommonElementPerspective)parent).getElement().asStation();
        if( perspective.getStation( station.getUniqueId() ) != null ){
          return station;
        }
      }
      dockable = parent.asDockable();
    }
View Full Code Here

   * Gets the current location of <code>dockable</code>.
   * @param dockable the element whose location is searched
   * @return the location or <code>null</code> if not found
   */
  public Location getLocation( PerspectiveDockable dockable ){
    CStationPerspective root = getRoot( dockable );
    if( root == null ){
      return null;
    }
    ExtendedMode mode = getMode( dockable );
    if( mode == null ){
      return null;
    }
    DockableProperty location = DockUtilities.getPropertyChain( root.intern().asStation(), dockable );
    if( location == null ){
      return null;
    }
    return new Location( mode.getModeIdentifier(), root.getUniqueId(), location );
  }
View Full Code Here

    return element;
  }

  @SuppressWarnings("unchecked")
  public void layoutPerspective( CommonDockStationPerspective element, CommonDockStationLayout layout, Map<Integer, PerspectiveDockable> children ){
    CStationPerspective station = element.getElement().asStation();
    station.setRoot( layout.isRoot() );
   
    DockFactory<?, PerspectiveElement, Object> factory = (DockFactory<?, PerspectiveElement, Object>)control.intern().getDockFactory( layout.getFactoryId() );
    if( factory == null ){
      return;
    }
View Full Code Here

    if( data == null ){
      return null;
    }
   
    CElementPerspective celement = element.getElement();
    CStationPerspective station = celement.asStation();
   
    String id = station.getUniqueId();
       
    return new CommonDockStationLayout( id, station.isRoot(), factoryId, new DockLayout<Object>( factoryId, data ) );
  }
View Full Code Here

TOP

Related Classes of bibliothek.gui.dock.common.perspective.CStationPerspective

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.