/** * @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(); } }