public void testCreateLayoutCache() {
tree.setRowHeight(0);
assertNotNull(ui.createLayoutCache());
assertNotSame(ui.createLayoutCache(), ui.createLayoutCache());
assertTrue(ui.createLayoutCache() instanceof VariableHeightLayoutCache);
assertTrue(ui.treeState instanceof VariableHeightLayoutCache);
tree.setRowHeight(10);
assertTrue(ui.createLayoutCache() instanceof VariableHeightLayoutCache);
assertTrue(ui.treeState instanceof VariableHeightLayoutCache);
tree.setRowHeight(0);
tree.setLargeModel(true);
assertTrue(ui.createLayoutCache() instanceof VariableHeightLayoutCache);
assertTrue(ui.treeState instanceof VariableHeightLayoutCache);
tree.setRowHeight(10);
assertTrue(ui.createLayoutCache() instanceof FixedHeightLayoutCache);
assertTrue(ui.treeState instanceof FixedHeightLayoutCache);
}
BasicTreeUITest.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:freeVM
作者:
评论列表
文章目录