View Javadoc

1   package org.starobjects.wicket.ui.components.welcome;
2   
3   import org.apache.wicket.markup.html.basic.Label;
4   import org.starobjects.wicket.model.models.WelcomeModel;
5   import org.starobjects.wicket.ui.pages.home.HomePage;
6   import org.starobjects.wicket.ui.panels.PanelAbstract;
7   
8   /**
9    * {@link PanelAbstract Panel} displaying welcome message (as used on {@link HomePage}).
10   */
11  public class WelcomePanel extends PanelAbstract<WelcomeModel> {
12  
13  	private static final long serialVersionUID = 1L;
14  
15  	private static final String ID_MESSAGE = "message";
16  
17  	public WelcomePanel(String id, WelcomeModel model) {
18  		super(id, model);
19  		add(new Label(ID_MESSAGE, model.getObject()));
20  	}
21  
22  }