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

net.anotheria.asg.generator.view.meta.MetaFunctionElement Maven / Gradle / Ivy

package net.anotheria.asg.generator.view.meta;

/**
 * A view element which represents an action.
 * @author another
 */
public class MetaFunctionElement extends MetaViewElement{
	/**
	 * Functions caption.
	 */
	private String caption;

	/**
	 * Creates a new MetaFunctionElement.
	 * @param aName
	 */
	public MetaFunctionElement(String aName){
		super(aName);
	}
	
	public String getPropertyName(){
		return getName()+"Link";
	}
	

	public String getCaption() {
		return caption == null || caption.length() == 0 ? getName() : caption;
	}

	public void setCaption(String string) {
		caption = string;
	}
	
	@Override public String toString(){
		return "Fun: "+getName();
	}

	@Override public boolean isComparable(){
		return false;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy