|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.option.OptionItem y.option.ObjectOptionItem y.option.IntOptionItem
public class IntOptionItem
An option item for integer values.
Field Summary | |
---|---|
static java.lang.String |
ATTRIBUTE_MAX_VALUE
Attribute key to specify an upper bound for accepted values. |
static java.lang.String |
ATTRIBUTE_MIN_VALUE
Attribute key to specify a lower bound for accepted values. |
static java.lang.String |
ATTRIBUTE_UNSIGNED
Attribute key used to store an editor hint which specifies that values should be displayed without any sign prefix. |
protected boolean |
hasBounds
Subclasses should not access this field, but check for ATTRIBUTE_MIN_VALUE and/or ATTRIBUTE_MAX_VALUE instead. |
protected int |
max
Subclasses should not access this field, but check for ATTRIBUTE_MAX_VALUE instead. |
protected int |
min
Subclasses should not access this field, but check for ATTRIBUTE_MIN_VALUE instead. |
Fields inherited from class y.option.OptionItem |
---|
ATTRIBUTE_CONTEXT, ATTRIBUTE_GROUPS, ATTRIBUTE_LONG_DESCRIPTION, COLOR_UNDEFINED, name, PROPERTY_CLASS_TYPE, PROPERTY_ENABLED, PROPERTY_TIP_TEXT, PROPERTY_VALUE, PROPERTY_VALUE_UNDEFINED, UNDEFINED |
Constructor Summary | |
---|---|
IntOptionItem(java.lang.String name,
int value)
Creates a new instance of IntOptionItem. |
|
IntOptionItem(java.lang.String name,
java.lang.Integer value)
Creates a new instance of IntOptionItem. |
|
IntOptionItem(java.lang.String name,
int value,
int minValue,
int maxValue)
Creates a new instance of IntOptionItem for bounded values. |
Method Summary | |
---|---|
java.lang.String |
getType()
Returns "Int". |
void |
setValue(java.lang.Object value)
Sets the value of this option item. |
Methods inherited from class y.option.ObjectOptionItem |
---|
getBackupValue, getValue, resetValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ATTRIBUTE_MIN_VALUE
Integer
.
public static final java.lang.String ATTRIBUTE_MAX_VALUE
Integer
.
public static final java.lang.String ATTRIBUTE_UNSIGNED
Boolean
.
protected int min
ATTRIBUTE_MIN_VALUE
instead.
protected int max
ATTRIBUTE_MAX_VALUE
instead.
protected boolean hasBounds
ATTRIBUTE_MIN_VALUE
and/or ATTRIBUTE_MAX_VALUE
instead.
Constructor Detail |
---|
public IntOptionItem(java.lang.String name, java.lang.Integer value)
name
- the name of this itemvalue
- the initial integer valuepublic IntOptionItem(java.lang.String name, int value)
name
- the name of this itemvalue
- the initial integer valuepublic IntOptionItem(java.lang.String name, int value, int minValue, int maxValue)
name
- the name of this itemvalue
- the initial integer valueminValue
- the minimal value the integer value can have.maxValue
- the maximal value the integer value can have.Method Detail |
---|
public java.lang.String getType()
getType
in class ObjectOptionItem
public void setValue(java.lang.Object value)
setValue
in class ObjectOptionItem
java.lang.IllegalArgumentException
- if the specified value
is
not of type Integer
OptionItem.publishValue(Object)
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |