public class ExpandableRecord extends java.lang.Object implements ExpandableRecordInterface, java.io.Serializable
ExpandableRecord class is the primary class for use with the
expandableTable custom component. The class contains the necessary
methods and attributes needed for the expandableTable custom component
to function. This classes uses Generics to link to a user defined data
object.| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList |
childRecords |
protected java.lang.String |
indentStyleClass |
protected boolean |
isExpanded |
protected java.lang.String |
nodeType |
protected java.util.ArrayList |
parentList |
protected java.lang.String |
rowStyleClass |
| Constructor and Description |
|---|
ExpandableRecord(java.lang.String indentStyleClass,
java.lang.String rowStyleClass,
java.util.ArrayList parentList,
boolean isExpanded,
java.lang.Object record,
java.lang.String nodeType)
Creates a new
ExpandableRecord. |
ExpandableRecord(java.lang.String indentStyleClass,
java.lang.String rowStyleClass,
java.lang.Object record,
java.lang.String nodeType)
Creates a new
ExpandableRecord object. |
| Modifier and Type | Method and Description |
|---|---|
void |
addChildRecord(ExpandableRecord expandableRecord)
Adds a child sales record to this sales group.
|
void |
contractNodeAction()
Utility method to remove all the child nodes from the parent
dataTable list. |
void |
expandNodeAction()
Utility metod to add all child nodes to the parent
dataTable
list. |
java.util.ArrayList |
getChildRecords()
Gets the list of child records.
|
java.lang.String |
getIndentStyleClass()
Gets the style class name used to define the first column of a
record row.
|
boolean |
getIsExpanded()
Gets the state of the parent
ExpandableRecord object. |
java.lang.String |
getNodeType()
Gets the node type value of the
ExpandableRecord object. |
java.lang.Object |
getRecord()
Gets the user defined data record object.
|
java.lang.String |
getRowStyleClass()
Gets the style class name used to define all other columns in the
record row, except the first column.
|
boolean |
isRenderImage()
Gets the renderable state of the contract/expand image toggle.
|
void |
removeChildRecord(ExpandableRecord expandableRecord)
Removes the specified child record from this group.
|
void |
toggleSubGroupAction(javax.faces.event.ActionEvent event)
Toggles the expanded state of this record.
|
protected java.lang.String indentStyleClass
protected java.lang.String rowStyleClass
protected java.util.ArrayList parentList
protected boolean isExpanded
protected java.util.ArrayList childRecords
protected java.lang.String nodeType
public ExpandableRecord(java.lang.String indentStyleClass,
java.lang.String rowStyleClass,
java.util.ArrayList parentList,
boolean isExpanded,
java.lang.Object record,
java.lang.String nodeType)
ExpandableRecord. This constructor should be used when
creating ExpandableRecord objects which will contain children.indentStyleClass - style class for the expand/contract image columnrowStyleClass - style class for the data columnsparentList - list of parent itemsisExpanded - true, indicates that the specified node will be
expanded by default, otherwise, falserecord - user created object that is linked to this parent
objectnodeType - can be either parent or childpublic ExpandableRecord(java.lang.String indentStyleClass,
java.lang.String rowStyleClass,
java.lang.Object record,
java.lang.String nodeType)
ExpandableRecord object. This constructor
should be used when creating an ExpandableRecord object that
will be a child of some other ExpanableRecord object. This
created ExpandableRecord has no image states defined.indentStyleClass - style class for the expand/contract image columnrowStyleClass - style class for the data columnsrecord - user created object that is linked to this parent
objectnodeType - can be either parent or childpublic boolean isRenderImage()
isRenderImage in interface ExpandableRecordInterfacepublic void toggleSubGroupAction(javax.faces.event.ActionEvent event)
toggleSubGroupAction in interface ExpandableRecordInterfaceevent - jsf action event.public void addChildRecord(ExpandableRecord expandableRecord)
addChildRecord in interface ExpandableRecordInterfaceexpandableRecord - child record to add to this record.public void removeChildRecord(ExpandableRecord expandableRecord)
removeChildRecord in interface ExpandableRecordInterfaceexpandableRecord - child record to remove.public void expandNodeAction()
dataTable
list.expandNodeAction in interface ExpandableRecordInterfacepublic void contractNodeAction()
dataTable list.contractNodeAction in interface ExpandableRecordInterfacepublic java.lang.String getIndentStyleClass()
public java.lang.String getRowStyleClass()
public java.util.ArrayList getChildRecords()
public java.lang.Object getRecord()
public boolean getIsExpanded()
ExpandableRecord object.public java.lang.String getNodeType()
ExpandableRecord object.Copyright 2025 ICEsoft Technologies Canada, Corp. All Rights Reserved.