de.lessvoid.nifty.controls
Interface ImageSelect

All Superinterfaces:
NiftyControl
All Known Implementing Classes:
ImageSelectControl

public interface ImageSelect
extends NiftyControl

The ImageSelect control allows the selection of an image from a predefined set of images.

Author:
void

Method Summary
 void addImage(NiftyImage image)
          Add another image to the possible selection.
 void backClick()
          Select the previous image (if possible).
 void forwardClick()
          Select the next image (if possible).
 int getSelectedImageIndex()
          Get the current selected image index.
 void setSelectedImageIndex(int imageIndex)
          Set the current image index which will select this image.
 
Methods inherited from interface de.lessvoid.nifty.controls.NiftyControl
disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth
 

Method Detail

backClick

void backClick()
Select the previous image (if possible).


forwardClick

void forwardClick()
Select the next image (if possible).


addImage

void addImage(NiftyImage image)
Add another image to the possible selection.

Parameters:
image - the image

getSelectedImageIndex

int getSelectedImageIndex()
Get the current selected image index.

Returns:
image index

setSelectedImageIndex

void setSelectedImageIndex(int imageIndex)
Set the current image index which will select this image. If the imageIndex is not valid nothing is changed.

Parameters:
imageIndex - image index


Copyright © 2011. All Rights Reserved.