Package bibliothek.util

Examples of bibliothek.util.Path


     * Creates a new model.
     * @param control the control whose settings this model represents
     */
    public CLayoutPreferenceModel( CControl control ){
      super( control.getController() );
        add( tabPlacement = new TabPlacementPreference( control.intern().getDockProperties(), new Path( "dock.layout.tabplacement" )));
        add( tabContentFilter = new TabContentFilterPreference( control.intern().getDockProperties(), new Path( "dock.layout.tabcontentfilter" )));
        add( theme = new ThemePreference( control.intern().getDockProperties(), control.getThemes() ));
    }
View Full Code Here


    super.add( location );
    forward( location );
  }
 
  private void forward( CMaximizedModeAreaPerspective area ){
    Path mode = lastMaximizedMode.remove( area.getUniqueId() );
    Location location = lastMaximizedLocation.remove( area.getUniqueId() );
   
    area.setUnmaximize( mode, location );
  }
View Full Code Here

    if( setting instanceof MaximizedModeSetting ){
      MaximizedModeSetting modeSetting = (MaximizedModeSetting)setting;
     
      for( int i = 0, n = getAreaCount(); i<n; i++ ){
        CMaximizedModeAreaPerspective area = getArea( i );
        Path mode = area.getUnmaximizeMode();
        if( mode != null ){
          modeSetting.getLastMaximizedMode().put( area.getUniqueId(), mode );
          Location location = area.getUnmaximizeLocation();
          if( location != null ){
            modeSetting.getLastMaximizedLocation().put( area.getUniqueId(), location );
View Full Code Here

    public Location readProperty( DataInputStream in ) throws IOException {
        Version version = Version.read( in );
        version.checkCurrent();
        boolean version8 = Version.VERSION_1_0_8.compareTo( version ) <= 0;
        Path mode = null;
        if( version8 ){
          mode = new Path( in.readUTF() );
        }
        String root = in.readUTF();
        DockableProperty location = transformer.read( in );
        if( !version8 ){
          mode = guessMode( location );
View Full Code Here

        transformer.writeXML( b.getLocation(), element.addElement( "location" ) );
    }

    public Location readPropertyXML( XElement element ) {
      XElement xmode = element.getElement( "mode" );
      Path mode = null;
      if( xmode != null ){
        mode = new Path( xmode.getString() );
      }
      String root = element.getElement( "root" ).getString();
      DockableProperty location = transformer.readXML( element.getElement( "location" ) );
      if( mode == null ){
        mode = guessMode( location );
View Full Code Here

      MaximizedModeSetting setting = new MaximizedModeSetting();
     
      Map<String, Path> translatedLastMaximizedMode = new HashMap<String, Path>();
      for( Map.Entry<String, String> pair : lastMaximizedMode.entrySet() ){
        String mode = pair.getValue();
        Path result = resuceMode( mode );
       
        if( result != null ){
          translatedLastMaximizedMode.put( pair.getKey(), result );
        }
      }
View Full Code Here

        int count = in.readInt();
        for( int i = 0; i < count; i++ ){
          String key = in.readUTF();
          String value = in.readUTF();
          lastMaximizedMode.put( key, new Path( value ));
        }

        count = in.readInt();
        for( int i = 0; i < count; i++ ){
          String key = in.readUTF();
View Full Code Here

        if( !keys.isEmpty() ){
            XElement xmaximized = element.addElement( "maximized" );

            for( String key : keys ){
                Path mode = lastMaximizedMode.get( key );
                Location location = lastMaximizedLocation.get( key );

                if( mode != null || location != null ){
                    XElement xitem = xmaximized.addElement( "item" );
                    xitem.addString( "id", key );
                    if( mode != null ){
                        xitem.addElement( "mode" ).setString( mode.toString() );
                    }
                    if( location != null ){
                      converter.writePropertyXML( converter.convertToSetting( location ), xitem.addElement( "location" ) );
                    }
                }
View Full Code Here

        for( XElement xitem : xmaximized.getElements( "item" )){
          String key = xitem.getString( "id" );

          XElement xmode = xitem.getElement( "mode" );
          if( xmode != null ){
            lastMaximizedMode.put( key, new Path( xmode.getString() ));
          }

          XElement xlocation = xitem.getElement( "location" );
          if( xlocation != null ){
            lastMaximizedLocation.put( key, converter.convertToWorld( converter.readPropertyXML( xlocation ) ) );
View Full Code Here

TOP

Related Classes of bibliothek.util.Path

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.