A base class for components that display a list of the files in a directory.
More...
#include <juce_DirectoryContentsDisplayComponent.h>
A base class for components that display a list of the files in a directory.
- See also
- DirectoryContentsList
◆ ColourIds
A set of colour IDs to use to change the colour of various aspects of the list.
These constants can be used either via the Component::setColour(), or LookAndFeel::setColour() methods.
- See also
- Component::setColour, Component::findColour, LookAndFeel::setColour, LookAndFeel::findColour
Enumerator |
---|
highlightColourId | The colour to use to fill a highlighted row of the list.
|
textColourId | The colour for the text.
|
highlightedTextColourId | The colour with which to draw the text in highlighted sections.
|
◆ DirectoryContentsDisplayComponent()
DirectoryContentsDisplayComponent::DirectoryContentsDisplayComponent |
( |
DirectoryContentsList & | listToShow | ) |
|
◆ ~DirectoryContentsDisplayComponent()
virtual DirectoryContentsDisplayComponent::~DirectoryContentsDisplayComponent |
( |
| ) |
|
|
virtual |
◆ getNumSelectedFiles()
virtual int DirectoryContentsDisplayComponent::getNumSelectedFiles |
( |
| ) |
const |
|
pure virtual |
◆ getSelectedFile()
virtual File DirectoryContentsDisplayComponent::getSelectedFile |
( |
int | index | ) |
const |
|
pure virtual |
◆ deselectAllFiles()
virtual void DirectoryContentsDisplayComponent::deselectAllFiles |
( |
| ) |
|
|
pure virtual |
◆ scrollToTop()
virtual void DirectoryContentsDisplayComponent::scrollToTop |
( |
| ) |
|
|
pure virtual |
◆ setSelectedFile()
virtual void DirectoryContentsDisplayComponent::setSelectedFile |
( |
const File & | | ) |
|
|
pure virtual |
If the specified file is in the list, it will become the only selected item (and if the file isn't in the list, all other items will be deselected).
Implemented in FileListComponent, and FileTreeComponent.
◆ addListener()
Adds a listener to be told when files are selected or clicked.
- See also
- removeListener
◆ removeListener()
◆ sendSelectionChangeMessage()
void DirectoryContentsDisplayComponent::sendSelectionChangeMessage |
( |
| ) |
|
◆ sendDoubleClickMessage()
void DirectoryContentsDisplayComponent::sendDoubleClickMessage |
( |
const File & | | ) |
|
◆ sendMouseClickMessage()
void DirectoryContentsDisplayComponent::sendMouseClickMessage |
( |
const File & | , |
|
|
const MouseEvent & | ) |
◆ directoryContentsList
The list that this component is displaying.
◆ listeners
The documentation for this class was generated from the following file: