Class ElementGrid
- java.lang.Object
-
- com.neotropic.kuwaiba.modules.commercial.processman.forms.elements.AbstractElement<Object>
-
- com.neotropic.kuwaiba.modules.commercial.processman.forms.elements.ElementGrid
-
- All Implemented Interfaces:
UiElementEventListener
,PropertyChangeListener
,Tag
public class ElementGrid extends AbstractElement<Object>
POJO wrapper of a grid element in a Form Artifact Definition.- Author:
- Johny Andres Ortega Ruiz <johny.ortega@kuwaiba.org>
-
-
Field Summary
Fields Modifier and Type Field Description static String
SELECTION_MODE_MULTI
static String
SELECTION_MODE_NONE
static String
SELECTION_MODE_SINGLE
-
Constructor Summary
Constructors Constructor Description ElementGrid()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addRow(List<Object> row)
boolean
editRow(List<Object> newRow, long rowToEdit)
void
fireOnLoad()
List<ElementColumn>
getColums()
Object
getData(int idRow, int idColumn)
Object
getPropertyValue(String propertyName)
List<Object>
getRow()
List<Object>
getRow(int idRow)
List<List<Object>>
getRows()
long
getSelectedRow()
List<Long>
getSelectedRows()
String
getSelectionMode()
String
getTagName()
Gets the element name.boolean
hasProperty(String propertyName)
void
initFromXML(XMLStreamReader reader)
Init the element from XMLboolean
isShared()
boolean
isUsePagination()
void
loadValue(List<String> list)
void
onUiElementEvent(EventDescriptor event)
Executes a set of actions to update a tag Element when a UI element changedvoid
propertyChange()
boolean
removeRow(long rowToRemove)
void
setColumns(List<ElementColumn> columns)
void
setRows(List<List<Object>> rows)
void
setSelectedRow(long selectedRow)
void
setSelectedRows(List<Long> selectedRows)
void
setSelectionMode(String selectionMode)
void
setSelectionMode(XMLStreamReader reader)
void
setShared(boolean shared)
-
Methods inherited from class com.neotropic.kuwaiba.modules.commercial.processman.forms.elements.AbstractElement
addPropertyChangeListener, fireElementEvent, fireOnLazyLoad, 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
-
-
-
-
Field Detail
-
SELECTION_MODE_SINGLE
public static final String SELECTION_MODE_SINGLE
- See Also:
- Constant Field Values
-
SELECTION_MODE_MULTI
public static final String SELECTION_MODE_MULTI
- See Also:
- Constant Field Values
-
SELECTION_MODE_NONE
public static final String SELECTION_MODE_NONE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSelectedRow
public long getSelectedRow()
-
setSelectedRow
public void setSelectedRow(long selectedRow)
-
setColumns
public void setColumns(List<ElementColumn> columns)
-
getColums
public List<ElementColumn> getColums()
-
removeRow
public boolean removeRow(long rowToRemove)
-
isShared
public boolean isShared()
-
setShared
public void setShared(boolean shared)
-
getData
public Object getData(int idRow, int idColumn)
-
getSelectionMode
public String getSelectionMode()
-
setSelectionMode
public void setSelectionMode(String selectionMode)
-
isUsePagination
public boolean isUsePagination()
-
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<Object>
- Throws:
XMLStreamException
-
setSelectionMode
public void setSelectionMode(XMLStreamReader reader)
-
propertyChange
public void propertyChange()
- Specified by:
propertyChange
in interfacePropertyChangeListener
- Overrides:
propertyChange
in classAbstractElement<Object>
-
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<Object>
- Parameters:
event
- Gets the event details
-
getTagName
public String getTagName()
Description copied from interface:Tag
Gets the element name.- Returns:
- The element name.
-
fireOnLoad
public void fireOnLoad()
- Overrides:
fireOnLoad
in classAbstractElement<Object>
-
hasProperty
public boolean hasProperty(String propertyName)
- Overrides:
hasProperty
in classAbstractElement<Object>
-
getPropertyValue
public Object getPropertyValue(String propertyName)
- Overrides:
getPropertyValue
in classAbstractElement<Object>
-
-