- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
谁能告诉我validateProperties()
和 invalidateProperties()
有什么区别?
最佳答案
Marks a component so that its commitProperties() method gets called during a later screen update.
Invalidation is a useful mechanism for eliminating duplicate work by delaying processing of changes to a component until a later screen update. For example, if you want to change the text color and size, it would be wasteful to update the color immediately after you change it and then update the size when it gets set. It is more efficient to change both properties and then render the text with its new size and color once.
Invalidation methods rarely get called. In general, setting a property on a component automatically calls the appropriate invalidation method.
Used by layout logic to validate the properties of a component by calling the commitProperties() method. In general, subclassers should override the commitProperties() method and not this method.
本质上,validate 直接调用 commitProperties,而 invalidate 等待下一帧执行。始终使用无效。
关于apache-flex - validateProperties() 和 invalidateProperties() 之间的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7185594/
谁能告诉我validateProperties() 和 invalidateProperties() 有什么区别? 最佳答案 invalidateProperties : Marks a compon
本文整理了Java中net.fortuna.ical4j.model.component.XComponent.validateProperties()方法的一些代码示例,展示了XComponent.
我是一名优秀的程序员,十分优秀!