|
Framework JavaScript ACube V2.10.0 | ||||||||
CLASSE PRECEDENTE CLASSE SUIVANTE | CADRES SANS CADRES | ||||||||
SOMMAIRE: ATTR | CONSTR | METH | DETAIL: ATTR | CONSTR | METH |
Object | +--ComposantTableau | +--CrossTabComponent
the class « CrossTabComponent » is the class to manage the component CrossTab.
Private attributes is used within the framework ergonomic side.
IHM
CrossTab pictures:
Cross tab without pagination
Cross tab with pagination
Example usage of the component CrossTabComponent.
Date: 18/02/2008
Version: 2.8.0
Definie dans ergonomique/fw_crossTab.js
Fichiers JS nécessaires:
Sommaire des Attributs | |
<private> Array_ColumnCalculObject |
_columnsCalculs
Private attribute « _columnsCalculs » - the ColumnCalculObjects used to get the sum of each column |
Object |
_isCrossTab
|
<private> RowCalculObject |
_rowCalcul
Private attribute « _rowCalcul » - the RowCalculObject used to get the sum of a row |
<private> Boolean |
_showSubTotal
Private attribute « _showSubTotal » - indicates to show a sub total row in pager mode (sum of each row before the current) |
<private> Boolean |
_showTotalPerPage
Private attribute « _showTotalPerPage » - indicates to show a total row of the current page (in pager mode) |
Object |
super_ecrireComposantDomHTMLZoneOutil
|
Sommaire des Constructeurs | |
CrossTabComponent
(<String_Obligatoire> id, <XMLObjectSauvegarde_Optionnel> XMLObjectInfos, <String_Optionnel> urlXMLData, boolWaitingMessage, boolList)
Create a new CrossTab object. |
Sommaire des Méthodes | |
String
|
ecrireComposantDomHTMLZoneDeco1()
The public method « ecrireComposantDomHTMLZoneDeco1() » is used to generate the decoration 1. |
String
|
ecrireComposantDomHTMLZoneDeco3()
The public method « ecrireComposantDomHTMLZoneDeco3() » is used to generate the decoration 3. |
String
|
ecrireComposantDomHTMLZoneEntete()
The public method « ecrireComposantDomHTMLZoneEntete() » is used to generate the crossTab header. |
String
|
ecrireComposantDomHTMLZoneInfo()
The public method « ecrireComposantDomHTMLZoneInfo() » is used to manage the generation of the total rows into the table footer. |
String
|
ecrireComposantDomHTMLZoneLigne(<integer_Obligatoire> ligne)
The public method « ecrireComposantDomHTMLZoneLigne() » is used to generate each crossTab data row. |
String
|
ecrireComposantDomHTMLZoneOutil()
The public method « ecrireComposantDomHTMLZoneOutil() » is used to generate the head tools line |
String
|
ecrireComposantDomHTMLZoneTotal()
The public method « ecrireComposantDomHTMLZoneTotal() » is used to generate the html code of a total row |
Object
|
extend_ComposantTableau(<String_Obligatoire> id, <XMLObjectSauvegarde_Facultatif> XMLObjectInfos, <String_Facultatif> urlXMLData, <boolean_Obligatoire> boolMessageAttente, <boolean_Obligatoire> boolListe)
Crée une nouvelle instance de la classe ComposantTableau |
Array_ColumnCalculObject
|
getColumnsCalculs()
The public method « getColumnsCalculs() » is used to get the ColumnCalculObject array. |
RowCalculObject
|
getRowCalcul()
The public method « getRowCalcul() » is used to get the RowCalculObject. |
Détail des Attributs |
<private> Array_ColumnCalculObject _columnsCalculs
Object _isCrossTab
<private> RowCalculObject _rowCalcul
<private> Boolean _showSubTotal
<private> Boolean _showTotalPerPage
Object super_ecrireComposantDomHTMLZoneOutil
Détail des Constructeurs |
CrossTabComponent(<String_Obligatoire> id, <XMLObjectSauvegarde_Optionnel> XMLObjectInfos, <String_Optionnel> urlXMLData, boolWaitingMessage, boolList)
id - String_Obligatoire
: indicates the DOM container id. (it must match the name of the variable in which the component has been instantiated)
XMLObjectInfos - XMLObjectSauvegarde_Optionnel
: Object XMLObjectSauvegarde to configure the component.
urlXMLData - String_Optionnel
: indicates the url of the XML data flow.
boolMessageAttente - boolean_Optionnel
: show or not a waiting message during the XML data flow reception.
boolListe - boolean_Optionnel
: indicates if the component is a list or not to manage a different display.
boolMaitre - boolean_Optionnel
: indicates if the component is a master tab or not to manage a different display.
erreurXML - String_Optionnel
: indicates the error type used during the XML data flow reception. (see documentation about the fw_xml.js of the technic framework,parseErrorXML(type),
Détail des Méthodes |
String ecrireComposantDomHTMLZoneDeco1()
numVisibleColumns - integer_Optionnel
: indicates the number of visible columns
String ecrireComposantDomHTMLZoneDeco3()
numVisibleColumns - integer_Optionnel
: indicates the number of visible columns
String ecrireComposantDomHTMLZoneEntete()
boolPremierAppel - boolean_Optionnel
: indicates if the html generation is launched
boolVersionEtendue - boolean_Optionnel
: indicates if it is a full screen generation
boolErreurAppel - boolean_Optionnel
: indicates if the generation is launched in case of error
compteur_actions - integer_Optionnel
: indicates the max number of actions
compteur_colonnes_visibles - integer_Optionnel
: indicates the number of visible columns
compteur_lignes - integer_Optionnel
: indicates the number of rows
String ecrireComposantDomHTMLZoneInfo()
boolPremierAppel - boolean_Optionnel
: indicates if the html generation is launched
boolVersionEtendue - boolean_Optionnel
: indicates if it is a full screen generation
boolErreurAppel - boolean_Optionnel
: indicates if the generation is launched in case of error
compteur_actions - integer_Optionnel
: indicates the max number of actions
compteur_colonnes_visibles - integer_Optionnel
: indicates the number of visible columns
String ecrireComposantDomHTMLZoneLigne(<integer_Obligatoire> ligne)
ligne - integer_Obligatoire
: the row index
boolPremierAppel - boolean_Optionnel
: indicates if the html generation is launched
boolVersionEtendue - boolean_Optionnel
: indicates if it is a full screen generation
boolErreurAppel - boolean_Optionnel
: indicates if the generation is launched in case of error
compteur_actions - integer_Optionnel
: indicates the max number of actions
compteur_colonnes_visibles - integer_Optionnel
: indicates the number of visible columns
String ecrireComposantDomHTMLZoneOutil()
none -
String ecrireComposantDomHTMLZoneTotal()
boolPremierAppel - boolean_Optionnel
: indicates if the html generation is launched
boolVersionEtendue - boolean_Optionnel
: indicates if it is a full screen generation
boolErreurAppel - boolean_Optionnel
: indicates if the generation is launched in case of error
compteur_actions - integer_Optionnel
: indicates the max number of actions
compteur_colonnes_visibles - integer_Optionnel
: indicates the number of visible columns
totalMode - integer_Optionnel
: indicates the kind of total row to generate ( 1 : Total, 2 : Sub-Total, 3 : Page Total ) [Default : 1]
Object extend_ComposantTableau(<String_Obligatoire> id, <XMLObjectSauvegarde_Facultatif> XMLObjectInfos, <String_Facultatif> urlXMLData, <boolean_Obligatoire> boolMessageAttente, <boolean_Obligatoire> boolListe)
id - String_Obligatoire
: String indiquant l'id de l'élément à instancier. Sa valorisation doit correspondre au nom de la variable JavaScript du composant instancié.
XMLObjectInfos - XMLObjectSauvegarde_Facultatif
: Objet XMLObjectSauvegarde pour paramétrer le composant.
urlXMLData - String_Facultatif
: String indiquant l'url du flux XML à rapatrier pour afficher le contenu informatif du tableau.
boolMessageAttente - boolean_Obligatoire
: Booléen indiquant la présence ou non d'un message d'attente lors du rapatriement du flux XML lié au contenu informatif du composant.
boolListe - boolean_Obligatoire
: Booléen indiquant si le composant est une liste ou non pour gérer un affichage différent.
boolMaitre - boolean_Optionnel
: Booléen indiquant si le composant est un tableau maître pour gérer un affichage différent.
boolRolloverLigne - boolean_Optionnel
: Booléen indiquant si le roll-over (surlignement lors du passage de la souris) de chaque ligne est géré.
versionReduite - boolean_Optionnel
: Booléen indiquant si le tableau doit être affiché en version réduite.
erreurXML - String_Optionnel
: String précisant le type d'erreur utilisé lors du rapatriement du flux XML lié au contenu informatif du tableau. (voir documentation sur le fw_xml.js du framework technique, parseErrorXML(type),parseErrorCookieXML(type)).
boolActionEditDefault - boolean_Optionnel
: Booléen précisant si l'action d'édition d'une ligne s'effectue dans le tableau (par défaut) ou pas.
boolActionSupprDefault - boolean_Optionnel
: Booléen précisant si l'action de suppression d'une ligne s'effectue dans le tableau (par défaut) ou pas.
boolActionAjoutDefault - boolean_Optionnel
: Booléen précisant si l'action d'ajout d'une ligne s'effectue dans le tableau (par défaut) ou pas.
tabColonnes - t_ObjectColonne_Optionnel
: Tableau d'objets ObjectColonne pour paramétrer les colonnes en JavaScript si pas de flux XML pour effectuer ce paramétrage (XMLObjectInfos).
Array_ColumnCalculObject getColumnsCalculs()
none -
RowCalculObject getRowCalcul()
none -
|
Framework JavaScript ACube V2.10.0 | ||||||||
CLASSE PRECEDENTE CLASSE SUIVANTE | CADRES SANS CADRES | ||||||||
SOMMAIRE: ATTR | CONSTR | METH | DETAIL: ATTR | CONSTR | METH |