|
||||||||||
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.IppList
public class IppList
Used to create lists of elements, one or more of which then can be selected, according to the list type.
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 |
IppList.Type
Defines possible types of IppList . |
Field Summary | |
---|---|
private int |
columns
Number of columns of this list. |
private int |
optionsCount
Number of options present in this list. |
private IppList.Type |
type
Type of the list, value from IppList.Type . |
Constructor Summary | |
---|---|
IppList(java.lang.String title,
java.lang.String url,
IppList.Type type,
int columns)
Creates a new, empty IppList. |
|
IppList(java.lang.String title,
java.lang.String url,
IppList.Type type,
int columns,
Option[] options)
Creates a new list with all parameters available to set. |
Method Summary | |
---|---|
void |
add(Option o)
Adds an option to this IppList. |
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 IppList.Type type
IppList.Type
.
private int optionsCount
private int columns
Constructor Detail |
---|
public IppList(java.lang.String title, java.lang.String url, IppList.Type type, int columns)
title
- title of the listurl
- URL, to which the selected data of this list will be sent after it is
submittedtype
- type of the IppList, value from IppList.Type
columns
- integer between 1 and 3public IppList(java.lang.String title, java.lang.String url, IppList.Type type, int columns, Option[] options)
title
- title of the listurl
- URL, to which the selected data of this list will be sent after it is
submittedtype
- type of the IppList, value from IppList.Type
columns
- integer between 1 and 3options
- array that holds list of Option
s to be added to this listMethod Detail |
---|
public void add(Option o)
OptionText
elements inside the
Option
, must be equal to the number of columns of the list.
o
- option, an object of type Option
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 |