/** * @inherited <p> * * Overridden to fire a propertyChange for draggedColumn. */ @Override public void setDraggedColumn(TableColumn column) { if (getDraggedColumn() == column) return; TableColumn old = getDraggedColumn(); super.setDraggedColumn(column); firePropertyChange("draggedColumn", old, getDraggedColumn()); }
/** * @inherited <p> * * Overridden to fire a propertyChange for draggedColumn. */ @Override public void setDraggedColumn(TableColumn column) { if (getDraggedColumn() == column) return; TableColumn old = getDraggedColumn(); super.setDraggedColumn(column); firePropertyChange("draggedColumn", old, getDraggedColumn()); }
/** * @inherited <p> * * Overridden to fire a propertyChange for draggedColumn. */ @Override public void setDraggedColumn(TableColumn column) { if (getDraggedColumn() == column) return; TableColumn old = getDraggedColumn(); super.setDraggedColumn(column); firePropertyChange("draggedColumn", old, getDraggedColumn()); }
/** * @inherited <p> * * Overridden to fire a propertyChange for draggedColumn. */ @Override public void setDraggedColumn(TableColumn column) { if (getDraggedColumn() == column) return; TableColumn old = getDraggedColumn(); super.setDraggedColumn(column); firePropertyChange("draggedColumn", old, getDraggedColumn()); }
/** * {@inheritDoc} <p> * * Overridden to scroll the table to keep the dragged column visible. * This side-effect is enabled only if the header's autoscroll property is * <code>true</code> and the associated table is of type JXTable.<p> * * The autoscrolls is disabled by default. With or without - core * issue #6503981 has weird effects (for jdk 1.6 - 1.6u3) on a plain * JTable as well as a JXTable, fixed in 1.6u4. * */ @Override public void setDraggedDistance(int distance) { int old = getDraggedDistance(); super.setDraggedDistance(distance); // fire because super doesn't firePropertyChange("draggedDistance", old, getDraggedDistance()); if (!getAutoscrolls() || (getXTable() == null)) return; TableColumn column = getDraggedColumn(); // fix for #788-swingx: don't try to scroll if we have no dragged column // as doing will confuse the horizontalScrollEnabled on the JXTable. if (column != null) { getXTable().scrollColumnToVisible(getViewIndexForColumn(column)); } }
/** * {@inheritDoc} <p> * * Overridden to scroll the table to keep the dragged column visible. * This side-effect is enabled only if the header's autoscroll property is * <code>true</code> and the associated table is of type JXTable.<p> * * The autoscrolls is disabled by default. With or without - core * issue #6503981 has weird effects (for jdk 1.6 - 1.6u3) on a plain * JTable as well as a JXTable, fixed in 1.6u4. * */ @Override public void setDraggedDistance(int distance) { int old = getDraggedDistance(); super.setDraggedDistance(distance); // fire because super doesn't firePropertyChange("draggedDistance", old, getDraggedDistance()); if (!getAutoscrolls() || (getXTable() == null)) return; TableColumn column = getDraggedColumn(); // fix for #788-swingx: don't try to scroll if we have no dragged column // as doing will confuse the horizontalScrollEnabled on the JXTable. if (column != null) { getXTable().scrollColumnToVisible(getViewIndexForColumn(column)); } }
/** * {@inheritDoc} <p> * * Overridden to scroll the table to keep the dragged column visible. * This side-effect is enabled only if the header's autoscroll property is * <code>true</code> and the associated table is of type JXTable.<p> * * The autoscrolls is disabled by default. With or without - core * issue #6503981 has weird effects (for jdk 1.6 - 1.6u3) on a plain * JTable as well as a JXTable, fixed in 1.6u4. * */ @Override public void setDraggedDistance(int distance) { int old = getDraggedDistance(); super.setDraggedDistance(distance); // fire because super doesn't firePropertyChange("draggedDistance", old, getDraggedDistance()); if (!getAutoscrolls() || (getXTable() == null)) return; TableColumn column = getDraggedColumn(); // fix for #788-swingx: don't try to scroll if we have no dragged column // as doing will confuse the horizontalScrollEnabled on the JXTable. if (column != null) { getXTable().scrollColumnToVisible(getViewIndexForColumn(column)); } }
/** * {@inheritDoc} <p> * * Overridden to scroll the table to keep the dragged column visible. * This side-effect is enabled only if the header's autoscroll property is * <code>true</code> and the associated table is of type JXTable.<p> * * The autoscrolls is disabled by default. With or without - core * issue #6503981 has weird effects (for jdk 1.6 - 1.6u3) on a plain * JTable as well as a JXTable, fixed in 1.6u4. * */ @Override public void setDraggedDistance(int distance) { int old = getDraggedDistance(); super.setDraggedDistance(distance); // fire because super doesn't firePropertyChange("draggedDistance", old, getDraggedDistance()); if (!getAutoscrolls() || (getXTable() == null)) return; TableColumn column = getDraggedColumn(); // fix for #788-swingx: don't try to scroll if we have no dragged column // as doing will confuse the horizontalScrollEnabled on the JXTable. if (column != null) { getXTable().scrollColumnToVisible(getViewIndexForColumn(column)); } }
/** * {@inheritDoc} <p> * * Overridden to scroll the table to keep the dragged column visible. * This side-effect is enabled only if the header's autoscroll property is * <code>true</code> and the associated table is of type JXTable.<p> * * The autoscrolls is disabled by default. With or without - core * issue #6503981 has weird effects (for jdk 1.6 - 1.6u3) on a plain * JTable as well as a JXTable, fixed in 1.6u4. * */ @Override public void setDraggedDistance(int distance) { int old = getDraggedDistance(); super.setDraggedDistance(distance); // fire because super doesn't firePropertyChange("draggedDistance", old, getDraggedDistance()); if (!getAutoscrolls() || (getXTable() == null)) return; TableColumn column = getDraggedColumn(); // fix for #788-swingx: don't try to scroll if we have no dragged column // as doing will confuse the horizontalScrollEnabled on the JXTable. if (column != null) { getXTable().scrollColumnToVisible(getViewIndexForColumn(column)); } }