|
||||||||||
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.XmlText
pl.mbdev.openstage.IppTextBox
public class IppTextBox
Multi-line box with editable text, which is similar to IppTextField
, but can be
added directly to IppScreen
and cannot be added to IppForm
. It also has
some minor differences in possible constraints (see IppTextBox.Constraint
and
IppTextField.Constraint
).
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 |
IppTextBox.Constraint
Defines kinds of IppTextBox input. |
static class |
IppTextBox.DefaultValue
Defined possible kinds of default value for IppTextBox objects. |
Nested classes/interfaces inherited from class pl.mbdev.openstage.XmlText |
---|
XmlText.Password, XmlText.Uneditable |
Field Summary | |
---|---|
private IppTextBox.Constraint |
constraint
Value from IppTextBox.Constraint . |
private IppTextBox.DefaultValue |
defaultValue
One of the values from IppTextBox.DefaultValue . |
private java.lang.String |
key
Key from the key-value pair, where value is the content of the editable box. |
private java.lang.String |
title
Title of this IppTextBox, placed in left column. |
private java.lang.String |
url
URL address to which the value from the text box can be sent via SELECT command (see IppCommand and IppCommand.Type ). |
Fields inherited from class pl.mbdev.openstage.XmlText |
---|
text |
Constructor Summary | |
---|---|
IppTextBox(java.lang.String title,
java.lang.String url,
IppTextBox.DefaultValue defaultValue,
java.lang.String key,
boolean isUneditable)
Creates a new text box. |
|
IppTextBox(java.lang.String title,
java.lang.String text,
java.lang.String url,
int maxSize,
IppTextBox.Constraint constraint,
boolean isPassword,
IppTextBox.DefaultValue defaultValue,
java.lang.String key,
boolean isUneditable)
Creates a new text box. |
|
IppTextBox(java.lang.String title,
java.lang.String text,
java.lang.String url,
java.lang.String key)
Creates a new text box. |
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 java.lang.String title
private java.lang.String url
IppCommand
and IppCommand.Type
).
private IppTextBox.Constraint constraint
IppTextBox.Constraint
.
private IppTextBox.DefaultValue defaultValue
IppTextBox.DefaultValue
.
private java.lang.String key
Constructor Detail |
---|
public IppTextBox(java.lang.String title, java.lang.String url, IppTextBox.DefaultValue defaultValue, java.lang.String key, boolean isUneditable)
title
- title of this IppTextBox, placed in left columnurl
- URL address to which the value from the text box can be sent via SELECT
command (see IppCommand
and IppCommand.Type
)defaultValue
- one of the values from IppTextBox.DefaultValue
key
- key from the key-value pair, where value is the content of the editable
boxisUneditable
- field value cannot be edited by the user, if truepublic IppTextBox(java.lang.String title, java.lang.String text, java.lang.String url, java.lang.String key)
title
- title of this IppTextBox, placed in left columntext
- used only when defaultValue is set to TEXTurl
- URL address to which the value from the text box can be sent via SELECT
command (see IppCommand
and IppCommand.Type
)key
- key from the key-value pair, where value is the content of the editable
boxpublic IppTextBox(java.lang.String title, java.lang.String text, java.lang.String url, int maxSize, IppTextBox.Constraint constraint, boolean isPassword, IppTextBox.DefaultValue defaultValue, java.lang.String key, boolean isUneditable)
title
- title of this IppTextBox, placed in left columntext
- used only when defaultValue is set to TEXTurl
- URL address to which the value from the text box can be sent via SELECT
command (see IppCommand
and IppCommand.Type
)maxSize
- maximum length of the input, ignored if negativeconstraint
- value from IppTextBox.Constraint
isPassword
- if true, OpenStage device will treat the value of the box as confidential,
and try to obscure/hide it whenever possibledefaultValue
- one of the values from IppTextBox.DefaultValue
key
- key from the key-value pair, where value is the content of the editable
boxisUneditable
- field value cannot be edited by the user, if trueMethod Detail |
---|
protected java.lang.StringBuffer attributesToXmlString()
Xml
attributesToXmlString
in class XmlText
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |