ENTDownloader
Gestionnaire de fichiers pour l'ENT de l'Université d'Auvergne
Développé par Kévin Subileau
Référence de la classe ListView
Fonctions membres publiques | |
ListView () | |
void | requestFocus () |
abstract FS_Element | getSelectedFile () |
This method returns the current selected file from the view. | |
abstract FS_Element[] | getSelectedFiles () |
This method returns the current selected files from the view. | |
int | getSelectedFilesCount () |
This method returns the number of selected files from the view. | |
abstract void | browseDirectory (java.util.List< FS_Element > dirContent) |
Update the view from the content specified. | |
abstract void | addListSelectionListener (ListSelectionListener listener) |
Adds a listener to the list that's notified each time a change to the selection occurs. | |
abstract void | removeListSelectionListener (ListSelectionListener listener) |
Removes a listener from the list that's notified each time a change to the selection occurs. | |
abstract ListSelectionModel | getSelectionModel () |
void | addKeyListenerOnView (KeyListener keyListener) |
Adds the specified key listener to receive key events from the view component (JTable or a JList). | |
InputMap | getViewInputMap () |
Returns the InputMap that is used when the view component has focus. | |
InputMap | getViewInputMap (int condition) |
Returns the InputMap that is used by the view component (JTable or a JList) during condition. | |
ActionMap | getViewActionMap () |
Returns the ActionMap used to determine what Action to fire for particular KeyStroke binding. | |
Fonctions membres protégées | |
abstract JComponent | getViewComponent () |
Returns the view component (JTable or a JList) | |
Attributs protégés | |
JScrollPane | scroll = null |
JPanel | topPanel = null |
Documentation des constructeurs et destructeur
ListView | ( | ) |
Documentation des fonctions membres
void addKeyListenerOnView | ( | KeyListener | keyListener | ) |
Adds the specified key listener to receive key events from the view component (JTable or a JList).
If keyListener is null, no exception is thrown and no action is performed.
- Paramètres:
-
keyListener the key listener to add
- Depuis:
- 1.0.2
abstract void addListSelectionListener | ( | ListSelectionListener | listener | ) | [pure virtual] |
Adds a listener to the list that's notified each time a change to the selection occurs.
- Paramètres:
-
listener the ListSelectionListener
to add
Implémenté dans BriefView, et DetailView.
abstract void browseDirectory | ( | java.util.List< FS_Element > | dirContent | ) | [pure virtual] |
Update the view from the content specified.
- Paramètres:
-
dirContent
abstract FS_Element getSelectedFile | ( | ) | [pure virtual] |
This method returns the current selected file from the view.
If no file is selected it just returns null.
- Renvoie:
- the current selected file.
Implémenté dans BriefView, et DetailView.
abstract FS_Element [] getSelectedFiles | ( | ) | [pure virtual] |
This method returns the current selected files from the view.
If no files are selected it just returns null.
- Renvoie:
- the current selected files.
Implémenté dans BriefView, et DetailView.
int getSelectedFilesCount | ( | ) |
This method returns the number of selected files from the view.
- Renvoie:
- the number of selected files.
- Depuis:
- 1.0.2
Réimplémentée dans BriefView, et DetailView.
abstract ListSelectionModel getSelectionModel | ( | ) | [pure virtual] |
Implémenté dans BriefView, et DetailView.
ActionMap getViewActionMap | ( | ) |
Returns the ActionMap used to determine what Action to fire for particular KeyStroke binding.
The returned ActionMap, unless otherwise set, will have the ActionMap from the UI set as the parent.
- Renvoie:
- the ActionMap containing the key/action bindings
- Depuis:
- 1.0.2
abstract JComponent getViewComponent | ( | ) | [protected, pure virtual] |
Returns the view component (JTable or a JList)
- Renvoie:
- the view component
Implémenté dans BriefView, et DetailView.
InputMap getViewInputMap | ( | ) |
Returns the InputMap that is used when the view component has focus.
This is convenience method for getInputMap(WHEN_FOCUSED).
- Renvoie:
- the InputMap used when the view component (JTable or a JList) has focus.
- Depuis:
- 1.0.2
InputMap getViewInputMap | ( | int | condition | ) |
Returns the InputMap that is used by the view component (JTable or a JList) during condition.
- Paramètres:
-
condition one of WHEN_IN_FOCUSED_WINDOW, WHEN_FOCUSED, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
- Renvoie:
- the InputMap for the specified condition
- Depuis:
- 1.0.2
abstract void removeListSelectionListener | ( | ListSelectionListener | listener | ) | [pure virtual] |
Removes a listener from the list that's notified each time a change to the selection occurs.
- Paramètres:
-
listener the ListSelectionListener
to remove
Implémenté dans BriefView, et DetailView.
void requestFocus | ( | ) |
Documentation des données membres
JScrollPane scroll = null [protected] |
JPanel topPanel = null [protected] |
La documentation de cette classe a été générée à partir du fichier suivant :