本文整理汇总了Java中javax.swing.plaf.SpinnerUI类的典型用法代码示例。如果您正苦于以下问题:Java SpinnerUI类的具体用法?Java SpinnerUI怎么用?Java SpinnerUI使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SpinnerUI类属于javax.swing.plaf包,在下文中一共展示了SpinnerUI类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getUI
import javax.swing.plaf.SpinnerUI; //导入依赖的package包/类
/**
* Maps {@code JSpinner.getUI()} through queue
*/
public SpinnerUI getUI() {
return (runMapping(new MapAction<SpinnerUI>("getUI") {
@Override
public SpinnerUI map() {
return ((JSpinner) getSource()).getUI();
}
}));
}
示例2: setUI
import javax.swing.plaf.SpinnerUI; //导入依赖的package包/类
/**
* Maps {@code JSpinner.setUI(SpinnerUI)} through queue
*/
public void setUI(final SpinnerUI spinnerUI) {
runMapping(new MapVoidAction("setUI") {
@Override
public void map() {
((JSpinner) getSource()).setUI(spinnerUI);
}
});
}
示例3: testSetGetUpdateUI
import javax.swing.plaf.SpinnerUI; //导入依赖的package包/类
public void testSetGetUpdateUI() {
assertEquals(spinner.getUIClassID(), "SpinnerUI");
SpinnerUI defaultUI = spinner.getUI();
assertNotNull(defaultUI);
SpinnerUI ui = new SpinnerUI() {
};
spinner.setUI(ui);
assertEquals(ui, spinner.getUI());
assertTrue(propertyChangeController.isChanged("UI"));
propertyChangeController.reset();
spinner.updateUI();
assertNotSame(ui, spinner.getUI());
assertTrue(propertyChangeController.isChanged("UI"));
}
示例4: updateUI
import javax.swing.plaf.SpinnerUI; //导入依赖的package包/类
/**
* This method resets the spinner's UI delegate to the default UI for the
* current look and feel.
*/
public void updateUI()
{
setUI((SpinnerUI) UIManager.getUI(this));
}
示例5: getUI
import javax.swing.plaf.SpinnerUI; //导入依赖的package包/类
public SpinnerUI getUI() {
return (SpinnerUI) ui;
}
示例6: setUI
import javax.swing.plaf.SpinnerUI; //导入依赖的package包/类
public void setUI(SpinnerUI ui) {
super.setUI(ui);
}
示例7: updateUI
import javax.swing.plaf.SpinnerUI; //导入依赖的package包/类
@Override
public void updateUI() {
setUI((SpinnerUI) UIManager.getUI(this));
}
示例8: getUI
import javax.swing.plaf.SpinnerUI; //导入依赖的package包/类
/**
* Returns the look and feel (L&F) object that renders this component.
*
* @return the <code>SpinnerUI</code> object that renders this component
*/
public SpinnerUI getUI() {
return (SpinnerUI)ui;
}
示例9: setUI
import javax.swing.plaf.SpinnerUI; //导入依赖的package包/类
/**
* Sets the look and feel (L&F) object that renders this component.
*
* @param ui the <code>SpinnerUI</code> L&F object
* @see UIDefaults#getUI
*/
public void setUI(SpinnerUI ui) {
super.setUI(ui);
}
示例10: updateUI
import javax.swing.plaf.SpinnerUI; //导入依赖的package包/类
/**
* Resets the UI property with the value from the current look and feel.
*
* @see UIManager#getUI
*/
public void updateUI() {
setUI((SpinnerUI)UIManager.getUI(this));
invalidate();
}