示例#1
0
 @Override
 public void doLayout() {
   super.doLayout();
   if (myBusyIcon != null) {
     myBusyIcon.updateLocation(this);
   }
 }
示例#2
0
 @Override
 public void paint(Graphics g) {
   super.paint(g);
   if (myBusyIcon != null) {
     myBusyIcon.updateLocation(this);
   }
 }
示例#3
0
 @Override
 protected void paintChildren(Graphics g) {
   if (myEnableAntialiasing) {
     UISettings.setupAntialiasing(g);
   }
   super.paintChildren(g);
 }
示例#4
0
  @Override
  public void setModel(final TableModel model) {
    super.setModel(model);

    if (model instanceof SortableColumnModel) {
      final SortableColumnModel sortableModel = (SortableColumnModel) model;
      if (sortableModel.isSortable()) {
        final TableRowSorter<TableModel> rowSorter = createRowSorter(model);
        rowSorter.setSortsOnUpdates(isSortOnUpdates());
        setRowSorter(rowSorter);
        final RowSorter.SortKey sortKey = sortableModel.getDefaultSortKey();
        if (sortKey != null
            && sortKey.getColumn() >= 0
            && sortKey.getColumn() < model.getColumnCount()) {
          if (sortableModel.getColumnInfos()[sortKey.getColumn()].isSortable()) {
            rowSorter.setSortKeys(Arrays.asList(sortKey));
          }
        }
      } else {
        final RowSorter<? extends TableModel> rowSorter = getRowSorter();
        if (rowSorter instanceof DefaultColumnInfoBasedRowSorter) {
          setRowSorter(null);
        }
      }
    }
  }
示例#5
0
 @Override
 protected void paintComponent(Graphics g) {
   if (myEnableAntialiasing) {
     UISettings.setupAntialiasing(g);
   }
   super.paintComponent(g);
   myEmptyText.paint(this, g);
 }
示例#6
0
 public void removeNotify() {
   final KeyboardFocusManager keyboardFocusManager =
       KeyboardFocusManager.getCurrentKeyboardFocusManager();
   //noinspection HardCodedStringLiteral
   keyboardFocusManager.removePropertyChangeListener("permanentFocusOwner", myEditorRemover);
   //noinspection HardCodedStringLiteral
   keyboardFocusManager.removePropertyChangeListener("focusOwner", myEditorRemover);
   super.removeNotify();
   if (myBusyIcon != null) {
     remove(myBusyIcon);
     Disposer.dispose(myBusyIcon);
     myBusyIcon = null;
   }
 }
示例#7
0
 @Override
 public void updateUI() {
   super.updateUI();
   myMinRowHeight = null;
 }