equal
deleted
inserted
replaced
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. |