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

org.solovyev.android.list.SimpleMenuOnClick Maven / Gradle / Ivy

There is a newer version: 1.1.18
Show newest version
package org.solovyev.android.list;

import org.jetbrains.annotations.NotNull;
import org.solovyev.android.menu.LabeledMenuItem;

import java.util.List;

/**
 * User: serso
 * Date: 5/5/12
 * Time: 7:58 PM
 */
// class for types object to be passed on click
public class SimpleMenuOnClick extends MenuOnClick {

    @NotNull
    private final T data;

    public SimpleMenuOnClick(@NotNull List>> labeledMenuItems, @NotNull T data) {
        super(labeledMenuItems);
        this.data = data;
    }

    @NotNull
    @Override
    protected T getData() {
        return this.data;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy