34 lines
814 B
Java
34 lines
814 B
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.portlets.user.td.openwidget.client.general;
|
|
|
|
import com.google.gwt.user.client.ui.HTML;
|
|
import com.sencha.gxt.widget.core.client.ContentPanel;
|
|
|
|
/**
|
|
* A simple wizard card.
|
|
* @author Federico De Faveri defaveri@isti.cnr.it
|
|
*/
|
|
public class SimpleWizardCard extends WizardCard {
|
|
|
|
/**
|
|
* Create a new simple wizard card.
|
|
* @param title the card title.
|
|
* @param footer the card footer.
|
|
* @param content the card content.
|
|
*/
|
|
public SimpleWizardCard(String title, String footer, String content) {
|
|
super(title, footer);
|
|
|
|
ContentPanel contentPanel = new ContentPanel();
|
|
contentPanel.setHeaderVisible(false);
|
|
HTML htmlContent = new HTML(content);
|
|
htmlContent.setStyleName("wizard-simple-content");
|
|
contentPanel.add(htmlContent);
|
|
|
|
setContent(contentPanel);
|
|
}
|
|
|
|
}
|