/** * Looks up and returns action keys to access actions in the * table's actionMap which should be included into the popup. * * Here: all keys with isColumnControlActionKey(key). The list * is sorted by those keys. * * @return the action keys of table's actionMap entries whose * action should be included into the popup. */ @SuppressWarnings({ "unchecked", "rawtypes" }) protected List getColumnControlActionKeys() { Object[] allKeys = table.getActionMap().allKeys(); List columnKeys = new ArrayList(); for (int i = 0; i < allKeys.length; i++) { if (isColumnControlActionKey(allKeys[i])) { columnKeys.add(allKeys[i]); } } // JW: this will blow for non-String keys! // so this method is less decoupled from the // decision method isControl than expected. Collections.sort(columnKeys); return columnKeys; }
/** * Looks up and returns action keys to access actions in the * table's actionMap which should be included into the popup. * * Here: all keys with isColumnControlActionKey(key). The list * is sorted by those keys. * * @return the action keys of table's actionMap entries whose * action should be included into the popup. */ @SuppressWarnings("unchecked") protected List getColumnControlActionKeys() { Object[] allKeys = table.getActionMap().allKeys(); List columnKeys = new ArrayList(); for (int i = 0; i < allKeys.length; i++) { if (isColumnControlActionKey(allKeys[i])) { columnKeys.add(allKeys[i]); } } // JW: this will blow for non-String keys! // so this method is less decoupled from the // decision method isControl than expected. Collections.sort(columnKeys); return columnKeys; }
/** * Looks up and returns action keys to access actions in the * table's actionMap which should be included into the popup. * * Here: all keys with isColumnControlActionKey(key). The list * is sorted by those keys. * * @return the action keys of table's actionMap entries whose * action should be included into the popup. */ @SuppressWarnings({ "unchecked", "rawtypes" }) protected List getColumnControlActionKeys() { Object[] allKeys = table.getActionMap().allKeys(); List columnKeys = new ArrayList(); for (int i = 0; i < allKeys.length; i++) { if (isColumnControlActionKey(allKeys[i])) { columnKeys.add(allKeys[i]); } } // JW: this will blow for non-String keys! // so this method is less decoupled from the // decision method isControl than expected. Collections.sort(columnKeys); return columnKeys; }
/** * Looks up and returns action keys to access actions in the * table's actionMap which should be included into the popup. * * Here: all keys with isColumnControlActionKey(key). The list * is sorted by those keys. * * @return the action keys of table's actionMap entries whose * action should be included into the popup. */ @SuppressWarnings({ "unchecked", "rawtypes" }) protected List getColumnControlActionKeys() { Object[] allKeys = table.getActionMap().allKeys(); List columnKeys = new ArrayList(); for (int i = 0; i < allKeys.length; i++) { if (isColumnControlActionKey(allKeys[i])) { columnKeys.add(allKeys[i]); } } // JW: this will blow for non-String keys! // so this method is less decoupled from the // decision method isControl than expected. Collections.sort(columnKeys); return columnKeys; }
/** * Looks up and returns action keys to access actions in the * table's actionMap which should be included into the popup. * * Here: all keys with isColumnControlActionKey(key). The list * is sorted by those keys. * * @return the action keys of table's actionMap entries whose * action should be included into the popup. */ @SuppressWarnings({ "unchecked", "rawtypes" }) protected List getColumnControlActionKeys() { Object[] allKeys = table.getActionMap().allKeys(); List columnKeys = new ArrayList(); for (int i = 0; i < allKeys.length; i++) { if (isColumnControlActionKey(allKeys[i])) { columnKeys.add(allKeys[i]); } } // JW: this will blow for non-String keys! // so this method is less decoupled from the // decision method isControl than expected. Collections.sort(columnKeys); return columnKeys; }