Class AbstractElementField<T>
- java.lang.Object
-
- com.neotropic.kuwaiba.modules.commercial.processman.forms.elements.AbstractElement<T>
-
- com.neotropic.kuwaiba.modules.commercial.processman.forms.elements.AbstractElementField<T>
-
- Type Parameters:
T
- Type Value
- All Implemented Interfaces:
UiElementEventListener
,PropertyChangeListener
,Tag
- Direct Known Subclasses:
AbstractElementSelector
,ElementCheckBox
,ElementDateField
,ElementImage
,ElementLabel
,ElementTextArea
,ElementTextField
,ElementTree
,ElementUpload
public abstract class AbstractElementField<T> extends AbstractElement<T>
A field is a terminal element that contain data- Author:
- Johny Andres Ortega Ruiz <johny.ortega@kuwaiba.org>
-
-
Constructor Summary
Constructors Constructor Description AbstractElementField()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fireOnLazyLoad()
void
fireOnLoad()
String
getDataType()
Object
getPropertyValue(String propertyName)
T
getValue()
String
getValueAttributeValue()
boolean
hasProperty(String propertyName)
void
initFromXML(XMLStreamReader reader)
Init the element from XMLboolean
isCleanable()
boolean
isMandatory()
boolean
isShared()
void
onUiElementEvent(EventDescriptor event)
Executes a set of actions to update a tag Element when a UI element changedvoid
propertyChange()
void
setCleanable(boolean cleanable)
void
setDataType(String dataType)
void
setMandatory(boolean mandatory)
void
setShared(boolean shared)
void
setValue(T value)
void
setValueAttributeValue(String valueAttributeValue)
-
Methods inherited from class com.neotropic.kuwaiba.modules.commercial.processman.forms.elements.AbstractElement
addPropertyChangeListener, fireElementEvent, firePropertyChangeEvent, getAlignment, getArea, getElementEventListener, getEvents, getFormStructure, getHeight, getId, getNewValue, getStyleName, getWidth, hasEventAttribute, hasProperty, isEnabled, isHidden, isSave, removePropertyChangeListener, setAlignment, setArea, setElementEventListener, setEnabled, setEvents, setFormStructure, setHeight, setHidden, setId, setSave, setStyleName, setWidth
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.neotropic.kuwaiba.modules.commercial.processman.forms.elements.Tag
getTagName
-
-
-
-
Field Detail
-
value
protected T value
Value of the attribute value in the element field.
-
-
Method Detail
-
getValueAttributeValue
public String getValueAttributeValue()
-
setValueAttributeValue
public void setValueAttributeValue(String valueAttributeValue)
-
getValue
public T getValue()
-
setValue
public void setValue(T value)
-
isMandatory
public boolean isMandatory()
-
setMandatory
public void setMandatory(boolean mandatory)
-
isCleanable
public boolean isCleanable()
-
setCleanable
public void setCleanable(boolean cleanable)
-
getDataType
public String getDataType()
-
setDataType
public void setDataType(String dataType)
-
isShared
public boolean isShared()
-
setShared
public void setShared(boolean shared)
-
onUiElementEvent
public void onUiElementEvent(EventDescriptor event)
Description copied from interface:UiElementEventListener
Executes a set of actions to update a tag Element when a UI element changed- Specified by:
onUiElementEvent
in interfaceUiElementEventListener
- Overrides:
onUiElementEvent
in classAbstractElement<T>
- Parameters:
event
- Gets the event details
-
fireOnLoad
public void fireOnLoad()
- Overrides:
fireOnLoad
in classAbstractElement<T>
-
fireOnLazyLoad
public void fireOnLazyLoad()
- Overrides:
fireOnLazyLoad
in classAbstractElement<T>
-
initFromXML
public void initFromXML(XMLStreamReader reader) throws XMLStreamException
Description copied from interface:Tag
Init the element from XML- Specified by:
initFromXML
in interfaceTag
- Overrides:
initFromXML
in classAbstractElement<T>
- Throws:
XMLStreamException
-
propertyChange
public void propertyChange()
- Specified by:
propertyChange
in interfacePropertyChangeListener
- Overrides:
propertyChange
in classAbstractElement<T>
-
hasProperty
public boolean hasProperty(String propertyName)
- Overrides:
hasProperty
in classAbstractElement<T>
-
getPropertyValue
public Object getPropertyValue(String propertyName)
- Overrides:
getPropertyValue
in classAbstractElement<T>
-
-