/** * Returns group's children in the order determined by constraints. * * @param e not used * @return An array of children actions */ @Override public final Action[] getChildren(ActionEvent e) { if (needSorting) { sortedActions = getSortedActions(); needSorting = false; } return sortedActions == null ? EMPTY_ACTIONS : sortedActions; }