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

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

package com.terapico.caf.viewcomponent;

/**
 * 字体图标组件。
 * 

* componentType=font-icon *

* * 这个目前只有4个level *
    *
  • default
  • *
  • info
  • *
  • warning
  • *
  • error
  • *
* 它的content是图标的名称。 * 目前图标名称是用的font-awsome的名字。 是否合适?待定! * @author clariones type="font-icon" */ public class FontIconViewComponent extends BaseViewComponent { protected String level = "default"; public FontIconViewComponent() { this("info-circle", "default"); } public FontIconViewComponent(String iconName) { this(iconName, "default"); } public FontIconViewComponent(String iconName, String level) { super(); this.setComponentType("font-icon"); this.setContent(iconName); } public String getLevel() { return level; } public void setLevel(String level) { this.level = level; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy