public class AktionOrderHelper extends Object
| Constructor and Description |
|---|
AktionOrderHelper() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getNewIndex(Status status,
IEntityContext ec) |
static BasicRefResult |
isAktionDeletable(Aktion delAktion,
IEntityContext ec)
Prüft ob eine Aktion gelöscht werden kann.
|
static BasicRefResult |
isAktionMoveable(Aktion currentAktion,
int targetIndex,
IEntityContext ec)
Prüft ob eine Aktion verschoben werden darf.
|
static BasicRefResult |
isAktionMoveableToState(Aktion action,
Status state,
int newIdx,
IEntityContext ec) |
static Aktion |
move(Aktion aktion,
int targetIdx,
IEntityContext ec)
Passt die Reihenfolge der Aktionen an, wo es notwendig ist.
|
static Aktion |
moveToState(Aktion action,
Status state,
int newIdx,
IEntityContext ec) |
public static int getNewIndex(Status status, IEntityContext ec)
public static BasicRefResult isAktionMoveable(Aktion currentAktion, int targetIndex, IEntityContext ec)
currentAktion - aktuelle AktiontargetIndex - neuer Index der Aktion innerhalb der Liste von Aktionentrue, falls die Aktion verschoben werden darf, ansonsten falsepublic static BasicRefResult isAktionMoveableToState(Aktion action, Status state, int newIdx, IEntityContext ec)
public static BasicRefResult isAktionDeletable(Aktion delAktion, IEntityContext ec)
delAktion - Aktion, die gelöscht werden sollpublic static Aktion move(Aktion aktion, int targetIdx, IEntityContext ec)
aktion - Aktion, die verschoben wurde auf Clientuc - EntityContextpublic static Aktion moveToState(Aktion action, Status state, int newIdx, IEntityContext ec)
Copyright © 2018 XIMA MEDIA GmbH. All rights reserved.