thinwire.ui
Interface RangeComponent

All Superinterfaces:
Component
All Known Implementing Classes:
ProgressBar, Slider

public interface RangeComponent
extends Component


Field Summary
static java.lang.String PROPERTY_CURRENT_INDEX
           
static java.lang.String PROPERTY_LENGTH
           
 
Fields inherited from interface thinwire.ui.Component
ACTION_CLICK, ACTION_DOUBLE_CLICK, PROPERTY_ENABLED, PROPERTY_FOCUS, PROPERTY_FOCUS_CAPABLE, PROPERTY_HEIGHT, PROPERTY_LIMIT, PROPERTY_USER_OBJECT, PROPERTY_VISIBLE, PROPERTY_WIDTH, PROPERTY_X, PROPERTY_Y
 
Method Summary
 int getCurrentIndex()
          Retuns the current index
 int getLength()
          Returns the length of the range
 void setCurrentIndex(int currentIndex)
          Sets the current index
Events:
 void setLength(int length)
          Sets the length of the range.
 
Methods inherited from interface thinwire.ui.Component
addActionListener, addActionListener, addDropListener, addDropListener, addKeyPressListener, addKeyPressListener, addPropertyChangeListener, addPropertyChangeListener, fireAction, fireAction, fireAction, fireDrop, fireDrop, fireDrop, fireKeyPress, fireKeyPress, getContainer, getHeight, getLabel, getLimit, getParent, getStyle, getUserObject, getWidth, getX, getY, isEnabled, isFocus, isFocusCapable, isVisible, removeActionListener, removeDropListener, removeKeyPressListener, removePropertyChangeListener, setBounds, setEnabled, setFocus, setFocusCapable, setHeight, setLimit, setPosition, setSize, setUserObject, setVisible, setWidth, setX, setY
 

Field Detail

PROPERTY_LENGTH

static final java.lang.String PROPERTY_LENGTH
See Also:
Constant Field Values

PROPERTY_CURRENT_INDEX

static final java.lang.String PROPERTY_CURRENT_INDEX
See Also:
Constant Field Values
Method Detail

getCurrentIndex

int getCurrentIndex()
Retuns the current index

Returns:
the index
See Also:
setCurrentIndex(int)

setCurrentIndex

void setCurrentIndex(int currentIndex)
Sets the current index
Events:

If the prior values and new values differ, setting this property causes a PropertyChangeEvent ( propertyName = PROPERTY_CURRENT_INDEX ) to be generated.

Parameters:
index - the index of the cursor
See Also:
getCurrentIndex(), PROPERTY_CURRENT_INDEX, PropertyChangeEvent

getLength

int getLength()
Returns the length of the range

Returns:
the length of the range
See Also:
setLength(int)

setLength

void setLength(int length)
Sets the length of the range. The length is the total number of increments.
Events:

If the prior values and new values differ, setting this property causes a PropertyChangeEvent ( propertyName = PROPERTY_LENGTH ) to be generated.

Parameters:
length - the number of increments
See Also:
getLength(), PROPERTY_LENGTH, PropertyChangeEvent


ThinWire® is a registered of Custom Credit Systems  Copyright © 2007 All rights reserved.
ThinWire_is_Open_Source_under_the_terms_of_the_LGPLv2.1 SourceForge.net_Project_Page java.net_Member Support_ThinWire,_Digg_our_Story