Class FormElementDescriptorImpl
Object
HasAttributesAbstractElement
FormElementDescriptorImpl
- All Implemented Interfaces:
FormElement,FormElementDescriptor,HasAttributes,MutableFormElementDescriptor,MutableHasAttributes,Serializable
- Direct Known Subclasses:
FieldDescriptorImpl,ValidatorDescriptorImpl
public class FormElementDescriptorImpl
extends HasAttributesAbstractElement
implements MutableFormElementDescriptor
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface MutableHasAttributes
MutableHasAttributes.AttributeChangeEvent, MutableHasAttributes.AttributeChangeLister -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<FormElementDescriptor> protected String[]protected Stringprotected intprotected StringFields inherited from class HasAttributesAbstractElement
_attributes, listeners -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(FormElementDescriptor descriptor) booleancontainsChild(FormElementDescriptor descriptor) Retorna o valor String do descritor, caso ele seja um elemento simplesbooleanCheca se existe um field descriptor com a chave acessociadagetChildDescriptor(String fieldKey) Retorna o primeiro elemento encontrado com determinada chave.Retorna uma lista de todos os subelementosgetChildDescriptors(String byKey) Obtem todos os elementos de determinada chave diretamente abaixo deste descritorgetKey()getOrder()booleanDetermina se este elemento deve ser carregado fora da thread de renderizacao do formulario.voidvoidremoveChild(FormElementDescriptor descriptor) voidsetChildDescriptors(Collection<FormElementDescriptor> descriptors) voidsetChildOrder(String... elements) voidsetDescriptorValue(String value) voidvoidvoidsortChildDescriptors(Comparator<FormElementDescriptor> comparator) protected voidtoString()Methods inherited from class HasAttributesAbstractElement
addAttributeChangeListener, containsAttribute, containsAttribute, fireAttributeChangeEvent, getAttribute, getAttribute, getAttributes, getBooleanAttribute, getBooleanAttribute, getNumberAttribute, getNumberAttribute, overrideAttribute, removeAttribute, removeAttributeChangeListener, setAttribute, setAttributesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface HasAttributes
containsAttribute, containsAttribute, getAttribute, getAttribute, getAttributes, getBooleanAttribute, getBooleanAttribute, getNumberAttribute, getNumberAttributeMethods inherited from interface MutableHasAttributes
addAttributeChangeListener, overrideAttribute, removeAttribute, removeAttributeChangeListener, setAttribute, setAttributes
-
Field Details
-
key
-
value
-
order
protected int order -
childDescriptors
-
childOrder
-
-
Constructor Details
-
FormElementDescriptorImpl
public FormElementDescriptorImpl() -
FormElementDescriptorImpl
-
FormElementDescriptorImpl
-
-
Method Details
-
setChildOrder
- Specified by:
setChildOrderin interfaceMutableFormElementDescriptor
-
sortChilds
protected void sortChilds() -
getKey
- Specified by:
getKeyin interfaceFormElement
-
getChildDescriptors
Description copied from interface:FormElementDescriptorRetorna uma lista de todos os subelementos- Specified by:
getChildDescriptorsin interfaceFormElementDescriptor- Returns:
-
setChildDescriptors
- Specified by:
setChildDescriptorsin interfaceMutableFormElementDescriptor
-
addChild
- Specified by:
addChildin interfaceMutableFormElementDescriptor
-
removeAllChildDescriptors
public void removeAllChildDescriptors()- Specified by:
removeAllChildDescriptorsin interfaceMutableFormElementDescriptor
-
removeChild
- Specified by:
removeChildin interfaceMutableFormElementDescriptor
-
containsChild
- Specified by:
containsChildin interfaceMutableFormElementDescriptor
-
getChildDescriptor
Description copied from interface:FormElementDescriptorRetorna o primeiro elemento encontrado com determinada chave. Metodo util quando sabe-se que existe apenas um elemento de determinada chave dentro do item- Specified by:
getChildDescriptorin interfaceFormElementDescriptor- Parameters:
fieldKey-- Returns:
-
existsChildDescriptor
Description copied from interface:FormElementDescriptorCheca se existe um field descriptor com a chave acessociada- Specified by:
existsChildDescriptorin interfaceFormElementDescriptor- Parameters:
key-- Returns:
-
getChildDescriptors
Description copied from interface:FormElementDescriptorObtem todos os elementos de determinada chave diretamente abaixo deste descritor- Specified by:
getChildDescriptorsin interfaceFormElementDescriptor- Parameters:
byKey-- Returns:
-
sortChildDescriptors
- Specified by:
sortChildDescriptorsin interfaceMutableFormElementDescriptor
-
descriptorValue
Description copied from interface:FormElementDescriptorRetorna o valor String do descritor, caso ele seja um elemento simples- Specified by:
descriptorValuein interfaceFormElementDescriptor- Returns:
-
toString
-
isLazyLoad
public boolean isLazyLoad()Description copied from interface:FormElementDescriptorDetermina se este elemento deve ser carregado fora da thread de renderizacao do formulario. Fica a cargo da implementacao o suporte e controle deste recurso- Specified by:
isLazyLoadin interfaceFormElementDescriptor- Returns:
-
setKey
- Specified by:
setKeyin interfaceMutableFormElementDescriptor
-
setDescriptorValue
- Specified by:
setDescriptorValuein interfaceMutableFormElementDescriptor
-
getOrder
- Specified by:
getOrderin interfaceFormElement
-
setOrder
- Specified by:
setOrderin interfaceMutableFormElementDescriptor
-