jdk/src/java.desktop/share/classes/java/beans/BeanDescriptor.java
changeset 31166 6448eff013a8
parent 25859 3317bb8137f4
equal deleted inserted replaced
31165:42e11a4250b7 31166:6448eff013a8
     1 /*
     1 /*
     2  * Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    79             }
    79             }
    80         }
    80         }
    81         SwingContainer container = beanClass.getAnnotation(SwingContainer.class);
    81         SwingContainer container = beanClass.getAnnotation(SwingContainer.class);
    82         if (container != null) {
    82         if (container != null) {
    83             setValue("isContainer", container.value());
    83             setValue("isContainer", container.value());
    84             String delegate = container.delegate();
    84             setValue("containerDelegate", container.delegate());
    85             if (!delegate.isEmpty()) {
       
    86                 setValue("containerDelegate", delegate);
       
    87             }
       
    88         }
    85         }
    89     }
    86     }
    90 
    87 
    91     /**
    88     /**
    92      * Gets the bean's Class object.
    89      * Gets the bean's Class object.