01: /*
02: #IFNDEF ALT_LICENSE
03: ThinWire(R) RIA Ajax Framework
04: Copyright (C) 2003-2007 Custom Credit Systems
05:
06: This library is free software; you can redistribute it and/or modify it under
07: the terms of the GNU Lesser General Public License as published by the Free
08: Software Foundation; either version 2.1 of the License, or (at your option) any
09: later version.
10:
11: This library is distributed in the hope that it will be useful, but WITHOUT ANY
12: WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13: PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
14:
15: You should have received a copy of the GNU Lesser General Public License along
16: with this library; if not, write to the Free Software Foundation, Inc., 59
17: Temple Place, Suite 330, Boston, MA 02111-1307 USA
18:
19: Users who would rather have a commercial license, warranty or support should
20: contact the following company who invented, built and supports the technology:
21:
22: Custom Credit Systems, Richardson, TX 75081, USA.
23: email: info@thinwire.com ph: +1 (888) 644-6405
24: http://www.thinwire.com
25: #ENDIF
26: [ v1.2_RC2 ]
27: */
28: package thinwire.ui;
29:
30: public interface RangeComponent extends Component {
31: public static final String PROPERTY_LENGTH = "length";
32: public static final String PROPERTY_CURRENT_INDEX = "currentIndex";
33:
34: /**
35: * Retuns the current index
36: * @return the index
37: * @see #setCurrentIndex(int)
38: */
39: public int getCurrentIndex();
40:
41: /**
42: * Sets the current index<br>
43: * <b>Events:</b>
44: * <p>
45: * If the prior values and new values differ, setting this property causes a <code>PropertyChangeEvent</code> ( propertyName = PROPERTY_CURRENT_INDEX ) to be generated.
46: * </p>
47: * @param index the index of the cursor
48: * @see #getCurrentIndex()
49: * @see #PROPERTY_CURRENT_INDEX
50: * @see thinwire.ui.event.PropertyChangeEvent
51: */
52: public void setCurrentIndex(int currentIndex);
53:
54: /**
55: * Returns the length of the range
56: * @return the length of the range
57: * @see #setLength(int)
58: */
59: public int getLength();
60:
61: /**
62: * Sets the length of the range. The length is the total number of increments.<br>
63: * <b>Events:</b>
64: * <p>
65: * If the prior values and new values differ, setting this property causes a <code>PropertyChangeEvent</code> ( propertyName = PROPERTY_LENGTH ) to be generated.
66: * </p>
67: * @param length the number of increments
68: * @see #getLength()
69: * @see #PROPERTY_LENGTH
70: * @see thinwire.ui.event.PropertyChangeEvent
71: */
72: public void setLength(int length);
73: }
|