|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.mbdev.openstage.Xml
pl.mbdev.openstage.IppItem
public class IppItem
Used to attach IppCommand
s to single entries of the IppForm
. This is
achieved by adding one or multiple commands, as well as a single form item to the
IppItem, and then adding such IppItem to IppForm
.
You can add commands directly to IppStringItem
, IppImageItem
,
IppTextField
and other items, to which you do cannot normally add them, and
they will be automatically wrapped in IppItem
.
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.
Field Summary | |
---|---|
private int |
commandCount
Number of commands (see IppCommand ) present in this IppItem. |
private boolean |
hasItem
True if this IppItem already has an attached item. |
Constructor Summary | |
---|---|
IppItem()
Constructs new, empty IppItem. |
Method Summary | |
---|---|
void |
add(IppButton b)
Attaches the provided IppButton to this IppItem. |
void |
add(IppChoiceGroup cg)
Attaches the provided IppChoiceGroup to this IppItem. |
void |
add(IppCommand c)
Adds IppCommand to this IppItem. |
void |
add(IppDateField d)
Attaches the provided IppDateField to this IppItem. |
void |
add(IppGauge g)
Attaches the provided IppGauge to this IppItem. |
void |
add(IppImageItem ii)
Attaches the provided IppImageItem to this IppItem. |
void |
add(IppSpacer s)
Attaches the provided IppSpacer to this IppItem. |
void |
add(IppStringItem si)
Attaches the provided IppStringItem to this IppItem. |
void |
add(IppTextField t)
Attaches the provided IppTextField to this IppItem. |
protected Xml |
add(Xml o)
Adds the provided XML object to sub-objects of this object, and returns it. |
protected java.lang.StringBuffer |
attributesToXmlString()
Should be overridden by classes that have some attributes. |
Methods inherited from class pl.mbdev.openstage.Xml |
---|
add, addAndReturn, 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 |
Field Detail |
---|
private boolean hasItem
private int commandCount
IppCommand
) present in this IppItem.
Constructor Detail |
---|
public IppItem()
Method Detail |
---|
public void add(IppStringItem si)
si
- string item, IppStringItempublic void add(IppImageItem ii)
IppImageItem
to this IppItem.
ii
- image item IppImageItempublic void add(IppSpacer s)
s
- spacer, IppSpacerpublic void add(IppTextField t)
t
- text field, IppTextFieldpublic void add(IppChoiceGroup cg)
cg
- choice group, IppChoiceGrouppublic void add(IppDateField d)
d
- date field, IppDateFieldpublic void add(IppButton b)
b
- button, IppButtonpublic void add(IppGauge g)
g
- gauge, IppGaugeprotected Xml add(Xml o)
Xml
add
in class Xml
o
- any kind of XML object from OpenStage SDK
public void add(IppCommand c)
c
- commandprotected java.lang.StringBuffer attributesToXmlString()
Xml
attributesToXmlString
in class Xml
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |