📄 shellregistry.java
字号:
/**
* 添加一个资料窗口
*
* @param f
* 好友model
* @param uis
* 资料窗口
*/
public void addUserInfoWindow(User f, UserInfoWindow uis) {
uiwMap.put(f.qq, uis);
}
/**
* 删除一个资料窗口
*
* @param f
* 好友model
* @return
* 好友资料窗口
*/
public UserInfoWindow removeUserInfoWindow(User f) {
return uiwMap.remove(f.qq);
}
/**
* 移除一个群资料窗口
*
* @param c
* 群model
* @return
* 群资料窗口
*/
public ClusterInfoWindow removeClusterInfoWindow(Cluster c) {
return ciwMap.remove(c.clusterId);
}
/**
* 检查是否有群资料窗口打开
*
* @param c
* 群model
* @return
* true表示好友f有一个查看消息窗口处于打开状态
*/
public boolean hasClusterInfoWindow(Cluster c) {
return ciwMap.containsKey(c.clusterId);
}
/**
* @param c
* 群model
* @return
* 群资料窗口
*/
public ClusterInfoWindow getClusterInfoWindow(Cluster c) {
return ciwMap.get(c.clusterId);
}
/**
* 注册群资料窗口
*
* @param c
* 群model
* @param cis
* 群资料窗口
*/
public void addClusterInfoWindow(Cluster c, ClusterInfoWindow cis) {
ciwMap.put(c.clusterId, cis);
}
/**
* 移除一个群发送消息窗口项
*
* @param c
* 群model
* @return
* 群发送消息窗口
*/
public SendClusterIMWindow removeSendClusterIMWindow(Cluster c) {
return scimwMap.remove(c.clusterId);
}
/**
* @return
* 当前打开的群信息窗口model遍历器
*/
public Iterator<Integer> getSendClusterIMWindowModelIterator() {
return scimwMap.keySet().iterator();
}
/**
* 检查是否有群发送消息窗口打开
*
* @param c
* 群model
* @return
* true表示群c有一个群发送消息窗口处于打开状态
*/
public boolean hasSendClusterIMWindow(Cluster c) {
return scimwMap.containsKey(c.clusterId);
}
/**
* @param c
* 群model
* @return
* 群发送消息窗口
*/
public SendClusterIMWindow getSendClusterIMWindow(Cluster c) {
return scimwMap.get(c.clusterId);
}
/**
* 注册群发送消息窗口
*
* @param c
* 群model
* @param scimw
* 群发送消息窗口
*/
public void addSendClusterIMWindow(Cluster c, SendClusterIMWindow scimw) {
scimwMap.put(c.clusterId, scimw);
}
/**
* 关闭所有群聊天窗口
*/
public void clearAllSendClusterIMWindow() {
Map<Integer, SendClusterIMWindow> temp = new HashMap<Integer, SendClusterIMWindow>(scimwMap);
for(SendClusterIMWindow window : temp.values())
window.closeWindow();
}
/**
* @return
* true表示系统消息列表窗口当前已经打开
*/
public boolean isSystemMessageListWindowOpened() {
return systemMessageListShell != null;
}
/**
* 注册系统消息列表窗口
*
* @param smls
* 系统消息列表窗口对象
*/
public void registerSystemMessageListWindow(SystemMessageListWindow smls) {
this.systemMessageListShell = smls;
}
/**
* 注销系统消息列表窗口
*/
public void deregisterSystemMessageListWindow() {
this.systemMessageListShell = null;
}
/**
* 注册消息发送标签页窗口
*
* @param sitw
* SendIMTabWindow对象
*/
public void registerSendIMTabWindow(SendIMTabWindow sitw) {
this.imTabWindow = sitw;
}
/**
* 注销消息发送标签页窗口
*/
public void deregisterSendIMTabWindow() {
this.imTabWindow = null;
}
/**
* @return
* 得到消息发送标签页窗口
*/
public SendIMTabWindow getSendIMTabWindow() {
return imTabWindow;
}
/**
* @return
* true表示消息发送标签页窗口是打开的
*/
public boolean isSendIMTabWindowOpened() {
return imTabWindow != null;
}
/**
* @return
* 系统消息列表窗口
*/
public SystemMessageListWindow getSystemMessageListWindow() {
return systemMessageListShell;
}
/**
* @return
* true表示搜索窗口当前已经打开
*/
public boolean isSearchWizardOpened() {
return searchWizard != null;
}
/**
* 注册搜索窗口
*
* @param ss
* 搜索窗口对象
*/
public void registerSearchWizard(WizardWindow ss) {
this.searchWizard = ss;
}
/**
* 注销搜索窗口
*/
public void deregisterSearchWizard() {
this.searchWizard = null;
}
/**
* @return
* 搜索窗口
*/
public WizardWindow getSearchWizard() {
return searchWizard;
}
/**
* @return
* true表示创建群窗口当前已经打开
*/
public boolean isClusterWizardOpened() {
return clusterWizard != null;
}
/**
* 注册创建群窗口
*
* @param wizard
* 创建群窗口对象
*/
public void registerClusterWizard(WizardWindow wizard) {
this.clusterWizard = wizard;
}
/**
* 注销创建群窗口
*/
public void deregisterClusterWizard() {
this.clusterWizard = null;
}
/**
* @return
* 创建群窗口
*/
public WizardWindow getClusterWizard() {
return clusterWizard;
}
/**
* @return
* true表示系统设置窗口当前已经打开
*/
public boolean isSystemOptionWindowOpened() {
return systemOptionWindow != null;
}
/**
* 注册系统设置窗口
*
* @param sos
* 系统设置窗口对象
*/
public void registerSystemOptionWindow(SystemOptionWindow sos) {
this.systemOptionWindow = sos;
}
/**
* 注销系统设置窗口
*/
public void deregisterSystemOptionWindow() {
this.systemOptionWindow = null;
}
/**
* @return
* 系统设置窗口
*/
public SystemOptionWindow getSystemOptionWindow() {
return systemOptionWindow;
}
/**
* @return
* true表示检测更新窗口当前已经打开
*/
public boolean isCheckUpdateShellOpened() {
return checkUpdateShell != null;
}
/**
* 注册检测更新窗口
*
* @param cus
* 检测更新窗口对象
*/
public void registerCheckUpdateShell(CheckUpdateShell cus) {
this.checkUpdateShell = cus;
}
/**
* 注销检测更新窗口
*/
public void deregisterCheckUpdateShell() {
this.checkUpdateShell = null;
}
/**
* @return
* 检测更新窗口
*/
public CheckUpdateShell getCheckUpdateShell() {
return checkUpdateShell;
}
/**
* @return
* 表情管理窗口
*/
public FaceWindow getFaceWindow() {
return faceWindow;
}
/**
* @return
* true表示表情管理窗口已经打开
*/
public boolean isFaceWindowOpened() {
return faceWindow != null;
}
/**
* 注册表情管理窗口
*
* @param fw
*/
public void registerFaceWindow(FaceWindow fw) {
this.faceWindow = fw;
}
/**
* 注销表情管理窗口
*/
public void deregisterFaceWindow() {
this.faceWindow = null;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -