| 
 | Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.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_VALUEAttribute key to specify an upper bound for accepted values. | 
| static java.lang.String | ATTRIBUTE_MIN_VALUEAttribute key to specify a lower bound for accepted values. | 
| static java.lang.String | ATTRIBUTE_UNSIGNEDAttribute key used to store an editor hint which specifies that values should be displayed without any sign prefix. | 
| protected  boolean | hasBoundsSubclasses should not access this field, but check for ATTRIBUTE_MIN_VALUEand/orATTRIBUTE_MAX_VALUEinstead. | 
| protected  int | maxSubclasses should not access this field, but check for ATTRIBUTE_MAX_VALUEinstead. | 
| protected  int | minSubclasses should not access this field, but check for ATTRIBUTE_MIN_VALUEinstead. | 
| 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 value
public IntOptionItem(java.lang.String name,
                     int value)
name - the name of this itemvalue - the initial integer value
public 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 ObjectOptionItempublic void setValue(java.lang.Object value)
setValue in class ObjectOptionItemjava.lang.IllegalArgumentException - if the specified value is
         not of type IntegerOptionItem.publishValue(Object)| 
 | © Copyright 2000-2025, yWorks GmbH. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||