public class FileLinkAction extends AsyncLinkAction
WebLink
icon, text
Constructor and Description |
---|
FileLinkAction(File file)
Constructs new
FileLinkAction . |
FileLinkAction(String path)
Constructs new
FileLinkAction . |
Modifier and Type | Method and Description |
---|---|
protected void |
asyncLinkExecuted(ActionEvent event)
Invoked when link is being executed asynchronously.
|
Icon |
getIcon()
Returns
Icon for this LinkAction . |
String |
getText()
Returns text for this
LinkAction . |
linkExecuted
public FileLinkAction(@NotNull String path)
FileLinkAction
.path
- path of the file or folder to be openedpublic FileLinkAction(@NotNull File file)
FileLinkAction
.file
- file or folder to be opened@Nullable public Icon getIcon()
LinkAction
getIcon
in interface LinkAction
getIcon
in class AbstractLinkAction
Icon
for this LinkAction
@Nullable public String getText()
LinkAction
getText
in interface LinkAction
getText
in class AbstractLinkAction
LinkAction
protected void asyncLinkExecuted(@NotNull ActionEvent event)
AsyncLinkAction
asyncLinkExecuted
in class AsyncLinkAction
event
- link execution eventCopyright © 2020. All rights reserved.