本文整理汇总了Java中javax.swing.plaf.TableHeaderUI类的典型用法代码示例。如果您正苦于以下问题:Java TableHeaderUI类的具体用法?Java TableHeaderUI怎么用?Java TableHeaderUI使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TableHeaderUI类属于javax.swing.plaf包,在下文中一共展示了TableHeaderUI类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setUI
import javax.swing.plaf.TableHeaderUI; //导入依赖的package包/类
@Override
public void setUI(TableHeaderUI ui) {
/*
* It fixes the bug by reseting the renderer to the default (non-sorting)
* renderer before the UI is changed.
* Thanks to this change (the reset), method
* WindowsTableHeaderUI.uninstallUI(JComponent) then resets the
* renderer to the default Windows L&F renderer which is the
* renderer used when the Windows Classic theme is used.
*/
if (ui != this.ui) {
unsetSortingRenderer();
super.setUI(ui);
setSortingRenderer();
repaint();
}
}
示例2: getUI
import javax.swing.plaf.TableHeaderUI; //导入依赖的package包/类
/**
* Maps {@code JTableHeader.getUI()} through queue
*/
public TableHeaderUI getUI() {
return (runMapping(new MapAction<TableHeaderUI>("getUI") {
@Override
public TableHeaderUI map() {
return ((JTableHeader) getSource()).getUI();
}
}));
}
示例3: setUI
import javax.swing.plaf.TableHeaderUI; //导入依赖的package包/类
/**
* Maps {@code JTableHeader.setUI(TableHeaderUI)} through queue
*/
public void setUI(final TableHeaderUI tableHeaderUI) {
runMapping(new MapVoidAction("setUI") {
@Override
public void map() {
((JTableHeader) getSource()).setUI(tableHeaderUI);
}
});
}
示例4: testGetSetUpdateUI
import javax.swing.plaf.TableHeaderUI; //导入依赖的package包/类
public void testGetSetUpdateUI() throws Exception {
assertNotNull(header.getUI());
TableHeaderUI ui = new BasicTableHeaderUI();
header.setUI(ui);
assertSame(ui, header.getUI());
header.updateUI();
assertNotNull(header.getUI());
assertNotSame(ui, header.getUI());
}
示例5: setUI
import javax.swing.plaf.TableHeaderUI; //导入依赖的package包/类
@Override
public void setUI(TableHeaderUI ui) {
super.setUI(ui);
}
示例6: setUI
import javax.swing.plaf.TableHeaderUI; //导入依赖的package包/类
@Override
public void setUI(TableHeaderUI ui) {
super.setUI(new GroupableTableHeaderUI());
}
示例7: getUI
import javax.swing.plaf.TableHeaderUI; //导入依赖的package包/类
public TableHeaderUI getUI() {
AndroidClassUtil.callEmptyMethod();
return null;
}
示例8: setUI
import javax.swing.plaf.TableHeaderUI; //导入依赖的package包/类
public void setUI(TableHeaderUI ui) {
AndroidClassUtil.callEmptyMethod();
}
示例9: getUI
import javax.swing.plaf.TableHeaderUI; //导入依赖的package包/类
public TableHeaderUI getUI()
{
return (TableHeaderUI) ui;
}
示例10: setUI
import javax.swing.plaf.TableHeaderUI; //导入依赖的package包/类
public void setUI(TableHeaderUI u)
{
super.setUI(u);
}
示例11: updateUI
import javax.swing.plaf.TableHeaderUI; //导入依赖的package包/类
public void updateUI()
{
setUI((TableHeaderUI) UIManager.getUI(this));
}
示例12: setUI
import javax.swing.plaf.TableHeaderUI; //导入依赖的package包/类
@Override
public void setUI( TableHeaderUI ui ) {
}
示例13: getUI
import javax.swing.plaf.TableHeaderUI; //导入依赖的package包/类
@Override
public TableHeaderUI getUI() {
return super.getUI();
}
示例14: getUI
import javax.swing.plaf.TableHeaderUI; //导入依赖的package包/类
public TableHeaderUI getUI() {
return (TableHeaderUI)ui;
}
示例15: setUI
import javax.swing.plaf.TableHeaderUI; //导入依赖的package包/类
public void setUI(final TableHeaderUI ui) {
super.setUI(ui);
}