Class MasterDetailSubFormController

Object
MasterDetailSubFormController
All Implemented Interfaces:
Handler<SubFormEditEvent>, SubFormController, Serializable

public class MasterDetailSubFormController extends Object implements SubFormController, Serializable, Handler<SubFormEditEvent>
Controlador
Author:
Eduardo Frazao
See Also:
  • Constructor Details

    • MasterDetailSubFormController

      public MasterDetailSubFormController()
  • Method Details

    • getItemCount

      public int getItemCount()
      Description copied from interface: SubFormController
      Solicita a contagem de subformularios inseridos
      Specified by:
      getItemCount in interface SubFormController
      Returns:
    • setDisplayProperties

      public void setDisplayProperties(List<DisplayProperty> displayProperties)
    • setRows

      public void setRows(int rows)
    • setWidth

      public void setWidth(String width)
    • setHeight

      public void setHeight(String height)
    • setAddButtonCaption

      public void setAddButtonCaption(String caption)
    • setRemoveConfirmationMessage

      public void setRemoveConfirmationMessage(String msg)
    • getCrudListenerScript

      public Script getCrudListenerScript()
    • setCrudListenerScript

      public void setCrudListenerScript(Script crudListenerScript)
    • getListenOperations

      public Collection<CrudOperation> getListenOperations()
    • setListenOperations

      public void setListenOperations(Collection<CrudOperation> listenOperations)
    • setWindowHeight

      public void setWindowHeight(String windowHeight)
    • getWindowHeight

      public String getWindowHeight()
    • setWindowWidth

      public void setWindowWidth(String windowWidth)
    • getWindowWidth

      public String getWindowWidth()
    • setDeleteRule

      public void setDeleteRule(DeleteItemRule deleteRule)
    • getDeleteRule

      public DeleteItemRule getDeleteRule()
    • setReadOnly

      public void setReadOnly(boolean readOnly)
      Description copied from interface: SubFormController
      Configura o componente para somente leitura
      Specified by:
      setReadOnly in interface SubFormController
      Parameters:
      readOnly -
    • isReadOnly

      public boolean isReadOnly()
      Description copied from interface: SubFormController
      Retorna o estado de somente leitura do formulario
      Specified by:
      isReadOnly in interface SubFormController
      Returns:
    • setTableCaption

      public void setTableCaption(String caption)
    • getTableCaption

      public String getTableCaption()
    • addItem

      public void addItem()
      Description copied from interface: SubFormController
      Solicita programaticamente a adicao de mais um item no formulario, disparando a mesma acao que o usuario dispara ao clicar em Adicionar
      Specified by:
      addItem in interface SubFormController
    • addItem

      public void addItem(Map<String,Object> itemValues)
      Description copied from interface: SubFormController
      Solicita ao controller a adicao de um novo item, com os dados informados no mapa de valores
      Specified by:
      addItem in interface SubFormController
      Parameters:
      itemValues -
    • addItem

      public void addItem(Map<String,Object> itemValues, boolean displayForm)
    • getComponent

      public Component getComponent()
      Description copied from interface: SubFormController
      Obtem o componente visual para anexar ao formulario principal para interacao com a UI
      Specified by:
      getComponent in interface SubFormController
      Returns:
    • setSubForms

      public void setSubForms(List<BaseFormData> subForms)
      Description copied from interface: SubFormController
      Seta os subformularios existentes para o controller
      Specified by:
      setSubForms in interface SubFormController
      Parameters:
      subForms -
    • getSubForms

      public List<BaseFormData> getSubForms()
      Description copied from interface: SubFormController
      Obtem os subformularios informados pelo usuario no controller
      Specified by:
      getSubForms in interface SubFormController
      Returns:
    • setSubForm

      public void setSubForm(SubForm subFormInfo)
      Description copied from interface: SubFormController
      Configura o descritor de subformulario no controller
      Specified by:
      setSubForm in interface SubFormController
      Parameters:
      subFormInfo -
    • setExecutionContext

      public void setExecutionContext(ExecutionContext context)
      Description copied from interface: SubFormController
      Seta o contexto de execucao do controller
      Specified by:
      setExecutionContext in interface SubFormController
      Parameters:
      context -
    • setSuperEngine

      public void setSuperEngine(HasSubFormsEngine<? extends BaseFormData> superEngine)
      Description copied from interface: SubFormController
      Configura a referencia da engine local consumidora do controlador para referencia aos componentes filhos
      Specified by:
      setSuperEngine in interface SubFormController
      Parameters:
      superEngine -
    • getSuperEngine

      public HasSubFormsEngine<? extends BaseFormData> getSuperEngine()
    • getSubform

      public SubForm getSubform()
      Description copied from interface: SubFormController
      Obtem o descritor de subformulario do controller
      Specified by:
      getSubform in interface SubFormController
      Returns:
    • setMaxSubForms

      public void setMaxSubForms(int max)
    • setMinSubForms

      public void setMinSubForms(int minSubForms)
    • handle

      public void handle(SubFormEditEvent event)
      Specified by:
      handle in interface Handler<SubFormEditEvent>