Construct a new file browser directory listing widget.
The file browser view model.
Set the id of the wrapper's DOM node.
Set the layout for the widget.
The layout is single-use only. It cannot be set to null
and it
cannot be changed after the first assignment.
The layout is disposed automatically when the widget is disposed.
Get the DOM node managed by the wrapper.
This property is read-only.
Set the parent of the widget.
The widget will be automatically removed from its current parent.
This is a no-op if there is no effective parent change.
Get the title data object for the widget.
The title data is used by some container widgets when displaying the widget along with a title, such as a tab panel or dock panel.
Not all widgets will make use of the title data, so it is created on-demand the first time it is accessed.
Get the dir listing content node.
This is the node which holds the item nodes.
Modifying this node directly can lead to undefined behavior.
This is a read-only property.
Get the dir listing header node.
This is the node which holds the header cells.
Modifying this node directly can lead to undefined behavior.
This is a read-only property.
Get the widget factory for the widget.
Set the widget factory for the widget.
Copy the selected items, and optionally cut as well.
Allow the user to rename item on a given row.
Handle the 'click'
event for the widget.
Handle the 'dblclick'
event for the widget.
Handle the 'p-dragenter'
event for the widget.
Handle the 'p-dragleave'
event for the widget.
Handle the 'p-dragover'
event for the widget.
Handle the 'p-drop'
event for the widget.
Handle the 'keydown'
event for the widget.
Handle the 'mousedown'
event for the widget.
Handle the 'mousemove'
event for the widget.
Handle the 'mouseup'
event for the widget.
Handle the 'scroll'
event for the widget.
Get the currently selected items.
Handle selection on a file node.
Handle a multiple select on a file item node.
Handle the refreshed
signal from the model.
Handle the selectionChanged
signal from the model.
Select a given item.
Start a drag event.
Add a class name to the wrapper's DOM node.
The class name to add to the node.
If the class name is already added to the node, this is a no-op.
Attach the widget to a host DOM node.
The DOM node to use as the widget's host.
Clear the given widget flag.
This will not typically be consumed directly by user code.
Send a 'close-request'
message to the widget.
See also: [[MsgCloseRequest]]
Compress a message posted to the widget.
The message posted to the widget.
The queue of pending messages for the widget.
true
if the message should be ignored, or false
if
the message should be enqueued for delivery as normal.
Subclasses may reimplement this method as needed.
Test whether a widget is a descendant of this widget.
The widget of interest.
true
if the widget is a descendant, false
otherwise.
Copy the selected items.
Cut the selected items.
Delete the currently selected item(s).
Detach the widget from its host DOM node.
Dispose of the resources held by the directory listing.
Download the currently selected item(s).
Duplicate the currently selected item(s).
Post a 'fit-request'
message to the widget.
See also: [[MsgFitRequest]]
Handle the DOM events for the directory listing.
The DOM event sent to the widget.
This method implements the DOM EventListener
interface and is
called in response to events on the panel's DOM node. It should
not be called directly by user code.
Test whether the wrapper's DOM node has the given class name.
The class name of interest.
true
if the node has the class, false
otherwise.
Hide the widget and make it hidden to its parent widget.
This causes the isHidden property to be true
.
Invoke the message processing routine of the widget's layout.
The message to dispatch to the layout.
This is a no-op if the widget does not have a layout.
A message handler invoked on an 'after-attach'
message.
A message handler invoked on an 'after-show'
message.
The default implementation of this handler is a no-op.
See also: [[MsgAfterShow]]
A message handler invoked on a 'before-detach'
message.
A message handler invoked on a 'before-hide'
message.
The default implementation of this handler is a no-op.
See also: [[MsgBeforeHide]]
A message handler invoked on a 'child-added'
message.
The default implementation of this handler is a no-op.
See also: [[ChildMessage]]
A message handler invoked on a 'child-removed'
message.
The default implementation of this handler is a no-op.
See also: [[ChildMessage]]
A message handler invoked on a 'close-request'
message.
The default implementation of this handler detaches the widget.
See also: close, [[MsgCloseRequest]]
A message handler invoked on a 'resize'
message.
The default implementation of this handler is a no-op.
See also: [[ResizeMessage]]
A handler invoked on an 'update-request'
message.
Paste the items from the clipboard.
Process a message sent to the widget.
The message sent to the widget.
Subclasses may reimplement this method as needed.
Remove a class name from the wrapper's DOM node.
The class name to remove from the node.
If the class name is not yet added to the node, this is a no-op.
Rename the first currently selected item.
Select next item.
Whether to keep the current selection and add to it.
Select previous item.
Whether to keep the current selection and add to it.
Set the given widget flag.
This will not typically be consumed directly by user code.
Set whether the widget is hidden.
true
to hide the widget, or false
to show it.
widget.setHidden(true)
is equivalent to widget.hide()
, and
widget.setHidden(false)
is equivalent to widget.show()
.
Show the widget and make it visible to its parent widget.
This causes the isHidden property to be false
.
Shut down kernels on the applicable currently selected items.
Test whether the given widget flag is set.
This will not typically be consumed directly by user code.
Toggle a class name on the wrapper's DOM node.
The class name to toggle on the node.
Whether to force add the class (true
) or force
remove the class (false
). If not provided, the presence of
the class will be toggled from its current state.
true
if the class is now present, false
otherwise.
Post an 'update-request'
message to the widget.
See also: [[MsgUpdateRequest]]
Create the header node for a dir listing.
A new DOM node to use as the dir listing header.
This method may be reimplemented to create custom headers.
Create a new item node for a dir listing.
A new DOM node to use as a content item.
This method may be reimplemented to create custom items.
Create the DOM node for a dir listing.
Update an item node to reflect the current state of a model.
A node created by a call to createItemNode.
The model object to use for the item state.
This is called automatically when the item should be updated.
If the createItemNode method is reimplemented, this method should also be reimplemented so that the item state is properly updated.
Generated using TypeDoc
A widget which hosts a file list area.