1. Domino UI
  2. Components
  3. Spin
Top Horizontal Vertical Docs

Spin

Spin item

Represents an individual item in a spinning selection component.

Usage:

 
 SpinItem< String>  item = SpinItem.create("example");
 

T

The type of the value represented by this item.

See also :

Horizontal spin

This class represents a horizontal spin select component. It allows users to cycle through a set of items in a horizontal fashion.

Usage:

 
 HSpinSelect< String>  spinSelect = HSpinSelect.create();
 spinSelect.addItem("Item 1");
 spinSelect.addItem("Item 2");
 // Add more items as needed...
 

T

The type of the items in this spin select.

Vertical spin

Represents a vertical spin select component, allowing users to cycle through a set of items in a vertical manner.

Usage:

 
 VSpinSelect< String>  spinSelect = VSpinSelect.create();
 spinSelect.addItem("Item 1");
 spinSelect.addItem("Item 2");
 // Add more items as needed...
 

T

The type of the items in this spin select.

Examples

Horizontal spin Spin item left or right.

Vertical spin Sping items up or down.

API Docs: SpingItem

Constructors

public void SpinItem(T value)
Constructs a new SpinItem with the given value.

value

The value represented by this item.

Static methods

public static SpinItem<T> create(T value)
Static factory method to create a new instance of SpinItem .

T

The type of the value represented by this item.

value

The value to create a SpinItem for.



Returns:

A new instance of SpinItem representing the given value.

Public methods

public T getValue()
Gets the value represented by this item.

Returns:

The value of this item.

public HTMLDivElement element()
Check super implementation documentation.

Overridden to return the HTMLDivElement associated with this SpinItem .

Returns:

The HTMLDivElement for this item.

API Docs: HSpinSelect

Constructors

public void HSpinSelect()
Default constructor that initializes the HSpinSelect with default back and forward icons.
public void HSpinSelect(boolean swipable)
Default constructor that initializes the HSpinSelect with default back and forward icons.
public void HSpinSelect(Icon<?> backIcon, Icon<?> forwardIcon)
Constructor that initializes the HSpinSelect with the provided back and forward icons.

backIcon

the back icon to use

forwardIcon

the forward icon to use

public void HSpinSelect(Icon<?> backIcon, Icon<?> forwardIcon, boolean swipable)
Constructor that initializes the HSpinSelect with the provided back and forward icons.

backIcon

the back icon to use

forwardIcon

the forward icon to use

Static methods

public static HSpinSelect<T> create()
Creates a new HSpinSelect with default back and forward icons.

T

the type of the items



Returns:

a new instance of HSpinSelect

public static HSpinSelect<T> create(boolean swipable)
Creates a new HSpinSelect with default back and forward icons.

T

the type of the items



Returns:

a new instance of HSpinSelect

public static HSpinSelect<T> create(Icon<?> backIcon, Icon<?> forwardIcon)
Creates a new HSpinSelect with the provided back and forward icons.

backIcon

the back icon to use

forwardIcon

the forward icon to use

T

the type of the items



Returns:

a new instance of HSpinSelect

public static HSpinSelect<T> create(Icon<?> backIcon, Icon<?> forwardIcon, boolean swipable)
Creates a new HSpinSelect with the provided back and forward icons.

backIcon

the back icon to use

forwardIcon

the forward icon to use

T

the type of the items



Returns:

a new instance of HSpinSelect

API Docs: VSpinSelect

Constructors

public void VSpinSelect()
Default constructor that initializes the VSpinSelect with default up and down icons.
public void VSpinSelect(Icon<?> upIcon, Icon<?> downIcon)
Constructor that initializes the VSpinSelect with the provided up and down icons.

upIcon

the up icon to use

downIcon

the down icon to use

Static methods

public static VSpinSelect<T> create()
Creates a new VSpinSelect with default up and down icons.

T

the type of the items



Returns:

a new instance of VSpinSelect

public static VSpinSelect<T> create(Icon<?> upIcon, Icon<?> downIcon)
Creates a new VSpinSelect with the provided up and down icons.

upIcon

the up icon to use

downIcon

the down icon to use

T

the type of the items



Returns:

a new instance of VSpinSelect

We are a group of passionate people who love what we do

Donate & Support Us