FIM.Util.WWW.Form
Class SingleSelectionGroup
java.lang.Object
|
+--FIM.Util.WWW.Form.FormElement
|
+--FIM.Util.WWW.Form.ElementGroup
|
+--FIM.Util.WWW.Form.SingleSelectionGroup
- All Implemented Interfaces:
- Element, Serializable
- public class SingleSelectionGroup
- extends ElementGroup
A group of selectable elements, from which at every time only one can be selected.
- Version:
- 1.0, 1.7.2000
- Author:
- Michael Sonntag
- See Also:
- Serialized Form
Methods inherited from class FIM.Util.WWW.Form.FormElement |
getAttributes, getDocument, getElement, getElementCount, getElementIndex, getEndOffset, getLabel, getName, getParentElement, getStartOffset, match, setLabel |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SingleSelectionGroup
public SingleSelectionGroup(HTMLDocument doc,
Element parent,
String name)
- Create a new selection group, within which only one element can be selected at any time.
- Parameters:
doc
- the document this element belongs toparent
- the parent of this elementname
- the name of the group
selectElement
public void selectElement(SelectableElement elem)
- Select an element and deselect all others of the group.
- Parameters:
elem
- the element to select
selectNextElement
public void selectNextElement(SelectableElement elem)
- Select the next element (used when deselecting). All others are deselected.
- Parameters:
elem
- the element, from which the next should be selected
toString
public String toString()
- Returns a string representation of the single selection group.
- Overrides:
toString
in class ElementGroup
- Returns:
- string representation of the form element
Submit a bug
Copyright 2001,2002 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.