Class SinglePasswordEditorSource
java.lang.Object
com.inductiveautomation.ignition.gateway.web.components.editors.SinglePasswordEditorSource
- All Implemented Interfaces:
IEditorSource,Serializable,org.apache.wicket.util.io.IClusterable
An
IEditorSource for a password field that only presents one field, unlike PasswordEditorSource,
which presents two.- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSinglePasswordEditorSource(int size) Creates a string editor source that will create an input of type "text", with the given size.SinglePasswordEditorSource(int size, int maxLength) Creates a string editor source that will create an input of type "text", with the given size and maxlength. -
Method Summary
Modifier and TypeMethodDescriptionstatic SinglePasswordEditorSourceReturns the shared instanceof of a normal text fieldstatic SinglePasswordEditorSourceReturns the shared instanceof of a wide text fieldorg.apache.wicket.ComponentnewEditorComponent(String id, RecordEditMode editMode, SRecordInstance record, FormMeta formMeta)
-
Constructor Details
-
SinglePasswordEditorSource
public SinglePasswordEditorSource(int size) Creates a string editor source that will create an input of type "text", with the given size. The default size is 30 -
SinglePasswordEditorSource
public SinglePasswordEditorSource(int size, int maxLength) Creates a string editor source that will create an input of type "text", with the given size and maxlength.- Parameters:
maxLength- Use a negative number to supress the maxLength attribute
-
-
Method Details
-
getWideInstance
Returns the shared instanceof of a wide text field -
newEditorComponent
public org.apache.wicket.Component newEditorComponent(String id, RecordEditMode editMode, SRecordInstance record, FormMeta formMeta) - Specified by:
newEditorComponentin interfaceIEditorSource