?? contactsentry.java
字號:
/*******************************************************************************
* Copyright (c) 2004, 2005 Jean-Michel Lemieux, Jeff McAffer and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Hyperbola is an RCP application developed for the book
* Eclipse Rich Client Platform -
* Designing, Coding, and Packaging Java Applications
* See http://eclipsercp.org
*
* Contributors:
* Jean-Michel Lemieux and Jeff McAffer - initial implementation
*******************************************************************************/
package org.eclipsercp.hyperbola.model;
public class ContactsEntry extends Contact {
private final String name;
private final String nickname;
private final String server;
private Presence presence;
private final ContactsGroup group;
public ContactsEntry(ContactsGroup group, String name, String nickname,
String server) {
this.group = group;
this.name = name;
this.nickname = nickname;
this.server = server;
this.presence = Presence.INVISIBLE;
}
public Presence getPresence() {
return presence;
}
public void setPresence(Presence presence) {
this.presence = presence;
group.fireContactsChanged(this);
}
public String getName() {
return name;
}
public String getNickname() {
return nickname;
}
public String getServer() {
return server;
}
public ContactsGroup getParent() {
return group;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -