JavaFX/model/HeaderMenuItem.java

34 lines
636 B
Java

package model;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
public class HeaderMenuItem{
private final StringProperty name;
private final String image_uri;
/* Constructor
*
* @param p_name<String> The name of the menu item
* @param p_image_uri<String> The URI of the image
*
*/
public HeaderMenuItem(String p_name, String p_image_uri){
this.name = new SimpleStringProperty(p_name);
this.image_uri = p_image_uri;
}
public StringProperty getName(){
return this.name;
}
public String getImageURI(){
return this.image_uri;
}
}