All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.terapico.caf.viewcomponent.FormActionViewComponent Maven / Gradle / Ivy

The newest version!
package com.terapico.caf.viewcomponent;

/**
 * 表单按钮组件。
 * 

* componentType=form-action *

* * content 按钮显示的文本。 link-to-url 按钮触发的操作对应的URL。 level 可以为: default, info, warning, * error. * * @author clariones * */ public class FormActionViewComponent extends ButtonViewComponent { /** 按钮的级别。 可以为: default, info, warning, error. 默认情况下使用level指定按钮外观,不使用classes。 */ protected String level = "default"; public String getLevel() { return level; } public void setLevel(String level) { this.level = level; } public FormActionViewComponent() { this("#", ""); } public FormActionViewComponent(String actionUrl, String content) { this(actionUrl, content, null); } public FormActionViewComponent(String actionUrl, String content, String level) { this(actionUrl, content, level, null); } public FormActionViewComponent(String actionUrl, String content, String level, String tag) { super(); this.setLinkToUrl(actionUrl); this.setContent(content); this.setTag(tag); if (level != null) { this.setLevel(level); } this.setComponentType("form-action"); } public String getActionUrl() { return this.getLinkToUrl(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy