List of usage examples for com.vaadin.ui Panel setId
@Override public void setId(String id)
From source file:com.squadd.chat.DialogController.java
public void updateChatLog(Integer amount) { ArrayList mess = getLastMessagesFromDB(amount); if (mess.size() > 0) { Panel add = new Panel("add 50 messages"); add.setId("add"); add.addClickListener(more);/*from www .ja v a 2 s .c o m*/ content.addComponent(add); for (int i = mess.size(); i > 0; i--) { print((ChatMessage) mess.get(mess.size() - i)); } } }
From source file:com.squadd.chat.UserInfoFace.java
public Panel getUserPanel() { Panel contactPanel = new Panel(); FormLayout contactLine = new FormLayout(); contactPanel.addClickListener(upd);//from w ww .j a v a2s . c o m Label nameLabel = new Label(user.getName()); nameLabel.setStyleName("userPanel"); contactLine.addComponent(nameLabel); contactPanel.setContent(contactLine); contactPanel.setId(user.getId().toString()); return contactPanel; //contactsContent.addComponent(look); //contactsPanel.setContent(contactsContent); }
From source file:com.squadd.chat.UserInfoFace.java
public Panel getUserPanel(Integer userId) { Panel contactPanel = new Panel(); FormLayout contactLine = new FormLayout(); user = new UserInfoBean(); user.setId(userId);// ww w . j a v a2s .c o m user.setName("id" + userId); contactPanel.addClickListener(upd); Label nameLabel = new Label(user.getName()); nameLabel.setStyleName("userPanel"); contactLine.addComponent(nameLabel); contactPanel.setContent(contactLine); contactPanel.setId(userId.toString()); return contactPanel; //contactsContent.addComponent(look); //contactsPanel.setContent(contactsContent); }
From source file:net.sourceforge.javydreamercsw.validation.manager.web.template.TemplateScreenProvider.java
License:Apache License
@Override public Component getContent() { Panel p = new Panel(); hs.setSplitPosition(30, Sizeable.Unit.PERCENTAGE); hs.setFirstComponent(getLeftComponent()); hs.setSecondComponent(getRightComponent()); hs.setSizeFull();//from w w w . j av a 2 s . c o m p.setContent(hs); p.setId(getComponentCaption()); return p; }