}*/
//TODO: valutare la possibilit� di mettere i bottoni come offlinemenu
ButtonActionListener action = new ButtonActionListener();
for (int k=0; k<Contents.rosterChoices.length; k++) {
Button b = new Button(Contents.rosterChoices[k]);
b.getStyle().setBgTransparency(100);
b.getStyle().setBorder(Border.createEmpty());
b.addActionListener(action);
conv_list.addComponent(b);
}
if (Presence.getPresence("unsubscribed").equals(currentjid.getPresence())){
Button b = new Button(Contents.online_choices[1]);
b.getStyle().setBgTransparency(100);
b.getStyle().setBorder(Border.createEmpty());
b.addActionListener(action);
conv_list.addComponent(b);
//conv_list.append(Contents.online_choices[1], null);//try to subscribe
//conv_list.setFont(conv_list.size() - 1, Font.getFont(font.getFace(), Font.STYLE_BOLD, font.getSize()));
}
else if (Presence.getPresence("unavailable").equals(currentjid.getPresence())) {
//wake-up with SMS
Button b = new Button(Contents.online_choices[2]);
b.getStyle().setBgTransparency(100);
b.getStyle().setBorder(Border.createEmpty());
b.addActionListener(action);
conv_list.addComponent(b);
}
//res.append(conv_list);
//res.append(new util.CustomSpacer(res.getWidth(), res.getHeight()));