org.solovyev.android.menu.AbstractLabeledMenuItem Maven / Gradle / Ivy
package org.solovyev.android.menu;
import android.content.Context;
import org.jetbrains.annotations.NotNull;
/**
* User: serso
* Date: 8/2/12
* Time: 4:01 PM
*/
public abstract class AbstractLabeledMenuItem implements LabeledMenuItem {
private final int captionResId;
protected AbstractLabeledMenuItem(int captionResId) {
this.captionResId = captionResId;
}
@NotNull
@Override
public String getCaption(@NotNull Context context) {
return context.getString(captionResId);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy