public class PortEntryContentProvider extends BasicVizEntryContentProvider
PortEntry
s. Some
notes about its behavior:
setRange(int, int)
.setDefaultValue(int)
.AllowedValueType
is strictly Continuous
.Modifier and Type | Field and Description |
---|---|
static int |
MAX_PORT
The maximum allowed port.
|
static int |
MIN_PORT
The minimum allowed port.
|
static int |
MIN_PORT_PREFERRED
The preferred minimum port.
|
iComponentListener
Constructor and Description |
---|
PortEntryContentProvider()
The default constructor.
|
PortEntryContentProvider(PortEntryContentProvider provider)
A copy constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
This operation provides a deep copy of the BasicEntryContentProvider.
|
boolean |
equals(java.lang.Object object)
(non-Javadoc)
|
int |
hashCode()
Returns the hashCode.
|
void |
setAllowedValues(java.util.ArrayList<java.lang.String> allowedValues)
If possible, converts the new allowed value list into the min and max
ports, then redirects to
setRange(int, int) . |
void |
setAllowedValueType(VizAllowedValueType allowedValueType)
Does nothing.
|
void |
setDefaultValue(int defaultValue)
Sets the default port to the specified value.
|
void |
setDefaultValue(java.lang.String defaultValue)
Sets the default port for managed
PortEntry s. |
boolean |
setRange(int min,
int max)
Sets the range of allowed ports.
|
copy, getAllowedValues, getAllowedValueType, getDefaultValue, getParent, getTag, setParent, setTag
copy, getDescription, getId, getName, register, setDescription, setId, setName, unregister, update
public static final int MIN_PORT
public static final int MIN_PORT_PREFERRED
public static final int MAX_PORT
public PortEntryContentProvider()
public PortEntryContentProvider(PortEntryContentProvider provider)
provider
- The other PortEntryContentProvider to copy.public java.lang.Object clone()
BasicVizEntryContentProvider
This operation provides a deep copy of the BasicEntryContentProvider.
clone
in interface IVizEntryContentProvider
clone
in interface IVizObject
clone
in class BasicVizEntryContentProvider
A clone of the BasicEntryContentProvider.
public boolean equals(java.lang.Object object)
IVizObject
equals
in interface IVizEntryContentProvider
equals
in interface IVizObject
equals
in class BasicVizEntryContentProvider
object
- The other provider to compare against.
Identifiable#equals(Object otherObject)
public int hashCode()
BasicVizEntryContentProvider
Returns the hashCode.
hashCode
in interface IVizEntryContentProvider
hashCode
in interface IVizObject
hashCode
in class BasicVizEntryContentProvider
The hash.
Identifiable#hashCode()
public void setAllowedValues(java.util.ArrayList<java.lang.String> allowedValues)
setRange(int, int)
. Note that the
incoming list is also rejected if it does not have exactly two elements.setAllowedValues
in interface IVizEntryContentProvider
setAllowedValues
in class BasicVizEntryContentProvider
allowedValues
- The allowedValues. Can not be null.
public void setAllowedValueType(VizAllowedValueType allowedValueType)
PortEntry
s are strictly of the continuous type.setAllowedValueType
in interface IVizEntryContentProvider
setAllowedValueType
in class BasicVizEntryContentProvider
allowedValueType
- The allowedValueType to set.
IVizEntryContentProvider#setAllowedValueType(AllowedValueType
allowedValueType)
public void setDefaultValue(int defaultValue)
setDefaultValue(String)
.defaultValue
- The default port as an integer.public void setDefaultValue(java.lang.String defaultValue)
PortEntry
s. The specified value
may be outside the range as specified via setRange(int, int)
.setDefaultValue
in interface IVizEntryContentProvider
setDefaultValue
in class BasicVizEntryContentProvider
defaultValue
- The default value to set.
IVizEntryContentProvider.setDefaultValue(String defaultValue)
public boolean setRange(int min, int max)
setDefaultValue(String)
.