Package org.intermine.web.logic.results
Class InlineList
- java.lang.Object
-
- org.intermine.web.logic.results.InlineList
-
public class InlineList extends java.lang.Object
- Author:
- I would say probably Radek
-
-
Constructor Summary
Constructors Constructor Description InlineList(java.util.Set<java.lang.Object> listOfListObjects, java.lang.String columnToDisplayBy, java.lang.Boolean showLinksToObjects, java.lang.String path, java.lang.Integer lineLength)
Set a set ;) of Objects by turning them into InterMineObjects and then InlineListObjects
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldDescriptor
getDescriptor()
java.util.Set<InlineListObject>
getItems()
java.lang.Integer
getLength()
java.lang.Integer
getLineLength()
java.lang.String
getPath()
java.lang.String
getPrefix()
java.lang.Boolean
getShowLinksToObjects()
int
getSize()
void
setDescriptor(FieldDescriptor fd)
Set FieldDescriptor so we can work with placementsjava.lang.String
toString()
-
-
-
Constructor Detail
-
InlineList
public InlineList(java.util.Set<java.lang.Object> listOfListObjects, java.lang.String columnToDisplayBy, java.lang.Boolean showLinksToObjects, java.lang.String path, java.lang.Integer lineLength)
Set a set ;) of Objects by turning them into InterMineObjects and then InlineListObjects- Parameters:
listOfListObjects
- received from ReportObject resolvercolumnToDisplayBy
- No idea - I'm just making checkstyle happy.showLinksToObjects
- No idea - I'm just making checkstyle happy.path
- No idea - I'm just making checkstyle happy.lineLength
- No idea - I'm just making checkstyle happy.
-
-
Method Detail
-
getItems
public java.util.Set<InlineListObject> getItems()
- Returns:
- a set of InlineListObjects
-
getLength
public java.lang.Integer getLength()
- Returns:
- the length of the strings in this list combined, delimiters included!
-
getSize
public int getSize()
- Returns:
- a size of the collection so we can determine if we are outputting a last item in the JSP etc.
-
getShowLinksToObjects
public java.lang.Boolean getShowLinksToObjects()
- Returns:
- are we to show links to the objects'? report page? the JSP asks...
-
getLineLength
public java.lang.Integer getLineLength()
- Returns:
- total character length (spaces, commas included) to show
- See Also:
JavaScript (jQuery) expects non set values to be "0"
-
getPath
public java.lang.String getPath()
- Returns:
- String path so that ReportObject can resolve the actual Objects
-
setDescriptor
public void setDescriptor(FieldDescriptor fd)
Set FieldDescriptor so we can work with placements- Parameters:
fd
- FieldDescriptor set by ReportObject on init
-
getDescriptor
public FieldDescriptor getDescriptor()
- Returns:
- FieldDecriptor
-
getPrefix
public java.lang.String getPrefix()
- Returns:
- String of everything before the first dot
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-