public class Scroller
extends java.lang.Object
implements javax.swing.event.ChangeListener, java.awt.event.FocusListener
Modifier and Type | Field and Description |
---|---|
static int |
DECIMAL_PLACES |
org.trianacode.gui.builder.Scroller.JTextFieldHack |
display
The display used to display the scrollbar's value.
|
static int |
FLOAT |
static int |
INTEGER |
javax.swing.JTextField |
maxValue |
javax.swing.JTextField |
minValue |
javax.swing.JButton |
set |
double |
value
Represents value of the scroller as a double-precision floating-point number.
|
Constructor and Description |
---|
Scroller(int type,
double min,
double max,
double cur)
Creates a Row of widgets
|
Modifier and Type | Method and Description |
---|---|
void |
focusGained(java.awt.event.FocusEvent event) |
void |
focusLost(java.awt.event.FocusEvent event) |
javax.swing.JButton |
getButton() |
javax.swing.JTextField |
getDisplay() |
javax.swing.JSlider |
getScrollbar() |
double |
getValue() |
void |
setValue(double cur)
Set the scrollbar's current value
|
void |
setValues(double min,
double max,
double cur)
Set the scrollbar's minimum, maximum and current values
|
void |
stateChanged(javax.swing.event.ChangeEvent e)
Invoked when the value of the adjustable has changed.
|
public static int DECIMAL_PLACES
public org.trianacode.gui.builder.Scroller.JTextFieldHack display
public javax.swing.JTextField minValue
public javax.swing.JTextField maxValue
public javax.swing.JButton set
public static int INTEGER
public static int FLOAT
public double value
public Scroller(int type, double min, double max, double cur)
public void setValue(double cur)
public void setValues(double min, double max, double cur)
public javax.swing.JTextField getDisplay()
public javax.swing.JSlider getScrollbar()
public javax.swing.JButton getButton()
public double getValue()
public void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged
in interface javax.swing.event.ChangeListener
public void focusGained(java.awt.event.FocusEvent event)
focusGained
in interface java.awt.event.FocusListener
public void focusLost(java.awt.event.FocusEvent event)
focusLost
in interface java.awt.event.FocusListener