client.send(new MessageRequest("/spec " + lfsid));
/*
* Utility function to clear a button from any connection
* or all connections
*/
public void clearButton(byte connid)
{
try
{
ButtonFunctionRequest r = new ButtonFunctionRequest();
r.setSubtype(ButtonSubtype.CLEAR);
r.setConnectionId(connid); // 255 is for all connections
r.setClickId(BTN_ID);
client.send(r);
}
catch (IOException e)
{
lg.writeToLog(e.toString());
}
}
private void BTC_ButtonClicked(Packets.IS_BTC BTC)
{
try
{
switch (BTC.ClickID)
{
case 2:
<delete button 2>
<display new button>
break;
case 3:
<delete button 3>
<display new button>
break;
case 4:
<delete button 4>
<display new button>
break;
case 7: // Close button
<delete all buttons>
break;
}
}
}