Class AbstractForm<RECORD>

    • Constructor Detail

      • AbstractForm

        public AbstractForm()
    • Method Detail

      • clearAllFields

        public void clearAllFields()
      • setFieldValue

        public void setFieldValue​(java.lang.String fieldName,
                                  java.lang.Object value)
        convenience method for field.setValue(...). Caution: this method is NOT typesafe! You can set any value type, but this would probably cause runtime errors.
      • getFieldValue

        public java.lang.Object getFieldValue​(java.lang.String fieldName)
        convenience method for field.getValue()
      • addField

        protected void addField​(java.lang.String propertyName,
                                AbstractField<?> field)
      • addComponent

        protected void addComponent​(Component component)
      • getLayoutPolicies

        public abstract java.util.List<FormLayoutPolicy> getLayoutPolicies()
      • updateLayoutPolicies

        protected void updateLayoutPolicies()
      • applyRecordValuesToFields

        public void applyRecordValuesToFields​(RECORD record)
      • applyFieldValuesToRecord

        public void applyFieldValuesToRecord​(RECORD record)
      • handleUiEvent

        public void handleUiEvent​(org.teamapps.dto.UiEvent event)
        Specified by:
        handleUiEvent in interface ClientObject
      • getFields

        public java.util.List<AbstractField<?>> getFields()
      • getFieldByPropertyName

        public <V> AbstractField<V> getFieldByPropertyName​(java.lang.String propertyName)
      • getAllChildren

        public java.util.List<Component> getAllChildren()
      • setSectionCollapsed

        public void setSectionCollapsed​(java.lang.String sectionId,
                                        boolean collapsed)
      • addMultiFieldValidator

        public void addMultiFieldValidator​(MultiFieldValidator multiFieldValidator)