Skip to content
Last updated

API / geotoolkit / report / edit / history / IState / IState

Class: IState

history.IState.IState

Define an object which can be laid out.

Interface

Table of contents

Constructors
  • [new IState()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.report.edit.history.istate.istate.md#new istate())
Methods

Contents

Constructors

new IState()

• new IState()

Methods

dispose

▸ Abstract dispose(): void

Dispose

Returns

void


equalsTo

▸ Abstract equalsTo(state): boolean

Compare two states

Parameters

Name Type Description
stateIStateother state

Returns

boolean


getSelection

▸ Abstract getSelection(selection?): string[]

Returns selection

Parameters

Name Type Description
Optional selectionstring[]selection array

Returns

string[]


isEmpty

▸ Abstract isEmpty(): boolean

Return is empty flag

Returns

boolean


redo

▸ Abstract redo(rootDocument?): Promise<void&gt;

Redo

Parameters

Name Type
Optional rootDocumentDocument

Returns

Promise<void&gt;


save

▸ Abstract save(): IState

Save state

Returns

IState

this


saveBefore

▸ Abstract saveBefore(): IState

Save state 'before'

Returns

IState

this


setSelection

▸ Abstract setSelection(selection): IState

Set selection

Parameters

Name Type Description
selectionstring[]selection array

Returns

IState

this


undo

▸ Abstract undo(rootDocument?): Promise<void&gt;

Undo

Parameters

Name Type
Optional rootDocumentDocument

Returns

Promise<void&gt;