Package org.applause.lang.applauseDsl

Examples of org.applause.lang.applauseDsl.Screen


  public void isValidScreen(final CharSequence sequence) {
    try {
      final Model model = this._parseHelper.parse(sequence);
      EList<NamedElement> _elements = model.getElements();
      NamedElement _head = IterableExtensions.<NamedElement>head(_elements);
      final Screen screen = ((Screen) _head);
      String _name = screen.getName();
      Assert.assertNotNull(_name);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
  }
View Full Code Here


  public void hasTitle(final CharSequence sequence, final String expectedTitle) {
    try {
      final Model model = this._parseHelper.parse(sequence);
      EList<NamedElement> _elements = model.getElements();
      NamedElement _head = IterableExtensions.<NamedElement>head(_elements);
      final Screen screen = ((Screen) _head);
      String _title = screen.getTitle();
      Assert.assertNotNull(_title);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
  }
View Full Code Here

  public void hasDataSource(final CharSequence sequence) {
    try {
      final Model model = this._parseHelper.parse(sequence);
      EList<NamedElement> _elements = model.getElements();
      Iterable<Screen> _filter = Iterables.<Screen>filter(_elements, Screen.class);
      final Screen screen = IterableExtensions.<Screen>head(_filter);
      DataSourceCall _datasource = screen.getDatasource();
      Assert.assertNotNull(_datasource);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
  }
View Full Code Here

      }
    };
    List<UIActionSpecification> _map = ListExtensions.<UIAction, UIActionSpecification>map(_actions, _function);
    Iterable<UIActionNavigateAction> _filter = Iterables.<UIActionNavigateAction>filter(_map, UIActionNavigateAction.class);
    UIActionNavigateAction _head = IterableExtensions.<UIActionNavigateAction>head(_filter);
    Screen _targetScreen = _head.getTargetScreen();
    return _targetScreen;
  }
View Full Code Here

    Screen _targetScreen = _head.getTargetScreen();
    return _targetScreen;
  }
 
  public Screen screen(final UIAction it) {
    Screen _containerOfType = EcoreUtil2.<Screen>getContainerOfType(it, Screen.class);
    return _containerOfType;
  }
View Full Code Here

    String _entityDataAccessCategoryHeaderFileName = this._dataAccessClassExtensions.entityDataAccessCategoryHeaderFileName(_resourceType);
    _builder.append(_entityDataAccessCategoryHeaderFileName, "");
    _builder.append("\"");
    _builder.newLineIfNotEmpty();
    _builder.append("#import \"");
    Screen _targetNavigationScreen = this._defaultListScreenClassExtensions.targetNavigationScreen(it);
    String _screenHeaderFileName_1 = this._defaultListScreenClassExtensions.screenHeaderFileName(_targetNavigationScreen);
    _builder.append(_screenHeaderFileName_1, "");
    _builder.append("\"");
    _builder.newLineIfNotEmpty();
    _builder.newLine();
View Full Code Here

      final ActionVerb _switchValue = _actionVerb;
      boolean _matched = false;
      if (!_matched) {
        if (Objects.equal(_switchValue,ActionVerb.ADD)) {
          _matched=true;
          Screen _screen = this._defaultListScreenClassExtensions.screen(it);
          CharSequence _compileActionButton_AddItem = this.compileActionButton_AddItem(_screen);
          _switchResult = _compileActionButton_AddItem;
        }
      }
      _xifexpression = _switchResult;
View Full Code Here

      final ActionVerb _switchValue = _actionVerb;
      boolean _matched = false;
      if (!_matched) {
        if (Objects.equal(_switchValue,ActionVerb.ADD)) {
          _matched=true;
          Screen _screen = this._defaultListScreenClassExtensions.screen(it);
          CharSequence _compileActionMethod_AddItem = this.compileActionMethod_AddItem(_screen);
          _switchResult = _compileActionMethod_AddItem;
        }
      }
      if (!_matched) {
        if (Objects.equal(_switchValue,ActionVerb.EDIT)) {
          _matched=true;
          Screen _screen_1 = this._defaultListScreenClassExtensions.screen(it);
          CharSequence _compileActionMethod_EditItem = this.compileActionMethod_EditItem(_screen_1);
          _switchResult = _compileActionMethod_EditItem;
        }
      }
      _xifexpression = _switchResult;
View Full Code Here

    _builder.newLine();
    _builder.append("{");
    _builder.newLine();
    _builder.append("\t");
    _builder.append("[");
    Screen _targetNavigationScreen = this._defaultListScreenClassExtensions.targetNavigationScreen(it);
    String _controllerClassName = this._defaultListScreenClassExtensions.controllerClassName(_targetNavigationScreen);
    _builder.append(_controllerClassName, "  ");
    _builder.append(" presentForAddingNewItemFromParent:self onDone:^(");
    Entity _resourceType = this._defaultListScreenClassExtensions.resourceType(it);
    String _typeName = this._typeExtensions.typeName(_resourceType);
View Full Code Here

    _builder.newLineIfNotEmpty();
    _builder.append("{");
    _builder.newLine();
    _builder.append("\t");
    _builder.append("[");
    Screen _targetNavigationScreen = this._defaultListScreenClassExtensions.targetNavigationScreen(it);
    String _controllerClassName = this._defaultListScreenClassExtensions.controllerClassName(_targetNavigationScreen);
    _builder.append(_controllerClassName, "  ");
    _builder.append(" presentForEditingItem:item fromParent:self onDone:^(");
    Entity _resourceType_1 = this._defaultListScreenClassExtensions.resourceType(it);
    String _typeName_1 = this._typeExtensions.typeName(_resourceType_1);
View Full Code Here

TOP

Related Classes of org.applause.lang.applauseDsl.Screen

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.