com.threerings.opengl.gui
Class SpinnerLogic

java.lang.Object
  extended by com.threerings.opengl.gui.SpinnerLogic

public class SpinnerLogic
extends Object

Contains the logic for a spinner, allowing the hook-up of any buttons/label.


Constructor Summary
SpinnerLogic(TextComponent label, Button next, Button prev, SpinnerModel model)
          Create the logic of a spinner with other components.
 
Method Summary
 SpinnerModel getModel()
          Get the current model.
 Object getValue()
          Convenience to get the current value of this spinner.
 void setEnabled(boolean enabled)
          Set whether the logic of the spinner should be enabled.
 void setModel(SpinnerModel newModel)
          Set a new model.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpinnerLogic

public SpinnerLogic(TextComponent label,
                    Button next,
                    Button prev,
                    SpinnerModel model)
Create the logic of a spinner with other components.

Method Detail

setModel

public void setModel(SpinnerModel newModel)
Set a new model.


getModel

public SpinnerModel getModel()
Get the current model.


getValue

public Object getValue()
Convenience to get the current value of this spinner.


setEnabled

public void setEnabled(boolean enabled)
Set whether the logic of the spinner should be enabled.



Copyright © 2011. All Rights Reserved.