pl.mbdev.openstage
Class XmlFormItem
java.lang.Object
pl.mbdev.openstage.Xml
pl.mbdev.openstage.XmlFormItem
- Direct Known Subclasses:
- IppButton, IppChoiceGroup, IppDateField, IppGauge, IppImageItem, IppSpacer, IppStringItem, IppTextField
public abstract class XmlFormItem
- extends Xml
Abstract parent of all form items, all of which can be wrapped with IppItem
to
associate command with them. Children of this class are: IppStringItem
,
IppImageItem
, IppSpacer
, IppTextField
, IppChoiceGroup
,
IppDateField
, IppButton
or IppGauge
Copyright 2011 Mateusz Bysiek,
mb@mbdev.pl, http://mbdev.pl/
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
- Author:
- Mateusz Bysiek
Constructor Summary |
XmlFormItem(java.lang.String nodeName)
Default constructor. |
XmlFormItem(java.lang.String nodeName,
java.lang.Object contents)
Creates new node, without sub-nodes but with text contents. |
Method Summary |
void |
add(IppCommand c)
Associates the provided IppCommand with this object, by automatically
wrapping this object with IppItem if it was not wrapped up already, and then
adding the command to the IppItem. |
Methods inherited from class pl.mbdev.openstage.Xml |
add, add, addAndReturn, attributesToXmlString, attributeToXml, firstAttributesToXmlString, getContents, getLogicalRoot, getParent, getSubNode, getSubNodeIndex, getSubNodes, getXmlHeader, isEmpty, logicalAdd, sendTo, setContents, setParent, subObjectsCount, subObjectsToXmlString, toXmlString, wrapWithIppItem |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlFormItem
public XmlFormItem(java.lang.String nodeName)
- Default constructor. Creates new node without sub-nodes, and without any text
contents.
- Parameters:
nodeName
- name of this XML node
XmlFormItem
public XmlFormItem(java.lang.String nodeName,
java.lang.Object contents)
- Creates new node, without sub-nodes but with text contents.
- Parameters:
nodeName
- name of the XML nodecontents
- contents of the XML entity
add
public void add(IppCommand c)
- Associates the provided
IppCommand
with this object, by automatically
wrapping this object with IppItem
if it was not wrapped up already, and then
adding the command to the IppItem.
- Parameters:
c
- command, IppCommand