Adjacent Files

Project Info

. > timedatepickers > src > main > java > me > jfenn > timedatepickers > views > PickerView.java

setAll

Type: public void

Set up all of the required attributes of the picker at once.

Parameter Name Description
items a two-dimensional array of all the items in the picker
labels an array of the labels to be applied to each row
selectedPositions an array of the selected positions in each row

setAll

Type: public void

Set up all of the required attributes of the picker at once.

Parameter Name Description
items a two-dimensional array of all the items in the picker
labels an array of the labels to be applied to each row
selectedPositions an array of the selected positions in each row
animate whether to animate the switch between attributes

setRow

Type: public void

Set all the attributes for a single row at once.

Parameter Name Description
row the index of the row
items the new items in the row
label the new label of the row
selectedPosition the new selected position of the row

setRow

Type: public void

Set all the attributes for a single row at once.

Parameter Name Description
row the index of the row
items the new items in the row
label the new label of the row
selectedPosition the new selected position of the row
animate whether to animate the switch between rows

setItem

Type: public void

Set the value of a single item.

Parameter Name Description
row the row of the item
col the column of the item
item the (new) item to be set

getItem

Type: public T

Get the current value of an item.

Parameter Name Description
row the row of the item
col the index of the item

Returned Value: the value of the item

setLabel

Type: public void

Set the label of a row.

Parameter Name Description
row the index of the row
label the (new) label to be set

getLabel

Type: public String

Get the current label of a row.

Parameter Name Description
row the index of the row

Returned Value: the current label of the row