org.solovyev.android.list.SimpleMenuOnClick Maven / Gradle / Ivy
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 extends LabeledMenuItem>> labeledMenuItems, @NotNull T data) {
super(labeledMenuItems);
this.data = data;
}
@NotNull
@Override
protected T getData() {
return this.data;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy