/*
 * Copyright 2006-2020 DLR, Germany
 * 
 * SPDX-License-Identifier: EPL-1.0
 * 
 * https://rcenvironment.de/
 */
 
package de.rcenvironment.core.datamodel.api;

/**
 * 
 * The direction of an endpoint action button.
 *
 * @author Marc Stammerjohann
 */
public enum EndpointActionType {
    /** Add. */
    ADD("Add", "Add..."),
    /** Edit. */
    EDIT("Edit", "Edit..."),
    /** Remove. */
    REMOVE("Remove", "Remove");
    
    /** The title. */
    private final String title;

    private String buttonText;

    /**
     * Instantiates a new type.
     * 
     * @param title the title
     */
    EndpointActionType(final String title, final String buttonText) {
        this.title = title;
        this.buttonText = buttonText;
    }

    /**
     * {@inheritDoc}
     * 
     * @see java.lang.Enum#toString()
     */
    @Override
    public String toString() {
        return title;
    }

    public String getButtonText() {
        return buttonText;
    }

}
