@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(); } }
/** * Maps {@code JTableHeader.getUI()} through queue */ public TableHeaderUI getUI() { return (runMapping(new MapAction<TableHeaderUI>("getUI") { @Override public TableHeaderUI map() { return ((JTableHeader) getSource()).getUI(); } })); }
/** * 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); } }); }
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()); }
@Override public void setUI(TableHeaderUI ui) { super.setUI(ui); }
@Override public void setUI(TableHeaderUI ui) { super.setUI(new GroupableTableHeaderUI()); }
public TableHeaderUI getUI() { AndroidClassUtil.callEmptyMethod(); return null; }
public void setUI(TableHeaderUI ui) { AndroidClassUtil.callEmptyMethod(); }
public TableHeaderUI getUI() { return (TableHeaderUI) ui; }
public void setUI(TableHeaderUI u) { super.setUI(u); }
public void updateUI() { setUI((TableHeaderUI) UIManager.getUI(this)); }
@Override public void setUI( TableHeaderUI ui ) { }
@Override public TableHeaderUI getUI() { return super.getUI(); }
public TableHeaderUI getUI() { return (TableHeaderUI)ui; }
public void setUI(final TableHeaderUI ui) { super.setUI(ui); }
public void updateUI() { setUI((TableHeaderUI)UIManager.getUI(this)); }