import java.lang.*; import twinfeats.io.*; import twinfeats.conf.core.*; import twinfeats.util.*; public class HandleUserProperties extends java.lang.Object implements twinfeats.io.GenericMessageListener { ClientWin client; ProfileSection section; public HandleUserProperties(Comm comm) { new ReadListener(comm,comm.getName(),ConfBean.USERPROPERTIES,this); } public void message(CommMessageEvent event) { CommMessage msg = event.getCommMessage(); MsgUserProperties body = (MsgUserProperties)msg.getBody(); if (!body.isUpdate()) section = body.getSection(); else { if (section == null) return; else section.setValue(body.getVar().getName(),body.getVar().getValue()); } } public String getValue(String n) { if (section == null) return null; return section.getValue(n); } void setClientWin(ClientWin w) { client = w; } }