本文整理汇总了Java中org.jdesktop.swingx.rollover.TreeRolloverController类的典型用法代码示例。如果您正苦于以下问题:Java TreeRolloverController类的具体用法?Java TreeRolloverController怎么用?Java TreeRolloverController使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
TreeRolloverController类属于org.jdesktop.swingx.rollover包,在下文中一共展示了TreeRolloverController类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getLinkController
import org.jdesktop.swingx.rollover.TreeRolloverController; //导入依赖的package包/类
/**
* Returns the RolloverController for this component. Lazyly creates the
* controller if necessary, that is the return value is guaranteed to be
* not null. <p>
*
* PENDING JW: rename to getRolloverController
*
* @return the RolloverController for this tree, guaranteed to be not null.
*
* @see #setRolloverEnabled(boolean)
* @see #createLinkController()
* @see org.jdesktop.swingx.rollover.RolloverController
*/
protected TreeRolloverController<JXTree> getLinkController() {
if (linkController == null) {
linkController = createLinkController();
}
return linkController;
}
示例2: createLinkController
import org.jdesktop.swingx.rollover.TreeRolloverController; //导入依赖的package包/类
/**
* Creates and returns a RolloverController appropriate for this tree.
*
* @return a RolloverController appropriate for this tree.
*
* @see #getLinkController()
* @see org.jdesktop.swingx.rollover.RolloverController
*/
protected TreeRolloverController<JXTree> createLinkController() {
return new TreeRolloverController<JXTree>();
}