Agent System POND 1.2 (28.2.2002)

FIM.Util.WWW.Form
Class InputRadioElement

java.lang.Object
  |
  +--FIM.Util.WWW.Form.FormElement
        |
        +--FIM.Util.WWW.Form.SelectableElement
              |
              +--FIM.Util.WWW.Form.InputRadioElement
All Implemented Interfaces:
Element, Serializable

public class InputRadioElement
extends SelectableElement

Class for the HTML element INPUT with subtype RADIO.

Version:
1.0, 1.7.2000
Author:
Michael Sonntag
See Also:
Serialized Form

Fields inherited from class FIM.Util.WWW.Form.SelectableElement
selected
 
Fields inherited from class FIM.Util.WWW.Form.FormElement
attributes, children
 
Constructor Summary
InputRadioElement(HTMLDocument doc, Element parent, SingleSelectionGroup group, int startOffs, int endOffs, String name, String value, boolean initiallySelected)
          Creates a new INPUT/RADIO element (Radiobutton).
 
Method Summary
 void deselect()
          Radiobuttons can only be deselected by selecting another one.
 void select()
          Sets the state of this element to selected.
 String toString()
          Returns a string representation of the input radio element.
 
Methods inherited from class FIM.Util.WWW.Form.SelectableElement
getEncoded, getGroup, getValue, isSelected, match, reset, setSelected
 
Methods inherited from class FIM.Util.WWW.Form.FormElement
getAttributes, getDocument, getElement, getElementCount, getElementIndex, getEndOffset, getLabel, getName, getParentElement, getStartOffset, isLeaf, setLabel
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InputRadioElement

public InputRadioElement(HTMLDocument doc,
                         Element parent,
                         SingleSelectionGroup group,
                         int startOffs,
                         int endOffs,
                         String name,
                         String value,
                         boolean initiallySelected)
Creates a new INPUT/RADIO element (Radiobutton).
Parameters:
doc - the document this element belongs to
parent - the parent of this element
group - the group this element belongs to. Must be of class SingleSelectionGroup.
startOffs - start offset of the element in the document
endOffs - end offset of the element in the document
name - the name of the element
value - the value of the element
initiallySelected - if true, this element is selected at the beginning
Method Detail

select

public void select()
Sets the state of this element to selected. All other selected elements of the same group are deselected.
Overrides:
select in class SelectableElement

deselect

public void deselect()
Radiobuttons can only be deselected by selecting another one. So the next button (modulo) is selected instead.
Overrides:
deselect in class SelectableElement

toString

public String toString()
Returns a string representation of the input radio element.
Overrides:
toString in class SelectableElement
Returns:
string representation of the form element

Agent System POND 1.2 (28.2.2002)

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.