public class XMLComplexChoice extends XMLChoice
atts, isCollapsed, isReadOnly, isRequired, isVisible, labelName, name, NEWLINE, OFFSET, value| 构造器和说明 |
|---|
XMLComplexChoice(String name,
XMLElement[] choices,
int choosenIndex)
Creates a new instance of element with the specified name, specified
choices for the element, and with chooseIndex'th element choosen.
|
XMLComplexChoice(String name,
XMLElement[] choices,
int choosenIndex,
boolean isComboPanel)
Creates a new instance of element with the specified name, specified
choices for the element, and with chooseIndex'th element choosen,
and with specified panel type (combo or radio).
|
XMLComplexChoice(String name,
XMLElement[] choices,
int choosenIndex,
boolean isComboPanel,
boolean isVertical,
boolean isChoiceVertical,
boolean hasBorder,
boolean hasTitle)
Creates a new instance of element with the specified name, specified
choices for the element, and with chooseIndex'th element choosen,
and with specified all visual attributes.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
clone()
Overrides super-method to apply cloning of
choices field content, if it's content are instances of
XMLElement
class. |
void |
fromXML(String choosenName,
Node node)
Supposed to be used (and overriden) by class that represent XML choice of
complex elements.
|
XMLPanel |
getPanel()
The default panel that represents this class visually is instance of
XMLComboPanel class. |
boolean |
isEmpty()
Indicates if element is empty.
|
void |
toXML(Node parent)
Supposed to be overriden by derived classes to implement element specific
writting to an XML file.
|
getChoices, getChoosen, getChoosenIndex, itemChanged, refreshLabelName, setChoosenIndex, setReadOnly, setValuefromXML, getNode, getPrintDescription, getPrintDescription, isCollapsed, isReadOnly, isRequired, isValid, isValidEnter, isVisible, setCollapsed, setLabelName, setRequired, setVisible, toLabel, toName, toString, toValuepublic XMLComplexChoice(String name, XMLElement[] choices, int choosenIndex)
name - The name of the 'choice' XML element that this class
represents.choices - The possible choices for this element.choosenIndex - The index of element to be choosen right after creation.public XMLComplexChoice(String name, XMLElement[] choices, int choosenIndex, boolean isComboPanel)
name - The name of the 'choice' XML element that this class
represents.choices - The possible choices for this element.choosenIndex - The index of element to be choosen right after creation.isComboPanel - Indicates if the choices are displayed within the combo panel,
or the radio panel.public XMLComplexChoice(String name, XMLElement[] choices, int choosenIndex, boolean isComboPanel, boolean isVertical, boolean isChoiceVertical, boolean hasBorder, boolean hasTitle)
name - The name of the 'choice' XML element that this class
represents.choices - The possible choices for this element.choosenIndex - The index of element to be choosen right after creation.isComboPanel - Indicates if the choices are displayed within the combo panel,
or the radio panel.isVertical - Indicates if label will stand left to the combo panel, or
above it.isChoiceVertical - Indicates if the panel of choosen element will be vertical or
not.hasBorder - Indicates if the panel will have the border around it's area.hasTitle - Indicates if the panel will have the title for it's area.public boolean isEmpty()
isEmpty 在类中 XMLElementpublic void toXML(Node parent) throws DOMException
XMLElementtoXML 在类中 XMLElementparent - indicates how much tabulators to put before element tag.DOMExceptionpublic void fromXML(String choosenName, Node node)
XMLElementfromXML 在类中 XMLElementchoosenName - The element name.node - The content retrieved from XML file, that represents tag for
this element.public XMLPanel getPanel()
XMLChoiceXMLComboPanel class. The panel has
the combo box that is filled with content of choices field.Copyright © 2023 onecode. All rights reserved.