图4显示了装饰器模式的类图。
图像装饰器也可以用来表示横切信息。
Image decorators can also be used to show crosscutting information.
提供自己的Bean、拦截器和装饰器。
Providing its own beans, interceptors and decorators to the container.
装饰器并不局限于单个的装饰物。
InfoQ:装饰器和拦截器的区别是什么?
装饰器上的键盘输入绑定将被忽略。
表示用于呈现装饰器的图面。
获取指定装饰器的任务。
可供装饰器面板用作数据绑定目标的模型。
The model may be used by the adorner panel as a data binding target.
一个装饰器被称为一个包装器而不是一个函数。
A decorator is a wrapper that is called instead of a function.
装饰器模式的优点是可以轻松地同时跟踪库的多个装饰器。
An advantage of the decorator pattern is that you can easily tack on more than one decorator to the base at a time.
清单7. classinitializer装饰器。
装饰器的作用域会被限制在它所装饰的语言特性。
The scope of a decorator is limited to the language feature that it decorates.
UX 黑斯廷是赢单或丢程序到达的装饰器之前很久。
The UX battle is won or lost long before the program reaches the decorators.
描述装饰器的框架,它是设计图面上的特殊标志符号。
Describes the framework for adorners, which are special glyphs on the design surface.
在同一文件中,装饰器不会“泄露”到它后面的其它类。
None of the decorations shown here will "leak" to other classes appearing below it in the file.
对拦截器与装饰器的全局排序,还支持以全局方式实现组件的替换。
Global ordering of interceptors and decorators, as well as global enablement of alternatives.
classinitializer装饰器提供了一个说明性解决方案。
The classinitializer decorator provides a declarative solution.
工具可用的任务集包括此集合以及鼠标当前所在的装饰器上的任务。
The set of tasks available to a tool includes this collection and the tasks on adorners that the mouse is currently over.
相反,在元素上显示字幕的装饰器可能需要与装饰元素相同的转换。
By contrast, an adorner that displays a marquee on an element might require the same transform as the adorned element.
而且,如果此模型已移除,则装饰器层还可使用它自动移除装饰器。
Also, it is used by the adorner layer to automatically remove the adorner if the model is removed.
上述问题的一种干净、漂亮的解决方案可能需要向Python添加类装饰器。
A clean, and non-ugly, solution to the above need might be to add class decorators to Python.
包含指向一些主题的链接,这些主题描述如何创建轨道等自定义装饰器。
Contains links to topics that describe how to create custom adorners, such as rails.
如果执行了捕获,使用的装饰器就是执行捕获时接受命中测试的装饰器。
If a capture has been taken, the adorner used is the adorner that was hit tested when the capture was taken.
下载JUnitPerf:一系列用于测量性能和可伸缩性的JUnit测试装饰器。
Download JUnitPerf: a collection of JUnit test decorators used to measure performance and scalability.
装饰器是一个函数,它将元数据添加到类、类成员(属性、方法)和函数参数。
A decorator is a function that adds metadata to a class, its members (properties, methods) and function arguments.
进入装饰器模式,该模式允许您通过一个优秀整洁的类将此功能添加到AutomobileModel。
Enter the decorator pattern, which allows you to add this functionality onto the AutomobileModel in a nice, clean class.
装饰器模式动态地将责任附加到对象上。若要扩展功能,装饰者提供了比继承更有弹性的替代方案。
Decorator Pattern Attaches additional responsibilities to an object dynamically. Decorators provide a flexible alternative to sub classing for extending functionality.
装饰器模式动态地将责任附加到对象上。若要扩展功能,装饰者提供了比继承更有弹性的替代方案。
Decorator Pattern Attaches additional responsibilities to an object dynamically. Decorators provide a flexible alternative to sub classing for extending functionality.
应用推荐