Package net.xoetrope.registry

Examples of net.xoetrope.registry.ComponentAdapter


  public ComponentAdapter getComponentAdapter( String type )
  {
    Enumeration enumeration = componentFactories.keys();
    while ( enumeration.hasMoreElements() ) {
      XComponentConstructor factory = ( XComponentConstructor )componentFactories.get( enumeration.nextElement() );
      ComponentAdapter ca = factory.getComponentAdapter( type );
      if ( ca != null )
        return ca;
    }
    return null;
  }
View Full Code Here


          adapter.setVisible( comp, value.equals( "true" ) );
        else if ( key.compareTo( "enabled" ) == 0 )
          adapter.setEnabled( comp, value.equals( "true" ) );
        else {
          int rc = -1;
          ComponentAdapter ca = componentFactory.getComponentAdapter( compType );
          if ( ca != null )
            rc = ca.setProperty( comp, key, value, null );
         
          if (( rc < 0 ) && ( comp instanceof XAttributedComponent )) {
            if ( comp instanceof XAttributedComponentEx )
              rc = ((XAttributedComponentEx)comp).setAttribute( currentProject, key, evaluatedAttribute );
            else
View Full Code Here

TOP

Related Classes of net.xoetrope.registry.ComponentAdapter

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.