Class AbstractForm<COMPONENT extends 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)
      • 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 Component
      • getFieldByPropertyName

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

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

        protected void doDestroy()
        Description copied from class: AbstractComponent
        Override this method to release resources whenever this component gets destroyed
        Overrides:
        doDestroy in class AbstractComponent