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

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

There is a newer version: 4.3.0
Show newest version
package net.anotheria.asg.generator.view.meta;

import java.util.ArrayList;
import java.util.List;

/**
 * The definition of a dialog.
 *
 * @author another
 * @version $Id: $Id
 */
public class MetaDialog {
	/**
	 * Name of the dialog.
	 */
	private String name;
	/**
	 * Title of the dialog.
	 */
	private String title;
	/**
	 * Elements of the dialog.
	 */
	private List elements;
	/**
	 * Link to customization javascript.
	 */
	private String javascript;
	
	/**
	 * Creates a new dialog with the given name.
	 *
	 * @param aName the name of the dialog.
	 */
	public MetaDialog(String aName){
		this.name = aName;
		elements = new ArrayList();
	}

	/**
	 * Adds new dialog element.
	 *
	 * @param element element to add
	 */
	public void addElement(MetaViewElement element){
		elements.add(element);
	}
	
	

	/**
	 * 

Getter for the field elements.

* * @return list of dialog elements */ public List getElements() { return elements; } /** *

Getter for the field name.

* * @return a {@link java.lang.String} object. */ public String getName() { return name; } /** *

Getter for the field title.

* * @return a {@link java.lang.String} object. */ public String getTitle() { return title; } /** *

Setter for the field elements.

* * @param list a {@link java.util.List} object. */ public void setElements(List list) { elements = list; } /** *

Setter for the field name.

* * @param string a {@link java.lang.String} object. */ public void setName(String string) { name = string; } /** *

Setter for the field title.

* * @param string a {@link java.lang.String} object. */ public void setTitle(String string) { title = string; } /** *

Getter for the field javascript.

* * @return a {@link java.lang.String} object. */ public String getJavascript() { return javascript; } /** *

Setter for the field javascript.

* * @param javascript a {@link java.lang.String} object. */ public void setJavascript(String javascript) { this.javascript = javascript; } /** {@inheritDoc} */ @Override public String toString(){ return name+" "+elements; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy