/** * Check if the add/remove event is triggered by a move to/from the * invisible columns. * * PRE: the event must be received in columnAdded/Removed. * * @param e the received event * @param added if true the event is assumed to be received via * columnAdded, otherwise via columnRemoved. * @return boolean indicating whether the removed/added is a side-effect * of hiding/showing the column. */ private boolean isVisibilityChange(TableColumnModelEvent e, boolean added) { // can't tell if (!(e.getSource() instanceof DefaultTableColumnModelExt)) return false; DefaultTableColumnModelExt model = (DefaultTableColumnModelExt) e .getSource(); if (added) { return model.isAddedFromInvisibleEvent(e.getToIndex()); } else { return model.isRemovedToInvisibleEvent(e.getFromIndex()); } }
/** * Check if the add/remove event is triggered by a move to/from the * invisible columns. * * PRE: the event must be received in columnAdded/Removed. * * @param e the received event * @param added if true the event is assumed to be received via * columnAdded, otherwise via columnRemoved. * @return boolean indicating whether the removed/added is a side-effect * of hiding/showing the column. */ private boolean isVisibilityChange(TableColumnModelEvent e, boolean added) { // can't tell if (!(e.getSource() instanceof DefaultTableColumnModelExt)) return false; DefaultTableColumnModelExt model = (DefaultTableColumnModelExt) e .getSource(); if (added) { return model.isAddedFromInvisibleEvent(e.getToIndex()); } else { return model.isRemovedToInvisibleEvent(e.getFromIndex()); } }
/** * Check if the add/remove event is triggered by a move to/from the * invisible columns. * * PRE: the event must be received in columnAdded/Removed. * * @param e the received event * @param added if true the event is assumed to be received via * columnAdded, otherwise via columnRemoved. * @return boolean indicating whether the removed/added is a side-effect * of hiding/showing the column. */ private boolean isVisibilityChange(TableColumnModelEvent e, boolean added) { // can't tell if (!(e.getSource() instanceof DefaultTableColumnModelExt)) return false; DefaultTableColumnModelExt model = (DefaultTableColumnModelExt) e .getSource(); if (added) { return model.isAddedFromInvisibleEvent(e.getToIndex()); } else { return model.isRemovedToInvisibleEvent(e.getFromIndex()); } }
/** * Check if the add/remove event is triggered by a move to/from the * invisible columns. * * PRE: the event must be received in columnAdded/Removed. * * @param e the received event * @param added if true the event is assumed to be received via * columnAdded, otherwise via columnRemoved. * @return boolean indicating whether the removed/added is a side-effect * of hiding/showing the column. */ private boolean isVisibilityChange(TableColumnModelEvent e, boolean added) { // can't tell if (!(e.getSource() instanceof DefaultTableColumnModelExt)) return false; DefaultTableColumnModelExt model = (DefaultTableColumnModelExt) e .getSource(); if (added) { return model.isAddedFromInvisibleEvent(e.getToIndex()); } else { return model.isRemovedToInvisibleEvent(e.getFromIndex()); } }
/** * Check if the add/remove event is triggered by a move to/from the * invisible columns. * * PRE: the event must be received in columnAdded/Removed. * * @param e the received event * @param added if true the event is assumed to be received via * columnAdded, otherwise via columnRemoved. * @return boolean indicating whether the removed/added is a side-effect * of hiding/showing the column. */ private boolean isVisibilityChange(TableColumnModelEvent e, boolean added) { // can't tell if (!(e.getSource() instanceof DefaultTableColumnModelExt)) return false; DefaultTableColumnModelExt model = (DefaultTableColumnModelExt) e .getSource(); if (added) { return model.isAddedFromInvisibleEvent(e.getToIndex()); } else { return model.isRemovedToInvisibleEvent(e.getFromIndex()); } }