Class AbstractUiElement<E extends AbstractElement,T>
- java.lang.Object
-
- com.neotropic.kuwaiba.modules.commercial.processman.forms.components.uielement.AbstractUiElement<E,T>
-
- Type Parameters:
E
- Form artifact definition element typeT
- UI element type
- All Implemented Interfaces:
ElementEventListener
- Direct Known Subclasses:
ComponentButton
,ComponentCheckBox
,ComponentComboBox
,ComponentDateField
,ComponentGrid
,ComponentGridLayout
,ComponentHorizontalLayout
,ComponentImage
,ComponentLabel
,ComponentListSelectFilter
,ComponentMiniApplication
,ComponentSubform
,ComponentTextArea
,ComponentTextField
,ComponentUpload
,ComponentVerticalLayout
public abstract class AbstractUiElement<E extends AbstractElement,T> extends Object implements ElementEventListener
UI element used to render the form artifact definition element.- Author:
- Johny Andres Ortega Ruiz <johny.ortega@kuwaiba.org>
-
-
Constructor Summary
Constructors Constructor Description AbstractUiElement(E element, T uiElement)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
build()
void
fireUiElementEvent(EventDescriptor eventDescriptor)
E
getElement()
T
getUiElement()
UiElementEventListener
getUiElementEventListener()
protected abstract void
postConstruct()
Init theUI element
with the properties in theelement
.abstract void
setHeight(String height)
Sets the UI element height.abstract void
setId(String id)
Sets the UI element id.void
setUiElementEventListener(UiElementEventListener listener)
abstract void
setWidth(String width)
Sets the UI element width.-
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.ElementEventListener
onElementEvent
-
-
-
-
Field Detail
-
uiElement
protected T uiElement
UI element.
-
-
Method Detail
-
postConstruct
protected abstract void postConstruct()
Init theUI element
with the properties in theelement
.
-
setId
public abstract void setId(String id)
Sets the UI element id.- Parameters:
id
- UI element id.
-
setWidth
public abstract void setWidth(String width)
Sets the UI element width.- Parameters:
width
- UI element width.
-
setHeight
public abstract void setHeight(String height)
Sets the UI element height.- Parameters:
height
- UI element height.
-
build
public void build()
-
getElement
public E getElement()
-
getUiElement
public T getUiElement()
-
getUiElementEventListener
public UiElementEventListener getUiElementEventListener()
-
setUiElementEventListener
public void setUiElementEventListener(UiElementEventListener listener)
-
fireUiElementEvent
public void fireUiElementEvent(EventDescriptor eventDescriptor)
-
-