Java 类javax.swing.plaf.TableHeaderUI 实例源码

项目:incubator-netbeans    文件:SortedTable.java   
@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();
    }
}
项目:openjdk-jdk10    文件:JTableHeaderOperator.java   
/**
 * Maps {@code JTableHeader.getUI()} through queue
 */
public TableHeaderUI getUI() {
    return (runMapping(new MapAction<TableHeaderUI>("getUI") {
        @Override
        public TableHeaderUI map() {
            return ((JTableHeader) getSource()).getUI();
        }
    }));
}
项目:openjdk-jdk10    文件:JTableHeaderOperator.java   
/**
 * 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);
        }
    });
}
项目:openjdk9    文件:JTableHeaderOperator.java   
/**
 * Maps {@code JTableHeader.getUI()} through queue
 */
public TableHeaderUI getUI() {
    return (runMapping(new MapAction<TableHeaderUI>("getUI") {
        @Override
        public TableHeaderUI map() {
            return ((JTableHeader) getSource()).getUI();
        }
    }));
}
项目:openjdk9    文件:JTableHeaderOperator.java   
/**
 * 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);
        }
    });
}
项目:cn1    文件:JTableHeaderTest.java   
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());
}
项目:freeVM    文件:JTableHeaderTest.java   
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());
}
项目:freeVM    文件:JTableHeaderTest.java   
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());
}
项目:incubator-netbeans    文件:TaskListTable.java   
@Override
public void setUI(TableHeaderUI ui) {
    super.setUI(ui);
}
项目:ramus    文件:GroupableTableHeader.java   
@Override
public void setUI(TableHeaderUI ui) {
    super.setUI(new GroupableTableHeaderUI());
}
项目:j2se_for_android    文件:JTableHeader.java   
public TableHeaderUI getUI() {
    AndroidClassUtil.callEmptyMethod();
    return null;
}
项目:j2se_for_android    文件:JTableHeader.java   
public void setUI(TableHeaderUI ui) {
    AndroidClassUtil.callEmptyMethod();
}
项目:javify    文件:JTableHeader.java   
public TableHeaderUI getUI()
{
  return (TableHeaderUI) ui;
}
项目:javify    文件:JTableHeader.java   
public void setUI(TableHeaderUI u)
{
  super.setUI(u);
}
项目:javify    文件:JTableHeader.java   
public void updateUI()
{
  setUI((TableHeaderUI) UIManager.getUI(this));
}
项目:jvm-stm    文件:JTableHeader.java   
public TableHeaderUI getUI()
{
  return (TableHeaderUI) ui;
}
项目:jvm-stm    文件:JTableHeader.java   
public void setUI(TableHeaderUI u)
{
  super.setUI(u);
}
项目:jvm-stm    文件:JTableHeader.java   
public void updateUI()
{
  setUI((TableHeaderUI) UIManager.getUI(this));
}
项目:JBroTable    文件:JBroTableHeader.java   
@Override
public void setUI( TableHeaderUI ui ) {
}
项目:JBroTable    文件:JBroTableHeader.java   
@Override
public void setUI( TableHeaderUI ui ) {
}
项目:JBroTable    文件:JBroTableHeader.java   
@Override
public TableHeaderUI getUI() {
  return super.getUI();
}
项目:cn1    文件:JTableHeader.java   
public TableHeaderUI getUI() {
    return (TableHeaderUI)ui;
}
项目:cn1    文件:JTableHeader.java   
public void setUI(final TableHeaderUI ui) {
    super.setUI(ui);
}
项目:cn1    文件:JTableHeader.java   
public void updateUI() {
    setUI((TableHeaderUI)UIManager.getUI(this));
}
项目:JamVM-PH    文件:JTableHeader.java   
public TableHeaderUI getUI()
{
  return (TableHeaderUI) ui;
}
项目:JamVM-PH    文件:JTableHeader.java   
public void setUI(TableHeaderUI u)
{
  super.setUI(u);
}
项目:JamVM-PH    文件:JTableHeader.java   
public void updateUI()
{
  setUI((TableHeaderUI) UIManager.getUI(this));
}
项目:classpath    文件:JTableHeader.java   
public TableHeaderUI getUI()
{
  return (TableHeaderUI) ui;
}
项目:classpath    文件:JTableHeader.java   
public void setUI(TableHeaderUI u)
{
  super.setUI(u);
}
项目:classpath    文件:JTableHeader.java   
public void updateUI()
{
  setUI((TableHeaderUI) UIManager.getUI(this));
}
项目:freeVM    文件:JTableHeader.java   
public TableHeaderUI getUI() {
    return (TableHeaderUI)ui;
}
项目:freeVM    文件:JTableHeader.java   
public void setUI(final TableHeaderUI ui) {
    super.setUI(ui);
}
项目:freeVM    文件:JTableHeader.java   
public void updateUI() {
    setUI((TableHeaderUI)UIManager.getUI(this));
}
项目:freeVM    文件:JTableHeader.java   
public TableHeaderUI getUI() {
    return (TableHeaderUI)ui;
}
项目:freeVM    文件:JTableHeader.java   
public void setUI(final TableHeaderUI ui) {
    super.setUI(ui);
}
项目:freeVM    文件:JTableHeader.java   
public void updateUI() {
    setUI((TableHeaderUI)UIManager.getUI(this));
}