FileBrowserConfig

public class FileBrowserConfig

Class FileBrowserConfig. Provides filebrowserconfig functionality for the Hytale server.

java.lang.Object > FileBrowserConfig

Field Summary

listElementId

private String listElementId

Field listElementId.

rootSelectorId

private String rootSelectorId

Field rootSelectorId.

searchInputId

private String searchInputId

Field searchInputId.

currentPathId

private String currentPathId

Field currentPathId.

roots

private List roots

Field roots.

allowedExtensions

private Set allowedExtensions

Field allowedExtensions.

enableRootSelector

private boolean enableRootSelector

Field enableRootSelector.

enableSearch

private boolean enableSearch

Field enableSearch.

enableDirectoryNav

private boolean enableDirectoryNav

Field enableDirectoryNav.

enableMultiSelect

private boolean enableMultiSelect

Field enableMultiSelect.

maxResults

private int maxResults

Field maxResults.

customProvider

private FileListProvider customProvider

Field customProvider.

Method Detail

FileBrowserConfig

public record FileBrowserConfig (@Nonnull String listElementId, @Nullable String rootSelectorId, @Nullable String searchInputId, @Nullable String currentPathId, @Nonnull List roots, @Nonnull Set allowedExtensions, boolean enableRootSelector, boolean enableSearch, boolean enableDirectoryNav, boolean enableMultiSelect, int maxResults, @Nullable FileListProvider customProvider)

Method FileBrowserConfig.

Parameters:
@Nonnull String listElementId
@Nullable String rootSelectorId
@Nullable String searchInputId
@Nullable String currentPathId
@Nonnull List roots
@Nonnull Set allowedExtensions
boolean enableRootSelector
boolean enableSearch
boolean enableDirectoryNav
boolean enableMultiSelect
int maxResults
@Nullable FileListProvider customProvider

builder

static Builder builder ()

Method builder.

listElementId

public String listElementId ()

Method listElementId.

rootSelectorId

public String rootSelectorId ()

Method rootSelectorId.

searchInputId

public String searchInputId ()

Method searchInputId.

currentPathId

public String currentPathId ()

Method currentPathId.

roots

public List roots ()

Method roots.

allowedExtensions

public Set allowedExtensions ()

Method allowedExtensions.

customProvider

public FileListProvider customProvider ()

Method customProvider.

RootEntry

public record RootEntry (@Nonnull LocalizableString displayName, @Nonnull Path path)

Method RootEntry.

Parameters:
@Nonnull LocalizableString displayName
@Nonnull Path path

displayName

public LocalizableString displayName ()

Method displayName.

path

public Path path ()

Method path.

enableRootSelector

public Builder enableRootSelector (final boolean enable)

Method enableRootSelector.

Parameters:
final boolean enable

enableSearch

public Builder enableSearch (final boolean enable)

Method enableSearch.

Parameters:
final boolean enable

enableDirectoryNav

public Builder enableDirectoryNav (final boolean enable)

Method enableDirectoryNav.

Parameters:
final boolean enable

enableMultiSelect

public Builder enableMultiSelect (final boolean enable)

Method enableMultiSelect.

Parameters:
final boolean enable

maxResults

public Builder maxResults (final int maxResults)

Method maxResults.

Parameters:
final int maxResults

build

public FileBrowserConfig build ()

Method build.