Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Spinner

mlabuda edited this page Feb 18, 2014 · 6 revisions

API / Abstract

  • Spinner / AbstractSpinner

Implementation(s)

  • DefaultSpinner
  • LabelledSpinner

Usage

DefaultSpinner

Look up a spinner with index 0

Spinner defaultSpinner = new DefaultSpinner(0);

LabeledSpinner

Look up a spinner with label "First spinner:"

Spinner labeledSpinner = new LabeledSpinner("First spinner:");

Shared functionality

Get current value

int value = defaultSpinner.getValue();

Set value

defaultSpinner.setValue(25);
Clone this wiki locally