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
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>

Redo

Parameters

Name Type
Optional rootDocumentDocument

Returns

Promise<void>


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>

Undo

Parameters

Name Type
Optional rootDocumentDocument

Returns

Promise<void>