In mobl, user interfaces are defined using screens and controls.
在mobl中,用户界面是用screen和control定义的。
In certain cases, mobl adds syntactic sugar for particular libraries.
在特定的情况下,mobl会为特定的库添加句法的特性。
Instead, they were imported from a mobl library, itself defined in mobl.
相反,它们都是从mobl库导入的,而这个库本身又是使用mobl定义的。
The mobl language has a number of features that aim to increase the productivity of mobile developers.
mobl语言有大量特性,目的都是为了提高移动开发者的生产率。
Transparent data persistence: mobl has language constructs to define data models using entity declarations.
透明的数据持久性:mobl拥有使用实体定义来定义数据模型的语言结构。
mobl can be described as a domain-specific language (DSL), a language aimed at a particular application domain.
我们可以把mobl描述为一种领域特定语言(DSL),也就是一种针对特定应用程序领域的语言。
The first line of this mobl module defines that this is an application module. mobl has three types of modules.
这个mobl模块的第一行定义这是一个application模块。
Rather than building a framework on top of an existing language, mobl started with a clean slate as an external DSL.
mobl没有在已存在的语言基础之上构建框架,而是从头开始,构建了一种外部DSL。
For this purpose, we kept the language relatively small, and added functionality through libraries written in mobl itself.
为了达到这个目的,我们让这门语言尽可能小,并且通过使用mobl本身编写库来增加功能。
Mobl applications do not rely on any particular server-side technology, only handling the client-side aspect of your application.
mobl应用程序不依赖于任何特定的服务端技术,而只会处理应用程序的客户端部分。
In addition to language constructs for defining user interfaces, data models, and application logic, mobl also has constructs for.
除了定义用户界面、数据模型以及应用程序逻辑的语言结构之外,mobl还拥有以下结构。
After creating a new mobl project in Eclipse, we end up with a bare bones mobl project with a single application file, named todo.mobl.
首先我们要在Eclipse中创建一个新的mobl项目,这样会得到mobl项目的基本框架,其中有唯一的应用程序文件,我们把它命名为todo . mobl。
The mobl standard library also provides higher-level controls such as TAB sets, master-detail views, context menus and expandable lists.
mobl的标准库还提供了一些高级的控件,像标签组、主从视图、上下文菜单以及可扩展的列表等等。
This is called reactive programming, and is one of the fundamental mobl features — the user interface reacts to changes in application state.
这被叫做反应性编程(reactive programming),这也是根本的mobl特性之一——用户界面会对应用程序状态的改变做出反应。
Mobl supports two types of annotations: inverse annotations (defining inverse relationships) and searchable (to include the field in full-text searches).
mobl支持两种类型的注解:inverse注解(定义反向的关系)和searchable(在全文搜索中包含字段)。
Thus, mobl is extensible through its library mechanism that allows users to extend the platform without having to extend the language or compiler itself.
这样,mobl就可以通过库机制进行扩展,这让用户可以扩展平台,而不需要扩展语言和编译器本身。
Beside defining controls in libraries, mobl also comes with libraries exposing many HTML5 APIs, including geolocation, 2d drawing using Canvas and WebSockets.
mobl除了能够在库中定义控件之外,它还拥有暴露了大量HTML5API的库,包括集合定位、使用Canvas进行2d绘图以及WebSockets等等。
Static in principle, dynamic when required: the mobl language is statically typed, enabling IDE features such as error highlighting, reference resolving and code completion.
原则上是静态的,在需要的时候可以是动态的:mobl语言是静态类型的语言,支持像错误突出显示、引用解析和代码自动完成等IDE特性。
In addition, mobl integrates into the existing Eclipse IDE and the tooling around it, providing error checking as-you-type, reference resolving, code completion and compile-on-save.
此外,mobl能够集成到现有的EclipseIDE和外围工具中,提供在输入时检测错误、引用解析、代码自动完成和保存时编译等功能。
For instance, for querying, mobl exposes the collection type, which has methods to filter, sort and page the contents of a collection of entity objects. These methods would can be called as follows.
例如,对于查询,mobl暴露了Collection类型,它拥有对实体对象的集合进行过滤、排序和分页的方法。
For instance, for querying, mobl exposes the collection type, which has methods to filter, sort and page the contents of a collection of entity objects. These methods would can be called as follows.
例如,对于查询,mobl暴露了Collection类型,它拥有对实体对象的集合进行过滤、排序和分页的方法。
应用推荐