/** * 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 ); }
/** * 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 ); }
/** * Saves the current layout with the current name. Does nothing if there is no name for the current layout. * @param includeWorkingAreas whether the content of the {@link CStation}s that are marked as * {@link CStation#isWorkingArea() working area} should be stored as well. * @return the name that was used to save the layout * @see #save(String) */ public String save( boolean includeWorkingAreas ){ String current = frontend.getCurrentSetting(); if( current == null ){ return null; } else{ save( current, includeWorkingAreas ); return current; } }
/** * Saves the current layout with the current name. Does nothing if there is no name for the current layout. * @param includeWorkingAreas whether the content of the {@link CStation}s that are marked as * {@link CStation#isWorkingArea() working area} should be stored as well. * @return the name that was used to save the layout * @see #save(String) */ public String save( boolean includeWorkingAreas ){ String current = frontend.getCurrentSetting(); if( current == null ){ return null; } else{ save( current, includeWorkingAreas ); return current; } }
@Override protected void process(List<OutputStream> chunks) { try { control.save(name); control.write(new DataOutputStream(outputStream)); fireLayoutSaved(); } catch (IOException e) { fireLayoutError(e); } synchronized (this) { notify(); } }