java.util.Observer翻译

王朝java/jsp·作者佚名  2006-01-09
宽屏版  字体: |||超大  

[/url] [url=file:///F:/资料/文字资料/j2sdk-1_4_2-doc/docs/api/overview-summary.html]Overview

Package

Class

Use

Tree

Deprecated

Index

Help

JavaTM 2 Platform

Std. Ed. v1.4.2

PREV CLASS NEXT CLASS

FRAMES NO FRAMES All Classes

SUMMARY: NESTED | FIELD | CONSTR | METHOD

DETAIL: FIELD | CONSTR | METHOD

java.util

Interface Observerpublic interface ObserverA class can implement the Observer interface when it wants to be informed of changes in observable objects. 如果一个类希望在可观察对象变化时得到通知,它可以实现Observer接口。

Since: JDK1.0 See Also: ObservableMethod Summary

void

update(Observable o, Object arg)

This method is called whenever the observed object is changed. 一旦被观察对象发生变化时调用该方法。

Method Detail

updatepublic void update(Observable o,

Object arg)

This method is called whenever the observed object is changed. An application calls an Observable object's notifyObservers method to have all the object's observers notified of the change. 一旦被观察对象发生变化时调用该方法。应用程序调用Observable对象的notifyObservers 方法,可以就其自身的变化通知所有对象的观察者们。

Parameters: o - the observable object. 可观察对象。 arg - an argument passed to the notifyObservers method. 传递给notifyObservers方法的参数。[/url][url=file:///F:/资料/文字资料/j2sdk-1_4_2-doc/docs/api/overview-summary.html]Overview

Package

Class

Use

Tree

Deprecated

Index

Help

JavaTM 2 Platform

Std. Ed. v1.4.2

PREV CLASS NEXT CLASS

FRAMES NO FRAMES All Classes

SUMMARY: NESTED | FIELD | CONSTR | METHOD

DETAIL: FIELD | CONSTR | METHOD

Submit a bug or feature

For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有