Agent System POND 1.0 (1.7.2000)

FIM.Util.WWW.Form
Class SingleSelectionGroup

java.lang.Object
  |
  +--FIM.Util.WWW.Form.FormElement
        |
        +--FIM.Util.WWW.Form.ElementGroup
              |
              +--FIM.Util.WWW.Form.SingleSelectionGroup

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

Fields inherited from class FIM.Util.WWW.Form.ElementGroup
containedElems
 
Fields inherited from class FIM.Util.WWW.Form.FormElement
attributes, children
 
Constructor Summary
SingleSelectionGroup(HTMLDocument doc, Element parent, String name)
          Create a new selection group, within which only one element can be selected at any time.
 
Method Summary
 void selectElement(SelectableElement elem)
          Select an element and deselect all others of the group.
 void selectNextElement(SelectableElement elem)
          Select the next element (used when deselecting).
 String toString()
          Returns a string representation of the single selection group.
 
Methods inherited from class FIM.Util.WWW.Form.ElementGroup
addContainedElement, getContainedElement, getContainedElementCount, getEncoded, isLeaf, reset, selectedCount
 
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
 

Constructor Detail

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 to
parent - the parent of this element
name - the name of the group
Method Detail

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.
Returns:
string representation of the form element
Overrides:
toString in class ElementGroup

Agent System POND 1.0 (1.7.2000)

Submit a bug

Copyright 2000 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.