Exemplo n.º 1
0
 @Override
 public void doLayout() {
   super.doLayout();
   if (myBusyIcon != null) {
     myBusyIcon.updateLocation(this);
   }
 }
Exemplo n.º 2
0
 @Override
 public void paint(Graphics g) {
   super.paint(g);
   if (myBusyIcon != null) {
     myBusyIcon.updateLocation(this);
   }
 }
Exemplo n.º 3
0
 @Override
 protected void paintChildren(Graphics g) {
   if (myEnableAntialiasing) {
     UISettings.setupAntialiasing(g);
   }
   super.paintChildren(g);
 }
Exemplo n.º 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);
        }
      }
    }
  }
Exemplo n.º 5
0
 @Override
 protected void paintComponent(Graphics g) {
   if (myEnableAntialiasing) {
     UISettings.setupAntialiasing(g);
   }
   super.paintComponent(g);
   myEmptyText.paint(this, g);
 }
Exemplo n.º 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;
   }
 }
Exemplo n.º 7
0
 @Override
 public void updateUI() {
   super.updateUI();
   myMinRowHeight = null;
 }