public boolean ignoreChildren( DockStation station ) { CStation<?> cstation = getStation( station ); if( cstation != null ) return cstation.isWorkingArea(); return false; } public boolean ignoreChildren( PerspectiveStation station ){
/** * Creates a new area where minimized {@link CDockable}s can be stored. This * method adds the new area directly as a root station to this control. * @param uniqueId a unique identifier * @return the new area */ public CMinimizeArea createMinimizeArea( String uniqueId ){ CMinimizeArea area = new CMinimizeArea( this, uniqueId ); addStation( area, true ); return area; }
/** * Gets the {@link DockStation} which was registered with the name {@link CControl#EXTERNALIZED_STATION_ID}. * @return the station which will be the parent of all the new {@link ExternalizingCGridArea}s */ protected DockStation getScreenDockStation(){ CStation<?> screen = control.getStation( CControl.EXTERNALIZED_STATION_ID ); return screen.getStation(); }
/** * Creates and adds a new {@link CWorkingArea} to this control. The area * is not made visible by this method. * @param uniqueId the unique id of the area * @return the new area */ public CWorkingArea createWorkingArea( String uniqueId ){ CWorkingArea area = new CWorkingArea( this, uniqueId ); addDockable( area ); addStation( area, true ); return area; }
@Override public void setupLayout(CControl control, CWorkingArea workingArea, Map<SingleCDockable, ViewDockWindow> docks) { removeDocks(control, docks); CGrid grid = new CGrid(control); grid.add(50, 50, 150, 150, workingArea); setupGrid(grid, docks); control.getContentArea().deploy(grid); }
/** * Called during construction of this {@link CControl}, this method creates a new * {@link CExternalizeArea} and registers it as root-station using the unique identifier * {@value #EXTERNALIZED_STATION_ID}.<br> * Subclasses may override this method and not create a {@link CExternalizeArea} or create * a customized {@link CExternalizeArea}. */ protected void initExternalizeArea(){ addStation( new CExternalizeArea( this, EXTERNALIZED_STATION_ID ), true ); }
public void setTitle(String title) { this.title = title; if (this.dockable != null) { dockable.setTitleText(title); } }
/** * Saves the current layout with the current name. Does nothing if there is no name for the current layout. * @return the name that was used to save the layout * @see #save(String) */ public String save(){ return save( false ); }
@Override public ExtendedMode findMode(){ if( parent != null ){ return parent.findMode(); } return ExtendedMode.EXTERNALIZED; }
/** * Gets the station in the south of this {@link CContentArea} * @return the station in the south */ public FlapDockStation getSouth(){ return south.getStation(); }
/** * Gets the global identifier for the panel in the north. * @return the identifier */ public String getNorthIdentifier(){ return getNorthIdentifier( uniqueId ); }
/** * Gets the global identifier for the panel in the east. * @return the identifier */ public String getEastIdentifier(){ return getEastIdentifier( uniqueId ); }
/** * Free docking resources and save the layout */ @Override public void dispose() { commonControl.destroy(); }
/** * Creates and adds a new {@link CWorkingArea} to this control. The area * is not made visible by this method. * @param uniqueId the unique id of the area * @return the new area */ public CWorkingArea createWorkingArea( String uniqueId ){ CWorkingArea area = new CWorkingArea( this, uniqueId ); addDockable( area ); addStation( area, true ); return area; }
/** * Gets the {@link DockStation} which was registered with the name {@link CControl#EXTERNALIZED_STATION_ID}. * @return the station which will be the parent of all the new {@link ExternalizingCGridArea}s */ protected DockStation getScreenDockStation(){ CStation<?> screen = control.getStation( CControl.EXTERNALIZED_STATION_ID ); return screen.getStation(); }
public boolean ignoreChildren( DockStation station ) { CStation<?> cstation = getStation( station ); if( cstation != null ) return cstation.isWorkingArea(); return false; } public boolean ignoreChildren( PerspectiveStation station ){
/** * Creates a new area where minimized {@link CDockable}s can be stored. This * method adds the new area directly as a root station to this control. * @param uniqueId a unique identifier * @return the new area */ public CMinimizeArea createMinimizeArea( String uniqueId ){ CMinimizeArea area = new CMinimizeArea( this, uniqueId ); addStation( area, true ); return area; }
/** * Called during construction of this {@link CControl}, this method creates a new * {@link CExternalizeArea} and registers it as root-station using the unique identifier * {@value #EXTERNALIZED_STATION_ID}.<br> * Subclasses may override this method and not create a {@link CExternalizeArea} or create * a customized {@link CExternalizeArea}. */ protected void initExternalizeArea(){ addStation( new CExternalizeArea( this, EXTERNALIZED_STATION_ID ), true ); }
@Override public ExtendedMode findMode() { if( parent != null ){ return parent.findMode(); } return ExtendedMode.NORMALIZED; }
@Override public ExtendedMode findMode() { if( parent != null ){ return parent.findMode(); } return ExtendedMode.MINIMIZED; }