|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.inria.ns.dsi.raweb2.client.widgets.LiveGrid
org.inria.ns.dsi.raweb2.client.views.ConferencesList
public class ConferencesList
Liste des conférences.
Field Summary | |
---|---|
java.lang.String |
countrySelected
Le pays sélectionné dans le formulaire, ou null, ou "" |
java.lang.String |
title
Le titre saisi dans le formulaire, ou null, ou "" |
java.lang.String |
yearSelected
L'année sélectionnée dans le formulaire, par défaut l'année en cours |
Fields inherited from class org.inria.ns.dsi.raweb2.client.widgets.LiveGrid |
---|
grid |
Constructor Summary | |
---|---|
ConferencesList()
|
Method Summary | |
---|---|
Field[] |
getFields()
Get the fields of the grid. |
int |
getTotalRows(Document doc)
Once XML data are fetched from the server, the total number of rows must be known; typically, as an attribute set on the root element. |
java.lang.String |
getUrl(int offset,
int limit)
Forge the URL that will be used to query the server. |
java.util.List<ModelData> |
populateList(Document doc)
Populates a list from the XML data. |
Methods inherited from class org.inria.ns.dsi.raweb2.client.widgets.LiveGrid |
---|
refresh |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String countrySelected
public java.lang.String yearSelected
public java.lang.String title
Constructor Detail |
---|
public ConferencesList()
Method Detail |
---|
public Field[] getFields()
LiveGrid
getFields
in class LiveGrid
public java.util.List<ModelData> populateList(Document doc)
LiveGrid
public ListpopulateList(Document doc) { List list = Util.populateList(doc, "rowElement", getFields()); return list; }
populateList
in class LiveGrid
doc
- The document read from the server.
Util.populateList(Document, String, Field[])
public int getTotalRows(Document doc)
LiveGrid
public int getTotalRows(Document doc) { int totalRow = Integer.parseInt(doc.getDocumentElement().getAttribute("totalRow")); return totalRow; }
getTotalRows
in class LiveGrid
doc
- The XML document that was fetched from the server.
public java.lang.String getUrl(int offset, int limit)
LiveGrid
getUrl
in class LiveGrid
offset
- The offset from which start the data.limit
- The number of rows to get.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |