Class: IMatchFileWindow

IMatchFileWindow

This class implements the base class for IMatch File Window Apps. Derive from this class when you create your own File Window Apps.
 

Importing

import IMatchFileWindow from '/system/imatch/imatch-filewindow.js';

Requirements

/system/imatch/imatchlib.js


new IMatchFileWindow(instanceId)

Constructs a file window instance and associates it with the specified File Window app instance.
Each File Window App in IMatch has a unique instance id. This id changes when the user swiches between regular File Window Layouts and App Layouts.

Tip: Use the IMatchFileWindow.enumerateRunningApps method of this class to get a list of all runnnig File Window Apps, their type and instance id.

Parameters:
Name Type Description
instanceId String

The instance id of the associated File Window.

Members


FileStates :Number

The possible states of a file. A file can use any combination of states (bitmask).

Type:
  • Number
Properties:
Name Type Default Description
none Number 0

No specific state.

selected Number 1

The file is selected.

focused Number 2

The file is focused.

esHiddenSearch Number 4096

The file is hidden by the currenly active search. The File Window App should suppress the display of this file or indicate this state by some other means.

esHiddenFilter Number 8192

The file is hidden by the currenly active filter. The File Window App should suppress the display of this file or indicate this state by some other means.

esHiddenStack Number 16384

The file is part of a stack and hidden.

Class: IMatchFileWindow

exports

This class implements support functions for locales and user-specific formatting
for date, time and numbers. The class uses the IMatch appLocale settings, if available.
Else it uses the IMatch UI language or the browser language, as fall-backs.


new exports()

Members


FileStates :Number

The possible states of a file. A file can use any combination of states (bitmask).

Type:
  • Number
Properties:
Name Type Default Description
none Number 0

No specific state.

selected Number 1

The file is selected.

focused Number 2

The file is focused.

esHiddenSearch Number 4096

The file is hidden by the currenly active search. The File Window App should suppress the display of this file or indicate this state by some other means.

esHiddenFilter Number 8192

The file is hidden by the currenly active filter. The File Window App should suppress the display of this file or indicate this state by some other means.

esHiddenStack Number 16384

The file is part of a stack and hidden.

Class: IMatchFileWindow

exports

This class provides convenient interfaces to various services offered by photools.com.


new exports( [env])

Constructs this instance.

Parameters:
Name Type Argument Default Description
env String <optional>
'live'

The environment in which this class is used. For internal purposes.

Members


FileStates :Number

The possible states of a file. A file can use any combination of states (bitmask).

Type:
  • Number
Properties:
Name Type Default Description
none Number 0

No specific state.

selected Number 1

The file is selected.

focused Number 2

The file is focused.

esHiddenSearch Number 4096

The file is hidden by the currenly active search. The File Window App should suppress the display of this file or indicate this state by some other means.

esHiddenFilter Number 8192

The file is hidden by the currenly active filter. The File Window App should suppress the display of this file or indicate this state by some other means.

esHiddenStack Number 16384

The file is part of a stack and hidden.