mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
4763438: Replace uses of @beaninfo with meta facility in core j2se
Reviewed-by: alexsch, erikj
This commit is contained in:
parent
0dfc929625
commit
66383b080d
62 changed files with 1468 additions and 2277 deletions
|
@ -22,11 +22,11 @@
|
|||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package javax.swing.tree;
|
||||
|
||||
import javax.swing.event.TreeModelEvent;
|
||||
import java.awt.Rectangle;
|
||||
import java.beans.BeanProperty;
|
||||
import java.util.Enumeration;
|
||||
import java.util.Hashtable;
|
||||
import java.util.NoSuchElementException;
|
||||
|
@ -103,10 +103,9 @@ public class VariableHeightLayoutCache extends AbstractLayoutCache {
|
|||
* Sets the <code>TreeModel</code> that will provide the data.
|
||||
*
|
||||
* @param newModel the <code>TreeModel</code> that is to provide the data
|
||||
* @beaninfo
|
||||
* bound: true
|
||||
* description: The TreeModel that will provide the data.
|
||||
*/
|
||||
@BeanProperty(description
|
||||
= "The TreeModel that will provide the data.")
|
||||
public void setModel(TreeModel newModel) {
|
||||
super.setModel(newModel);
|
||||
rebuild(false);
|
||||
|
@ -118,11 +117,9 @@ public class VariableHeightLayoutCache extends AbstractLayoutCache {
|
|||
*
|
||||
* @param rootVisible true if the root node of the tree is to be displayed
|
||||
* @see #rootVisible
|
||||
* @beaninfo
|
||||
* bound: true
|
||||
* description: Whether or not the root node
|
||||
* from the TreeModel is visible.
|
||||
*/
|
||||
@BeanProperty(description
|
||||
= "Whether or not the root node from the TreeModel is visible.")
|
||||
public void setRootVisible(boolean rootVisible) {
|
||||
if(isRootVisible() != rootVisible && root != null) {
|
||||
if(rootVisible) {
|
||||
|
@ -151,10 +148,9 @@ public class VariableHeightLayoutCache extends AbstractLayoutCache {
|
|||
* queried for each row's height.
|
||||
*
|
||||
* @param rowHeight the height of each cell, in pixels
|
||||
* @beaninfo
|
||||
* bound: true
|
||||
* description: The height of each cell.
|
||||
*/
|
||||
@BeanProperty(description
|
||||
= "The height of each cell.")
|
||||
public void setRowHeight(int rowHeight) {
|
||||
if(rowHeight != getRowHeight()) {
|
||||
super.setRowHeight(rowHeight);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue