本文整理汇总了Java中org.jdesktop.swingx.plaf.TaskPaneUI类的典型用法代码示例。如果您正苦于以下问题:Java TaskPaneUI类的具体用法?Java TaskPaneUI怎么用?Java TaskPaneUI使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
TaskPaneUI类属于org.jdesktop.swingx.plaf包,在下文中一共展示了TaskPaneUI类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: updateUI
import org.jdesktop.swingx.plaf.TaskPaneUI; //导入依赖的package包/类
/**
* Notification from the <code>UIManager</code> that the L&F has changed.
* Replaces the current UI object with the latest version from the <code>UIManager</code>.
*
* @see javax.swing.JComponent#updateUI
*/
@Override
public void updateUI() {
// collapsePane is null when updateUI() is called by the "super()"
// constructor
if (collapsePane == null) {
return;
}
setUI((TaskPaneUI)LookAndFeelAddons.getUI(this, TaskPaneUI.class));
}
示例2: setUI
import org.jdesktop.swingx.plaf.TaskPaneUI; //导入依赖的package包/类
/**
* Sets the L&F object that renders this component.
*
* @param ui the <code>TaskPaneUI</code> L&F object
* @see javax.swing.UIDefaults#getUI
*
* @beaninfo bound: true hidden: true description: The UI object that
* implements the taskpane group's LookAndFeel.
*/
public void setUI(TaskPaneUI ui) {
super.setUI(ui);
}
示例3: add
import org.jdesktop.swingx.plaf.TaskPaneUI; //导入依赖的package包/类
/**
* Adds an action to this <code>JXTaskPane</code>. Returns a
* component built from the action. The returned component has been
* added to the <code>JXTaskPane</code>.
*
* @param action
* @return a component built from the action
*/
public Component add(Action action) {
Component c = ((TaskPaneUI)ui).createAction(action);
add(c);
return c;
}