本文整理汇总了Java中javax.swing.plaf.ProgressBarUI类的典型用法代码示例。如果您正苦于以下问题:Java ProgressBarUI类的具体用法?Java ProgressBarUI怎么用?Java ProgressBarUI使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ProgressBarUI类属于javax.swing.plaf包,在下文中一共展示了ProgressBarUI类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getUI
import javax.swing.plaf.ProgressBarUI; //导入依赖的package包/类
/**
* Maps {@code JProgressBar.getUI()} through queue
*/
public ProgressBarUI getUI() {
return (runMapping(new MapAction<ProgressBarUI>("getUI") {
@Override
public ProgressBarUI map() {
return ((JProgressBar) getSource()).getUI();
}
}));
}
示例2: setUI
import javax.swing.plaf.ProgressBarUI; //导入依赖的package包/类
/**
* Maps {@code JProgressBar.setUI(ProgressBarUI)} through queue
*/
public void setUI(final ProgressBarUI progressBarUI) {
runMapping(new MapVoidAction("setUI") {
@Override
public void map() {
((JProgressBar) getSource()).setUI(progressBarUI);
}
});
}
示例3: testSetGetUpdateUI
import javax.swing.plaf.ProgressBarUI; //导入依赖的package包/类
public void testSetGetUpdateUI() {
assertEquals("ProgressBarUI", progressBar.getUIClassID());
ProgressBarUI defaultUI = progressBar.getUI();
assertNotNull(defaultUI);
ProgressBarUI ui = new ProgressBarUI() {
};
progressBar.setUI(ui);
assertEquals(ui, progressBar.getUI());
progressBar.updateUI();
assertNotSame(ui, progressBar.getUI());
}
示例4: SmoothProgressBar
import javax.swing.plaf.ProgressBarUI; //导入依赖的package包/类
public SmoothProgressBar(int min, int max, ProgressBarUI ui) {
super(min, max, ui);
}
示例5: CustomUIProgressBar
import javax.swing.plaf.ProgressBarUI; //导入依赖的package包/类
public CustomUIProgressBar(int min, int max, ProgressBarUI ui) {
super(min, max);
this.ui = ui;
setUI(ui);
}
示例6: setUI
import javax.swing.plaf.ProgressBarUI; //导入依赖的package包/类
@Override
public void setUI(javax.swing.plaf.ProgressBarUI ui) {
// Always prefer our own ui if we have one
super.setUI(this.ui != null ? this.ui : ui);
}
示例7: setUI
import javax.swing.plaf.ProgressBarUI; //导入依赖的package包/类
@Override
public void setUI(ProgressBarUI ui) {
ui = new DarculaProgressBarUI();
super.setUI(ui);
setPreferredSize(new Dimension(getPreferredSize().width, JBUI.scale(NATIVE_LAF_HEIGHT)));
}
示例8: getUI
import javax.swing.plaf.ProgressBarUI; //导入依赖的package包/类
public ProgressBarUI getUI() {
AndroidClassUtil.callEmptyMethod();
return (ProgressBarUI) null;
}
示例9: setUI
import javax.swing.plaf.ProgressBarUI; //导入依赖的package包/类
public void setUI(ProgressBarUI ui) {
AndroidClassUtil.callEmptyMethod();
}
示例10: updateUI
import javax.swing.plaf.ProgressBarUI; //导入依赖的package包/类
/**
* Sets this <code>JProgressBar</code>'s UI delegate to the default
* (obtained from the {@link UIManager}) for the current look and feel.
*/
public void updateUI()
{
setUI((ProgressBarUI) UIManager.getUI(this));
}
示例11: updateUI
import javax.swing.plaf.ProgressBarUI; //导入依赖的package包/类
/**
* Sets this <code>JProgressBar</code>'s UI delegate to the default
* (obtained from the {@link UIManager}) for the current look and feel.
*/
public void updateUI()
{
setUI((ProgressBarUI) UIManager.getUI(this));
}
示例12: getUI
import javax.swing.plaf.ProgressBarUI; //导入依赖的package包/类
public ProgressBarUI getUI() {
return (ProgressBarUI)ui;
}
示例13: setUI
import javax.swing.plaf.ProgressBarUI; //导入依赖的package包/类
public void setUI(final ProgressBarUI ui) {
super.setUI(ui);
}
示例14: updateUI
import javax.swing.plaf.ProgressBarUI; //导入依赖的package包/类
public void updateUI() {
setUI((ProgressBarUI)UIManager.getUI(this));
}
示例15: getUI
import javax.swing.plaf.ProgressBarUI; //导入依赖的package包/类
/**
* Returns the look-and-feel object that renders this component.
*
* @return the <code>ProgressBarUI</code> object that renders this component
*/
public ProgressBarUI getUI() {
return (ProgressBarUI)ui;
}