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

io.robe.admin.dto.MenuItem Maven / Gradle / Ivy

There is a newer version: 0.5.0.0-1039
Show newest version
package io.robe.admin.dto;

import io.robe.admin.hibernate.entity.Menu;

import java.util.LinkedList;
import java.util.List;

public class MenuItem extends Menu {

    private List items = new LinkedList();

    public MenuItem() {

    }

    public MenuItem(String text, String path, String module, int index, String icon) {
        setText(text);
        setPath(path);
        setModule(module);
        setIndex(index);
        setIcon(icon);
    }


    public MenuItem(Menu menu) {
        setOid(menu.getOid());
        setLastUpdated(menu.getLastUpdated());
        setText(menu.getText());
        setPath(menu.getPath());
        setIndex(menu.getIndex());
        setParentOid(menu.getParentOid());
        setIcon(menu.getIcon());
        setModule(menu.getModule());
    }

    public List getItems() {
        return items;
    }

    public void setItems(List items) {
        this.items = items;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy