本文整理匯總了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;
}