Package org.intermine.web.logic.results
Class DisplayField
- java.lang.Object
-
- org.intermine.web.logic.results.DisplayField
-
- Direct Known Subclasses:
DisplayCollection
,DisplayReference
public class DisplayField extends java.lang.Object
Class to represent a field of an object for the webapp- Author:
- Kim Rutherford
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.log4j.Logger
LOG
-
Constructor Summary
Constructors Constructor Description DisplayField(java.util.Collection<?> collection, FieldDescriptor fd, WebConfig webConfig, java.util.Properties webProperties, java.util.Map<java.lang.String,java.util.List<FieldDescriptor>> classKeys, java.util.List<java.lang.Class<?>> listOfTypes)
Create a new DisplayField object.DisplayField(java.util.Collection<?> collection, FieldDescriptor fd, WebConfig webConfig, java.util.Properties webProperties, java.util.Map<java.lang.String,java.util.List<FieldDescriptor>> classKeys, java.util.List<java.lang.Class<?>> listOfTypes, java.lang.String objectType)
Create a new DisplayField object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSize()
Get the size of this collectionInlineResultsTable
getTable()
Get the inline results table for this collectionboolean
isEmpty()
Return true if the collection is empty or reference null.
-
-
-
Constructor Detail
-
DisplayField
public DisplayField(java.util.Collection<?> collection, FieldDescriptor fd, WebConfig webConfig, java.util.Properties webProperties, java.util.Map<java.lang.String,java.util.List<FieldDescriptor>> classKeys, java.util.List<java.lang.Class<?>> listOfTypes) throws java.lang.Exception
Create a new DisplayField object.- Parameters:
collection
- the List the holds the object(s) to displayfd
- metadata for the referenced objectwebConfig
- the WebConfig object for this webappwebProperties
- telling us how many Collection rows to showclassKeys
- Map of class name to set of keyslistOfTypes
- as determined using PathQueryResultHelper on a Collection- Throws:
java.lang.Exception
- if an error occurs
-
DisplayField
public DisplayField(java.util.Collection<?> collection, FieldDescriptor fd, WebConfig webConfig, java.util.Properties webProperties, java.util.Map<java.lang.String,java.util.List<FieldDescriptor>> classKeys, java.util.List<java.lang.Class<?>> listOfTypes, java.lang.String objectType) throws java.lang.Exception
Create a new DisplayField object.- Parameters:
collection
- the List the holds the object(s) to displayfd
- metadata for the referenced objectwebConfig
- the WebConfig object for this webappwebProperties
- telling us how many Collection rows to showclassKeys
- Map of class name to set of keyslistOfTypes
- as determined using PathQueryResultHelper on a CollectionobjectType
- the type of the object.- Throws:
java.lang.Exception
- if an error occurs
-
-
Method Detail
-
getTable
public InlineResultsTable getTable()
Get the inline results table for this collection- Returns:
- the results table
-
isEmpty
public boolean isEmpty()
Return true if the collection is empty or reference null.- Returns:
- true if collection/reference is empty
-
getSize
public int getSize()
Get the size of this collection- Returns:
- the size
-
-