29 lines
500 B
Java
29 lines
500 B
Java
package controller;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import javafx.scene.layout.FlowPane;
|
|
import model.HeaderMenuItem;
|
|
|
|
public class HeaderMenu{
|
|
|
|
/* Data */
|
|
private ArrayList<HeaderMenuItem> items;
|
|
private FlowPane parent;
|
|
|
|
|
|
/* Constructor */
|
|
public HeaderMenu(FlowPane p_parent){
|
|
this.parent = p_parent;
|
|
this.items = new ArrayList<HeaderMenuItem>();
|
|
}
|
|
|
|
|
|
public void addItem(HeaderMenuItem p_item) {
|
|
this.items.add(p_item);
|
|
// Add to parent
|
|
parent.getChildren().add(p_item);
|
|
}
|
|
|
|
}
|