Package bibliothek.gui.dock.facile.mode

Examples of bibliothek.gui.dock.facile.mode.LocationSettingConverter


   
    @Override
    protected Setting createSetting() {
        CSetting setting = new CSetting();
        CLocationModeManager manager = control.getLocationManager();
        ModeSettings<Location, Location> modeSettings = manager.createSettings( new LocationSettingConverter( getController() ) );
        setting.setModes( modeSettings );
        return setting;
    }
View Full Code Here


    public Setting getSetting( boolean entry ) {
      CLocationModeManager manager = control.getLocationManager();
     
      CSetting setting = (CSetting)super.getSetting( entry );
       
        ModeSettings<Location, Location> modeSettings = manager.createSettings( new LocationSettingConverter( getController() ) );
        setting.setModes( modeSettings );
        manager.writeSettings( modeSettings );
       
        return setting;
    }
View Full Code Here

      XElement xmodes = root.getElement( "modes" );
      if( xmodes == null ){
        throw new XException( "missing element 'modes'" );
      }
     
      ModeSettingsConverter<Location, Location> converter = new LocationSettingConverter( control.getOwner().getController() );
      ModeSettings<Location, Location> modes = control.getOwner().getLocationManager().createModeSettings( converter );
      modes.readXML( xmodes );
     
      perspective.getLocationManager().readModes( modes, perspective, control );
     
View Full Code Here

            }
          }
        }
      }
     
      ModeSettingsConverter<Location, Location> converter = new LocationSettingConverter( control.getOwner().getController() );
      ModeSettings<Location, Location> modes = control.getOwner().getLocationManager().createModeSettings( converter );
      modes.read( in );
     
      perspective.getLocationManager().readModes( modes, perspective, control );
     
View Full Code Here

   * Writes the contents of this {@link LocationModeManagerPerspective} into a new {@link ModeSettings}.
   * @param control access to factories that may be used for writing the contents
   * @return the contents of this object
   */
  public ModeSettings<Location, Location> writeModes( CControlAccess control ){
    ModeSettings<Location, Location> modes = new CLocationModeSettings<Location>( new LocationSettingConverter( control.getOwner().getController() ) );
     
      LocationModeManagerPerspective manager = perspective.getLocationManager();
     
      Iterator<PerspectiveElement> elements = perspective.elements();
      while( elements.hasNext() ){
View Full Code Here

TOP

Related Classes of bibliothek.gui.dock.facile.mode.LocationSettingConverter

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.