/** * Checks and returns the column's visibility. * * @param column the <code>TableColumn</code> to check * @return a boolean indicating if the column is visible */ private boolean isVisible(TableColumn column) { return getViewIndexForColumn(column) >= 0; }
/** * Checks and returns the column's visibility. * * @param column the <code>TableColumn</code> to check * @return a boolean indicating if the column is visible */ private boolean isVisible(TableColumn column) { return getViewIndexForColumn(column) >= 0; }
/** * Checks and returns the column's visibility. * * @param column the <code>TableColumn</code> to check * @return a boolean indicating if the column is visible */ private boolean isVisible(TableColumn column) { return getViewIndexForColumn(column) >= 0; }
/** * Checks and returns the column's visibility. * * @param column the <code>TableColumn</code> to check * @return a boolean indicating if the column is visible */ private boolean isVisible(TableColumn column) { return getViewIndexForColumn(column) >= 0; }
/** * Checks and returns the column's visibility. * * @param column the <code>TableColumn</code> to check * @return a boolean indicating if the column is visible */ private boolean isVisible(TableColumn column) { return getViewIndexForColumn(column) >= 0; }
/** * {@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)); } }