|
| FileListComponent (DirectoryContentsList &listToShow) |
|
| ~FileListComponent () |
|
int | getNumSelectedFiles () const override |
|
File | getSelectedFile (int index=0) const override |
|
void | deselectAllFiles () override |
|
void | scrollToTop () override |
|
void | setSelectedFile (const File &) override |
|
| ListBox (const String &componentName=String::empty, ListBoxModel *model=nullptr) |
|
| ~ListBox () |
|
void | setModel (ListBoxModel *newModel) |
|
ListBoxModel * | getModel () const noexcept |
|
void | updateContent () |
|
void | setMultipleSelectionEnabled (bool shouldBeEnabled) noexcept |
|
void | setClickingTogglesRowSelection (bool flipRowSelection) noexcept |
|
void | setRowSelectedOnMouseDown (bool isSelectedOnMouseDown) noexcept |
|
void | setMouseMoveSelectsRows (bool shouldSelect) |
|
void | selectRow (int rowNumber, bool dontScrollToShowThisRow=false, bool deselectOthersFirst=true) |
|
void | selectRangeOfRows (int firstRow, int lastRow) |
|
void | deselectRow (int rowNumber) |
|
void | deselectAllRows () |
|
void | flipRowSelection (int rowNumber) |
|
SparseSet< int > | getSelectedRows () const |
|
void | setSelectedRows (const SparseSet< int > &setOfRowsToBeSelected, NotificationType sendNotificationEventToModel=sendNotification) |
|
bool | isRowSelected (int rowNumber) const |
|
int | getNumSelectedRows () const |
|
int | getSelectedRow (int index=0) const |
|
int | getLastRowSelected () const |
|
void | selectRowsBasedOnModifierKeys (int rowThatWasClickedOn, ModifierKeys modifiers, bool isMouseUpEvent) |
|
void | setVerticalPosition (double newProportion) |
|
double | getVerticalPosition () const |
|
void | scrollToEnsureRowIsOnscreen (int row) |
|
ScrollBar * | getVerticalScrollBar () const noexcept |
|
ScrollBar * | getHorizontalScrollBar () const noexcept |
|
int | getRowContainingPosition (int x, int y) const noexcept |
|
int | getInsertionIndexForPosition (int x, int y) const noexcept |
|
Rectangle< int > | getRowPosition (int rowNumber, bool relativeToComponentTopLeft) const noexcept |
|
Component * | getComponentForRowNumber (int rowNumber) const noexcept |
|
int | getRowNumberOfComponent (Component *rowComponent) const noexcept |
|
int | getVisibleRowWidth () const noexcept |
|
void | setRowHeight (int newHeight) |
|
int | getRowHeight () const noexcept |
|
int | getNumRowsOnScreen () const noexcept |
|
void | setOutlineThickness (int outlineThickness) |
|
int | getOutlineThickness () const noexcept |
|
void | setHeaderComponent (Component *newHeaderComponent) |
|
Component * | getHeaderComponent () const noexcept |
|
void | setMinimumContentWidth (int newMinimumWidth) |
|
int | getVisibleContentWidth () const noexcept |
|
void | repaintRow (int rowNumber) noexcept |
|
virtual Image | createSnapshotOfRows (const SparseSet< int > &rows, int &x, int &y) |
|
Viewport * | getViewport () const noexcept |
|
bool | keyPressed (const KeyPress &) override |
|
bool | keyStateChanged (bool isKeyDown) override |
|
void | paint (Graphics &) override |
|
void | paintOverChildren (Graphics &) override |
|
void | resized () override |
|
void | visibilityChanged () override |
|
void | mouseWheelMove (const MouseEvent &, const MouseWheelDetails &) override |
|
void | mouseUp (const MouseEvent &) override |
|
void | colourChanged () override |
|
void | parentHierarchyChanged () override |
|
void | startDragAndDrop (const MouseEvent &, const SparseSet< int > &rowsToDrag, const var &dragDescription, bool allowDraggingToOtherWindows) |
|
virtual | ~SettableTooltipClient () |
|
virtual void | setTooltip (const String &newTooltip) |
|
virtual String | getTooltip () |
|
virtual | ~TooltipClient () |
|
| DirectoryContentsDisplayComponent (DirectoryContentsList &listToShow) |
|
virtual | ~DirectoryContentsDisplayComponent () |
|
void | addListener (FileBrowserListener *listener) |
|
void | removeListener (FileBrowserListener *listener) |
|
void | sendSelectionChangeMessage () |
|
void | sendDoubleClickMessage (const File &file) |
|
void | sendMouseClickMessage (const File &file, const MouseEvent &e) |
|
A component that displays the files in a directory as a listbox.
This implements the DirectoryContentsDisplayComponent base class so that it can be used in a FileBrowserComponent.
To attach a listener to it, use its DirectoryContentsDisplayComponent base class and the FileBrowserListener class.
- See also
- DirectoryContentsList, FileTreeComponent