当前位置: 首页>>代码示例>>Java>>正文


Java ProgressBarUI类代码示例

本文整理汇总了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();
        }
    }));
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:12,代码来源:JProgressBarOperator.java

示例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);
        }
    });
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:12,代码来源:JProgressBarOperator.java

示例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());
}
 
开发者ID:shannah,项目名称:cn1,代码行数:12,代码来源:JProgressBarTest.java

示例4: SmoothProgressBar

import javax.swing.plaf.ProgressBarUI; //导入依赖的package包/类
public SmoothProgressBar(int min, int max, ProgressBarUI ui) {
	super(min, max, ui);
}
 
开发者ID:DigitalMediaServer,项目名称:DigitalMediaServer,代码行数:4,代码来源:GuiUtil.java

示例5: CustomUIProgressBar

import javax.swing.plaf.ProgressBarUI; //导入依赖的package包/类
public CustomUIProgressBar(int min, int max, ProgressBarUI ui) {
	super(min, max);
	this.ui = ui;
	setUI(ui);
}
 
开发者ID:DigitalMediaServer,项目名称:DigitalMediaServer,代码行数:6,代码来源:GuiUtil.java

示例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);
}
 
开发者ID:DigitalMediaServer,项目名称:DigitalMediaServer,代码行数:6,代码来源:GuiUtil.java

示例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)));
}
 
开发者ID:JetBrains,项目名称:jdk8u_jdk,代码行数:7,代码来源:JBProgressBar.java

示例8: getUI

import javax.swing.plaf.ProgressBarUI; //导入依赖的package包/类
public ProgressBarUI getUI() {
	AndroidClassUtil.callEmptyMethod();
	return (ProgressBarUI) null;
}
 
开发者ID:javalovercn,项目名称:j2se_for_android,代码行数:5,代码来源:JProgressBar.java

示例9: setUI

import javax.swing.plaf.ProgressBarUI; //导入依赖的package包/类
public void setUI(ProgressBarUI ui) {
	AndroidClassUtil.callEmptyMethod();
}
 
开发者ID:javalovercn,项目名称:j2se_for_android,代码行数:4,代码来源:JProgressBar.java

示例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));
}
 
开发者ID:vilie,项目名称:javify,代码行数:9,代码来源:JProgressBar.java

示例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));
}
 
开发者ID:nmldiegues,项目名称:jvm-stm,代码行数:9,代码来源:JProgressBar.java

示例12: getUI

import javax.swing.plaf.ProgressBarUI; //导入依赖的package包/类
public ProgressBarUI getUI() {
    return (ProgressBarUI)ui;
}
 
开发者ID:shannah,项目名称:cn1,代码行数:4,代码来源:JProgressBar.java

示例13: setUI

import javax.swing.plaf.ProgressBarUI; //导入依赖的package包/类
public void setUI(final ProgressBarUI ui) {
    super.setUI(ui);
}
 
开发者ID:shannah,项目名称:cn1,代码行数:4,代码来源:JProgressBar.java

示例14: updateUI

import javax.swing.plaf.ProgressBarUI; //导入依赖的package包/类
public void updateUI() {
    setUI((ProgressBarUI)UIManager.getUI(this));
}
 
开发者ID:shannah,项目名称:cn1,代码行数:4,代码来源:JProgressBar.java

示例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;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:JProgressBar.java


注:本文中的javax.swing.plaf.ProgressBarUI类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。