|
||||||||||
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.IppHidden
public class IppHidden
Can store key-value pairs that are sent to the server when an IppCommand
of
type IppCommand.Type.SELECT
is used. Hidden fields are invisible for an
OpenStage user. They belong to IppScreen
object, therefore must be added
directly to a screen.
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.
Nested Class Summary | |
---|---|
static class |
IppHidden.Type
Defines possible types of values. |
Field Summary | |
---|---|
private java.lang.String |
key
Key from the key-value pair. |
private IppHidden.Type |
type
Value from IppHidden.Type . |
Constructor Summary | |
---|---|
IppHidden(IppHidden.Type type)
Creates hidden field with default 'Key' and 'Value', for type PHONENUMBER or IPADDRESS. |
|
IppHidden(IppHidden.Type type,
java.lang.String key)
Constructs new hidden field without custom value, but with custom key for phone number or ip address. |
|
IppHidden(IppHidden.Type type,
java.lang.String key,
java.lang.String value)
Constructs fully customisable hidden field. |
Method Summary | |
---|---|
protected java.lang.StringBuffer |
attributesToXmlString()
Should be overridden by classes that have some attributes. |
Methods inherited from class pl.mbdev.openstage.Xml |
---|
add, 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 final IppHidden.Type type
IppHidden.Type
.
private final java.lang.String key
Constructor Detail |
---|
IppHidden(IppHidden.Type type)
type
- any value from IppHidden.Type
, but not VALUEpublic IppHidden(IppHidden.Type type, java.lang.String key)
type
- any value from IppHidden.Type
, but not VALUEkey
- key from key-value pairpublic IppHidden(IppHidden.Type type, java.lang.String key, java.lang.String value)
type
- any value from IppHidden.Type
key
- key from key-value pairvalue
- custom (hidden) value, used only when type is set to
IppHidden.Type.VALUE
Method Detail |
---|
protected 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 |