java classname.this means 意思是

[下载]php java javascript 相关 api 手册的下载

可以参照一下:http://72.5.124.102/thread.jspa?messageID=10032401

public class ButtonTabComponent extends JPanel {
...
public ButtonTabComponent(final JTabbedPane pane) {
...
int i = pane.indexOfTabComponent(ButtonTabComponent.this);
...
}
...
}

It's a reference to the ButtonTabComponent instance. It's identical to only using this in this case. It's normally only used within nested / inner classes that wants to get a reference to the outer class. 就是说,classname.this表示引用一个classname的实例,通常在nested、inner类里面使用,以达到引用其outer类的目的




Tags:
评论: 0 | 引用: 0 | 查看次数: 319
发表评论
你没有权限发表评论!请先注册再评论:点击注册