1 19 20 package org.netbeans.spi.looks; 21 22 import java.util.Enumeration ; 23 import java.util.TooManyListenersException ; 24 25 import org.netbeans.modules.looks.SelectorImpl; 26 27 31 public final class LookSelector { 32 33 34 SelectorImpl impl; 35 36 38 LookSelector( SelectorImpl impl ) { 39 this.impl = impl; 40 try { 41 impl.setLookSelector( this ); 42 } 43 catch ( TooManyListenersException e ) { 44 throw new IllegalStateException ( "SelectorImpl " + impl + " used for more than one selector" ); 45 } 46 } 47 48 52 public Enumeration getLooks( Object representedObject ) { 53 return impl.getLooks( representedObject ); 54 } 55 56 58 61 SelectorImpl getImpl() { 62 return impl; 63 } 64 65 } 66 | Popular Tags |