|
||||||||||
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.IppKey
public class IppKey
Element that allows direct input of the pressed keys values to the remote server.
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 |
IppKey.BufferKeys
Setting of buffering of input of the IppKey element. |
static class |
IppKey.Keypad
Keypad key presses may be ignored or not, while IppKey element is present on
the screen. |
static class |
IppKey.SendKeys
The input from IppKey element may be sent to the remote server or not. |
Field Summary | |
---|---|
private IppKey.BufferKeys |
bufferKeys
Current buffering mode, value from IppKey.BufferKeys . |
private int |
bufferLength
Length of the buffer of characters. |
private boolean |
keypad
If true, the key presses of keypad are handled by the IppKey element. |
private boolean |
sendKeys
Will the keys be sent to the server. |
private java.lang.Character |
termKey
Character, which will terminate the input when it is pressed. |
private java.lang.String |
urlKey
Key from the key-value pair, where the value is the set of digits, or one digit if the buffering is turned off. |
Constructor Summary | |
---|---|
IppKey()
Creates a default IppKey element, which disables |
|
IppKey(boolean keypad,
boolean sendKeys,
IppKey.BufferKeys bufferKeys,
int bufferLength,
java.lang.Character termKey,
java.lang.String urlKey)
Constructs new IppKey element with all parameters available. |
|
IppKey(int bufferLength,
java.lang.Character termKey,
java.lang.String urlKey)
Creates an IppKey element that enables buffered input and has custom key. |
|
IppKey(java.lang.String urlKey)
Creates an IppKey element that enables not buffered input and has custom key. |
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 boolean keypad
private final boolean sendKeys
private final IppKey.BufferKeys bufferKeys
IppKey.BufferKeys
.
private final int bufferLength
private java.lang.Character termKey
private java.lang.String urlKey
Constructor Detail |
---|
public IppKey()
public IppKey(int bufferLength, java.lang.Character termKey, java.lang.String urlKey)
bufferLength
- length of the buffer of characterstermKey
- character, which will terminate the input when it is pressedurlKey
- key from the key-value pair, where the value is the set of digits, default
key is 'digit', if this parameter is nullpublic IppKey(java.lang.String urlKey)
urlKey
- key from the key-value pair, where the value is one digit because the
buffering is turned off; default key is digit, if this parameter is nullpublic IppKey(boolean keypad, boolean sendKeys, IppKey.BufferKeys bufferKeys, int bufferLength, java.lang.Character termKey, java.lang.String urlKey)
keypad
- if true, the key presses of keypad are handled by the IppKey elementsendKeys
- will the keys be sent to the serverbufferKeys
- buffering mode, value from IppKey.BufferKeys
bufferLength
- length of the buffer of characterstermKey
- character, which will terminate the input when it is pressedurlKey
- key from the key-value pair, where the value is the set of digits, or one
digit if the buffering is turned off; default key is digit, if this
parameter is nullMethod 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 |