
com.marvinlabs.widget.floatinglabel.itempicker.ItemPicker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of android-floatinglabel-widgets Show documentation
Show all versions of android-floatinglabel-widgets Show documentation
A set of input widgets to show a floating label when not empty.
The newest version!
package com.marvinlabs.widget.floatinglabel.itempicker;
/**
* Something that allows the user to pick one or more items. This could be a dialog, ...
*
* Created by Vincent Mimoun-Prat @ MarvinLabs, 28/08/2014.
*
* @param The type of item that can be picked
*/
public interface ItemPicker {
/**
* Get the unique ID for this picker
* @return
*/
public int getPickerId();
/**
* Set the items that are initially selected by the user
*
* @param itemIndices The indices of the selected items
*/
public void setSelectedItems(int[] itemIndices);
/**
* Get the indices of the items currently selected
*
* @return an array of indices within the available items list
*/
public int[] getSelectedIndices();
/**
* Returns true if no item has been picked
*
* @return
*/
public boolean isSelectionEmpty();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy