use of org.applause.lang.applauseDsl.UIActionDeleteAction in project applause by applause.
the class DefaultListScreenEditActionCompiler method supportsDeleteAction.
public boolean supportsDeleteAction(final Screen it) {
ScreenListItemCell _defaultCell = this._defaultListScreenClassExtensions.defaultCell(it);
EList<UIAction> _actions = _defaultCell.getActions();
final Function1<UIAction, UIActionSpecification> _function = new Function1<UIAction, UIActionSpecification>() {
public UIActionSpecification apply(final UIAction it) {
UIActionSpecification _action = it.getAction();
return _action;
}
};
List<UIActionSpecification> _map = ListExtensions.<UIAction, UIActionSpecification>map(_actions, _function);
Iterable<UIActionDeleteAction> _filter = Iterables.<UIActionDeleteAction>filter(_map, UIActionDeleteAction.class);
int _size = IterableExtensions.size(_filter);
boolean _greaterThan = (_size > 0);
return _greaterThan;
}
use of org.applause.lang.applauseDsl.UIActionDeleteAction in project applause by applause.
the class DefaultListScreenEditActionCompiler method deleteAction.
public UIActionDeleteAction deleteAction(final Screen it) {
ScreenListItemCell _defaultCell = this._defaultListScreenClassExtensions.defaultCell(it);
EList<UIAction> _actions = _defaultCell.getActions();
final Function1<UIAction, UIActionSpecification> _function = new Function1<UIAction, UIActionSpecification>() {
public UIActionSpecification apply(final UIAction it) {
UIActionSpecification _action = it.getAction();
return _action;
}
};
List<UIActionSpecification> _map = ListExtensions.<UIAction, UIActionSpecification>map(_actions, _function);
Iterable<UIActionDeleteAction> _filter = Iterables.<UIActionDeleteAction>filter(_map, UIActionDeleteAction.class);
UIActionDeleteAction _head = IterableExtensions.<UIActionDeleteAction>head(_filter);
return _head;
}
Aggregations