Package org.netxms.client.objecttools
Class InputField
- java.lang.Object
-
- org.netxms.client.objecttools.InputField
-
public class InputField extends Object
Input field definition
-
-
Constructor Summary
Constructors Modifier Constructor Description InputField(String name)Create text input field with default settingsInputField(String name, InputFieldType type, String displayName, String config)Create input fieldprotectedInputField(org.netxms.base.NXCPMessage msg, long baseId)Create input field from NXCP messageInputField(InputField src)Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfillMessage(org.netxms.base.NXCPMessage msg, long baseId)Fill NXCP message with field dataStringgetDisplayName()StringgetName()InputFieldOptionsgetOptions()intgetSequence()InputFieldTypegetType()voidsetDisplayName(String displayName)voidsetName(String name)voidsetOptions(InputFieldOptions options)voidsetSequence(int sequence)voidsetType(InputFieldType type)StringtoString()
-
-
-
Constructor Detail
-
InputField
public InputField(String name)
Create text input field with default settings- Parameters:
name- field name
-
InputField
public InputField(String name, InputFieldType type, String displayName, String config)
Create input field- Parameters:
name-type-displayName-config-
-
InputField
public InputField(InputField src)
Copy constructor- Parameters:
src- source object
-
InputField
protected InputField(org.netxms.base.NXCPMessage msg, long baseId)Create input field from NXCP message- Parameters:
msg- NXCP messagebaseId- base field ID
-
-
Method Detail
-
fillMessage
protected void fillMessage(org.netxms.base.NXCPMessage msg, long baseId)Fill NXCP message with field data- Parameters:
msg- NXCP messagebaseId- base field ID
-
getType
public InputFieldType getType()
- Returns:
- the type
-
setType
public void setType(InputFieldType type)
- Parameters:
type- the type to set
-
getDisplayName
public String getDisplayName()
- Returns:
- the displayName
-
setDisplayName
public void setDisplayName(String displayName)
- Parameters:
displayName- the displayName to set
-
getOptions
public InputFieldOptions getOptions()
- Returns:
- the options
-
setOptions
public void setOptions(InputFieldOptions options)
- Parameters:
options- the options to set
-
getName
public String getName()
- Returns:
- the name
-
setName
public void setName(String name)
- Parameters:
name- the name to set
-
getSequence
public int getSequence()
- Returns:
- the sequence
-
setSequence
public void setSequence(int sequence)
- Parameters:
sequence- the sequence to set
-
-