Class: ListController

ListController()

This class added an find and delete state for handling events find and delete.

Constructor

new ListController()

Source:

Methods

back(event)

Ask the router to go back

Parameters:
Name Type Description
event Event

The event

Source:

canBack(event) → {boolean}

Tells if the event.name == 'back'

Parameters:
Name Type Description
event Event

The event

Source:
Returns:

true when failed other false

Type
boolean

canChildren(event) → {boolean}

Tells if the event.name == 'children' or not.

Parameters:
Name Type Description
event Event

The event

Source:
Returns:

true when event is children other false

Type
boolean

canCreate(event) → {boolean}

Tells if the event.name == 'create' or not.

Parameters:
Name Type Description
event Event

The event

Source:
Returns:

true when event is create other false

Type
boolean

canDelete(event) → {boolean}

Tells if the event.name == 'delete' and the user wants to delete selected item

Parameters:
Name Type Description
event Event

The event

Source:
Returns:

true when event is delete and user reponse is ok other false

Type
boolean

canEdit(event) → {boolean}

Tells if the event.name == 'edit' or not.

Parameters:
Name Type Description
event Event

The event

Source:
Returns:

true when event is edit other false

Type
boolean

canFind(event) → {boolean}

Tells if the event.name == 'find' or not.

Parameters:
Name Type Description
event Event

The event

Source:
Returns:

true when event is find other false

Type
boolean

children(event)

Goto to the children url from event.body.value

Parameters:
Name Type Description
event event
Source:

create(event)

Goto to the create url which is /detail/someClass/new

Parameters:
Name Type Description
event event
Source:

delete(event)

Tell the proxy to delete chosen element

Parameters:
Name Type Description
event Event

The event

Source:

edit(event)

Goto to the edit url which is /detail/someClass/someObjectUid

Parameters:
Name Type Description
event event
Source:

find(event)

Tell the proxy to find objects

Parameters:
Name Type Description
event Event

The event

Source:

populateStateMachine()

Adds states create,find and delete to exists states in super class.

Source: