|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.richclient.form.binding.swing.SliderBinder
public class SliderBinder
Binder class for integer values that displays a slider. Can use a SliderLabelFactory for custom labels. If a
SliderLabelFactory is not present and the majorTickValue is set, the binding will create it's own labels
based on that value.
| Constructor Summary | |
|---|---|
SliderBinder()
|
|
| Method Summary | |
|---|---|
Binding |
bind(FormModel formModel,
String formPropertyPath,
Map context)
Returns a binding between a form model's property and a control that will be created by this Binder. |
Binding |
bind(JComponent control,
FormModel formModel,
String formPropertyPath,
Map context)
Returns a binding between a form model's property and the provided control. |
void |
setMajorTickSpacing(int maxTickSpacing)
Sets the major tick value of the slider |
void |
setMaxValue(int maxValue)
Sets the maximum value of the slider |
void |
setMinValue(int minValue)
Sets the minimum value of the slider |
void |
setReadOnly(boolean readOnly)
Sets whether the control is readonly |
void |
setSliderLabelFactory(SliderLabelFactory sliderLabelFactory)
Set the factory for the custom labels |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SliderBinder()
| Method Detail |
|---|
public Binding bind(FormModel formModel,
String formPropertyPath,
Map context)
Binder
bind in interface BinderformModel - the form model that this binding is forcontext - additional context that may be used by this binder.
public Binding bind(JComponent control,
FormModel formModel,
String formPropertyPath,
Map context)
Binder
bind in interface Bindercontrol - the visual control that will be bound to the form model's property.formModel - the form model that this binding is forcontext - additional context that may be used by this binder
public void setMaxValue(int maxValue)
public void setMinValue(int minValue)
public void setReadOnly(boolean readOnly)
public void setMajorTickSpacing(int maxTickSpacing)
public void setSliderLabelFactory(SliderLabelFactory sliderLabelFactory)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||