ตามธรรมเนียม |
Used to extend ways to validate submitted data of an element.
ใช้เพื่อขยายวิธีในการตรวจสอบความถูกต้องของข้อมูลที่ส่งขององค์ประกอบ
|
A useable Form Validator plugin must extends either org.joget.apps.form.model.FormValidator or org.joget.apps.form.model.FormMultiRowValidator abstract class. |
ปลั๊กอินเครื่องมือตรวจสอบความถูกต้องของฟอร์มที่ใช้งานได้จะต้องขยาย org.joget.apps.form.model.FormValidator หรือ org.joget.apps.form.model.FormMultiRowValidator อย่างใดอย่างหนึ่ง |
ชั้นนามธรรม |
Under wflow-core module
ภายใต้โมดูล wflow-core |
Extended org.joget.plugin.base.ExtDefaultPlugin. Please refer to Plugin Base Abstract Class and Interface.
ขยาย org.joget.plugin.base.ExtDefaultPlugin โปรดอ้างอิงถึง Plugin Base Abstract Class and Interface |
Implemented org.joget.plugin.property.model.PropertyEditable. Please refer to Plugin Base Abstract Class and Interface.
ดำเนินการ org.joget.plugin.property.model.PropertyEditable โปรดอ้างอิงถึง Plugin Base Abstract Class and Interface |
Base class for implementations to validate values for an element.
คลาสพื้นฐานสำหรับการนำไปใช้งานเพื่อตรวจสอบความถูกต้องขององค์ประกอบ |
รายละเอียดวิธีการ |
วิธีการเชิงนามธรรม |
public abstract boolean validate(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData data, java.lang.String[] values)
Validate the submitted values for an element.
ตรวจสอบค่าที่ส่งมาสำหรับองค์ประกอบ |
วิธีการ overridable |
public java.lang.String getElementDecoration()
Return the HTML decoration for the attached element, e.g. marking a required field.
ส่งคืนการตกแต่ง HTML สำหรับองค์ประกอบที่แนบมาเช่น ทำเครื่องหมายฟิลด์ที่ต้องการ |
public java.lang.String getElementDecoration(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)
Return the HTML decoration for the attached element, e.g. marking a required field.
ส่งคืนการตกแต่ง HTML สำหรับองค์ประกอบที่แนบมาเช่น ทำเครื่องหมายฟิลด์ที่ต้องการ |
วิธีการยูทิลิตี้ |
public org.joget.apps.form.model.Element getElement()
Gets Element that this validator is tied to.
รับองค์ประกอบที่โยงกับตัวตรวจสอบนี้เชื่อม |
public void setElement(org.joget.apps.form.model.Element element)
Sets Element that this validator is tied to.
ตั้งค่าองค์ประกอบที่เชื่อมโยงกับตัวตรวจสอบนี้ |
Under wflow-core module
ภายใต้โมดูล wflow-core |
Extended org.joget.plugin.base.ExtDefaultPlugin. Please refer to Plugin Base Abstract Class and Interface.
ขยาย org.joget.plugin.base.ExtDefaultPlugin โปรดอ้างอิงถึง Plugin Base Abstract Class and Interface |
Implemented org.joget.plugin.property.model.PropertyEditable. Please refer to Plugin Base Abstract Class and Interface.
mplemented org.joget.plugin.property.model.PropertyEditable โปรดอ้างอิงถึง Plugin Base Abstract Class and Interface |
Base class for implementations to validate multi row data for an element e.g. Grid.
คลาสพื้นฐานสำหรับการนำไปใช้งานเพื่อตรวจสอบข้อมูลหลายแถวสำหรับองค์ประกอบเช่น Grid |
รายละเอียดวิธีการ |
วิธีการเชิงนามธรรม |
public abstract boolean validate(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData data, org.joget.apps.form.model.FormRowSet rows)
Validate the submitted rows for an element.
ตรวจสอบแถวที่ส่งสำหรับองค์ประกอบ |
public java.lang.String getElementDecoration()
Return the HTML decoration for the attached element, e.g. marking a required field.
ส่งคืนการตกแต่ง HTML สำหรับองค์ประกอบที่แนบมาเช่น ทำเครื่องหมายฟิลด์ที่ต้องการ |
public java.lang.String getElementDecoration(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)
Return the HTML decoration for the attached element, e.g. marking a required field.
ส่งคืนการตกแต่ง HTML สำหรับองค์ประกอบที่แนบมาเช่น ทำเครื่องหมายฟิลด์ที่ต้องการ |
วิธีการยูทิลิตี้ |
public org.joget.apps.form.model.Element getElement()
Gets Element that this validator is tied to.
รับองค์ประกอบที่เชื่อมโยงกับตัวตรวจสอบนี้ |
public void setElement(org.joget.apps.form.model.Element element)
Sets Element that this validator is tied to.
ตั้งค่าองค์ประกอบที่ตัวตรวจสอบนี้ |
ตัวเลือกคุณสมบัติปลั๊กอิน |
Please refer to Plugin Properties Options for more information.
โปรดดู Plugin Properties Options สำหรับข้อมูลเพิ่มเติม |
สอน |
ปลั๊กอินที่เกี่ยวข้อง |