nl.coderight.jazz.form.field
Class SliderField

java.lang.Object
  extended by nl.coderight.jazz.form.FormField<Integer>
      extended by nl.coderight.jazz.form.field.SliderField

public class SliderField
extends FormField<Integer>

Implementation of a JSlider.

See Also:
JSlider

Nested Class Summary
static class SliderField.SliderOrientation
           
 
Field Summary
 
Fields inherited from class nl.coderight.jazz.form.FormField
Config
 
Constructor Summary
SliderField()
           
SliderField(String bindID)
           
 
Method Summary
protected  JSlider createField()
           
 int getExtent()
           
protected  JSlider getField()
           
 boolean getInverted()
           
 Hashtable<Integer,JLabel> getLabelTable()
           
 int getMajorTickSpacing()
           
 int getMaximum()
           
 int getMinimum()
           
 int getMinorTickSpacing()
           
 SliderField.SliderOrientation getOrientation()
           
 boolean getPaintLabels()
           
 boolean getPaintTicks()
           
 boolean getPaintTrack()
           
 boolean getSnapToTicks()
           
 Integer getValue()
          Returns field value.
protected  void onChange()
           
 void setExtent(int extend)
           
 void setInverted(boolean inverted)
           
 void setLabelTable(Hashtable<Integer,JLabel> labels)
           
 void setMajorTickSpacing(int majorTickSpacing)
           
 void setMaximum(int max)
           
 void setMinimum(int min)
           
 void setMinorTickSpacing(int minorTickSpacing)
           
 void setOnChangeEvent(Event onChangeEvent)
           
 void setOrientation(SliderField.SliderOrientation orientation)
           
 void setPaintLabels(boolean paintLabels)
           
 void setPaintTicks(boolean paintTicks)
           
 void setPaintTrack(boolean paintTrack)
           
 void setSnapToTicks(boolean snapToTicks)
           
 void setValue(Integer value)
          Sets field value.
 
Methods inherited from class nl.coderight.jazz.form.FormField
dispatchEvent, dispose, focus, focusNextField, focusPreviousField, getBackground, getBindID, getBorder, getComponent, getCursor, getDataBinding, getForeground, getForm, getLabel, getParent, getPreferredSize, getToolTip, hasFocus, isBindable, isChanged, isEnabled, isFocusable, isOpaque, isReadonly, isShowing, isValueChanged, isVisible, onClick, onDoubleClick, onFocusGained, onFocusLost, onMouseEnter, onMouseLeave, onPopup, registerKeyboardAction, setBackground, setBindID, setBorder, setChanged, setComponent, setCursor, setDataBinding, setEnabled, setFocusable, setForeground, setOnFocusGainedEvent, setOnFocusLostEvent, setOpaque, setPopupMenu, setPreferredSize, setReadonly, setToolTip, setVisible, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SliderField

public SliderField()

SliderField

public SliderField(String bindID)
Method Detail

createField

protected JSlider createField()

getField

protected JSlider getField()

getValue

public Integer getValue()
Description copied from class: FormField
Returns field value.

Overrides:
getValue in class FormField<Integer>

setValue

public void setValue(Integer value)
Description copied from class: FormField
Sets field value.

Overrides:
setValue in class FormField<Integer>

getMinimum

public int getMinimum()

setMinimum

public void setMinimum(int min)

getMaximum

public int getMaximum()

setMaximum

public void setMaximum(int max)

getExtent

public int getExtent()

setExtent

public void setExtent(int extend)

getInverted

public boolean getInverted()

setInverted

public void setInverted(boolean inverted)

getLabelTable

public Hashtable<Integer,JLabel> getLabelTable()

setLabelTable

public void setLabelTable(Hashtable<Integer,JLabel> labels)

getPaintLabels

public boolean getPaintLabels()

setPaintLabels

public void setPaintLabels(boolean paintLabels)

getPaintTrack

public boolean getPaintTrack()

setPaintTrack

public void setPaintTrack(boolean paintTrack)

getPaintTicks

public boolean getPaintTicks()

setPaintTicks

public void setPaintTicks(boolean paintTicks)

getSnapToTicks

public boolean getSnapToTicks()

setSnapToTicks

public void setSnapToTicks(boolean snapToTicks)

getMinorTickSpacing

public int getMinorTickSpacing()

setMinorTickSpacing

public void setMinorTickSpacing(int minorTickSpacing)

getMajorTickSpacing

public int getMajorTickSpacing()

setMajorTickSpacing

public void setMajorTickSpacing(int majorTickSpacing)

getOrientation

public SliderField.SliderOrientation getOrientation()

setOrientation

public void setOrientation(SliderField.SliderOrientation orientation)

setOnChangeEvent

public void setOnChangeEvent(Event onChangeEvent)

onChange

protected void onChange()
Overrides:
onChange in class FormField<Integer>


Copyright 2010 CodeRight, All rights reserved.