/** * @inheritDoc * */ public void addAdditionalActionItems(List<? extends Action> actions) { if (actions.size() == 0) return; // JW: this is a reference to the enclosing class // prevents to make this implementation static // Hmmm...any way around? if (canControl()) { addSeparator(); } addItems(actions); }
/** * Populates the popup from scratch. * * If applicable, creates and adds column visibility actions. Always adds * additional actions. */ protected void populatePopup() { clearAll(); if (canControl()) { createVisibilityActions(); addVisibilityActionItems(); } addAdditionalActionItems(); }
/** * @inheritDoc * */ @Override public void addAdditionalActionItems(List<? extends Action> actions) { if (actions.size() == 0) return; // JW: this is a reference to the enclosing class // prevents to make this implementation static // Hmmm...any way around? if (canControl()) { addSeparator(); } if (getGrouper() == null) { addItems(actions); return; } List<? extends List<? extends Action>> groups = grouper.group(actions); for (List<? extends Action> group : groups) { addItems(group); if (group != groups.get(groups.size()- 1)) addSeparator(); } }
/** * @inheritDoc * */ @Override public void addAdditionalActionItems(List<? extends Action> actions) { if (actions.size() == 0) return; // JW: this is a reference to the enclosing class // prevents to make this implementation static // Hmmm...any way around? if (canControl()) { addSeparator(); } if (getGrouper() == null) { addItems(actions); return; } List<? extends List<? extends Action>> groups = grouper.group(actions); for (List<? extends Action> group : groups) { addItems(group); if (group != groups.get(groups.size()- 1)) addSeparator(); } }
/** * @inheritDoc * */ @Override public void addAdditionalActionItems(List<? extends Action> actions) { if (actions.size() == 0) return; // JW: this is a reference to the enclosing class // prevents to make this implementation static // Hmmm...any way around? if (canControl()) { addSeparator(); } if (getGrouper() == null) { addItems(actions); return; } List<? extends List<? extends Action>> groups = grouper.group(actions); for (List<? extends Action> group : groups) { addItems(group); if (group != groups.get(groups.size()- 1)) addSeparator(); } }
/** * @inheritDoc * */ @Override public void addAdditionalActionItems(List<? extends Action> actions) { if (actions.size() == 0) return; // JW: this is a reference to the enclosing class // prevents to make this implementation static // Hmmm...any way around? if (canControl()) { addSeparator(); } if (getGrouper() == null) { addItems(actions); return; } List<? extends List<? extends Action>> groups = grouper.group(actions); for (List<? extends Action> group : groups) { addItems(group); if (group != groups.get(groups.size()- 1)) addSeparator(); } }
/** * Populates the popup from scratch. * * If applicable, creates and adds column visibility actions. Always adds * additional actions. */ protected void populatePopup() { clearAll(); if (canControl()) { createVisibilityActions(); addVisibilityActionItems(); } addAdditionalActionItems(); }
/** * Populates the popup from scratch. * * If applicable, creates and adds column visibility actions. Always adds * additional actions. */ protected void populatePopup() { clearAll(); if (canControl()) { createVisibilityActions(); addVisibilityActionItems(); } addAdditionalActionItems(); }
/** * Populates the popup from scratch. * * If applicable, creates and adds column visibility actions. Always adds * additional actions. */ protected void populatePopup() { clearAll(); if (canControl()) { createVisibilityActions(); addVisibilityActionItems(); } addAdditionalActionItems(); }
/** * Populates the popup from scratch. * * If applicable, creates and adds column visibility actions. Always adds * additional actions. */ protected void populatePopup() { clearAll(); if (canControl()) { createVisibilityActions(); addVisibilityActionItems(); } addAdditionalActionItems(); }
/** * Adjusts internal state after table's column model property has changed. * Handles cleanup of listeners to the old/new columnModel (Note, that * it listens to the column model only if it can control column visibility). * Updates content of popup. * * @param oldModel the old <code>TableColumnModel</code> we had been listening to. */ protected void updateFromColumnModelChange(TableColumnModel oldModel) { if (oldModel != null) { oldModel.removeColumnModelListener(columnModelListener); } populatePopup(); if (canControl()) { table.getColumnModel().addColumnModelListener(getColumnModelListener()); } }
/** * Adjusts internal state after table's column model property has changed. * Handles cleanup of listeners to the old/new columnModel (Note, that * it listens to the column model only if it can control column visibility). * Updates content of popup. * * @param oldModel the old <code>TableColumnModel</code> we had been listening to. */ protected void updateFromColumnModelChange(TableColumnModel oldModel) { if (oldModel != null) { oldModel.removeColumnModelListener(columnModelListener); } populatePopup(); if (canControl()) { table.getColumnModel().addColumnModelListener(getColumnModelListener()); } }
/** * Adjusts internal state after table's column model property has changed. * Handles cleanup of listeners to the old/new columnModel (Note, that * it listens to the column model only if it can control column visibility). * Updates content of popup. * * @param oldModel the old <code>TableColumnModel</code> we had been listening to. */ protected void updateFromColumnModelChange(TableColumnModel oldModel) { if (oldModel != null) { oldModel.removeColumnModelListener(columnModelListener); } populatePopup(); if (canControl()) { table.getColumnModel().addColumnModelListener(getColumnModelListener()); } }
/** * Adjusts internal state after table's column model property has changed. * Handles cleanup of listeners to the old/new columnModel (Note, that * it listens to the column model only if it can control column visibility). * Updates content of popup. * * @param oldModel the old <code>TableColumnModel</code> we had been listening to. */ protected void updateFromColumnModelChange(TableColumnModel oldModel) { if (oldModel != null) { oldModel.removeColumnModelListener(columnModelListener); } populatePopup(); if (canControl()) { table.getColumnModel().addColumnModelListener(getColumnModelListener()); } }
/** * Adjusts internal state after table's column model property has changed. * Handles cleanup of listeners to the old/new columnModel (Note, that * it listens to the column model only if it can control column visibility). * Updates content of popup. * * @param oldModel the old <code>TableColumnModel</code> we had been listening to. */ protected void updateFromColumnModelChange(TableColumnModel oldModel) { if (oldModel != null) { oldModel.removeColumnModelListener(columnModelListener); } populatePopup(); if (canControl()) { table.getColumnModel().addColumnModelListener(getColumnModelListener()); } }