Home

Company
  Technologies
  Team
  Workflow
 
Services
  Virtual Office
  Fixed Bid
  Portfolio
 
Products
  dhtmlxTree
  dhtmlxGrid
  dhtmlxTreeGrid
  dhtmlxTabbar
  dhtmlxCombo
  dhtmlxVault
  dhtmlxToolbar
  dhtmlxMenu
  AWTX TreeTable
  AWTX JTree
 
F.A.Q.
Download
Contact us
Linear Slider applet

Using this applet you can make range selection of numeric values. You set min and max range limits in <applet> tag, you also can set precision (1, 0.1, ...) and text for the checkbox. You should drag min/max markers with mouse. Current marker position you get from JavaScript code.

Click here to see applet in action.

Visit our download page to get this applet for free.

Questions or comments? Don't hesitate to write us, you are always welcome.
We would like to develop Java applets and applications for you,
just send us your requirements.

Class SliderApplet

public class SliderApplet
extends Applet
implements ItemListener

Applet parameters

<applet width="200" height="60" codebase="." code="SliderApplet.class"
 name="LSlider">

 <param name="TEXT" value="Radius:">
 <param name="MINVALUE" value="10.5">
 <param name="MAXVALUE" value="15.9">
 <param name="PRECISION" value="0.1">

 <param name="CURMIN" value="11.3">
 <param name="CURMAX" value="13.6">

</applet>
TEXT
The slider title to be displayed near the checkbox.
Usually describes the measure of the slider (Temperature, Power, etc.)
MINVALUE
Determines Min limit of the slider scale.
MAXVALUE
Determines Max limit of the slider scale.
PRECISION
Determines the precision of the slider scale, so when you drag a marker its value is being increased with this precision. Example: 1 ; 0.1 ; 0.01 ; 10
CURMIN
Current value of Min-marker.
CURMAX
Current value of Max-marker.

Constructor Index

 o SliderApplet()

Method Index

 o getValue(int)
 o hasData()
 o setDisabled()
 o setValues(double, double)

Constructors

 o SliderApplet
public SliderApplet()

Methods

 o setValues
public void setValues(double v1, double v2)
Sets current values for Min and Max markers.

Parameters:
v1 - new Min-marker value,
v2 - new Max-marker value.
 o setDisabled
public void setDisabled()
Disables the slider, so the checkbox is unchecked and no current values for markers.
To enable the slider back you can check the checkbox or mouse drag any marker.
 o getValue
public String getValue(int index)
Parameters:
index - determines which value to return,
0 means current Min,
1 means current Max.
Returns:
Current value of Min or Max marker.
 o hasData
public boolean hasData()
Returns:
true if the slider is enabled (the checkbox is checked) so the slider has data, false otherwise.



© 1998-2007 Scand LLC. Last updated 03/27/07 RSS