Class UiFunction
java.lang.Object
org.bgerp.app.servlet.jsp.UiFunction
Methods called in JSP files from
ui object-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic final StringidAndComment(Object object) A string containing object's comment, caseobjectimplementsCommentinterface and mandatory the object's ID.static final StringprocessCreatedAndClosed(Localizer l, Process process) Localized text with process creation and closing timesstatic final StringselectSingleSourceJson(Collection<IdTitle<?>> list, Set<?> availableIdSet, List<?> availableIdList, Map<Integer, IdTitle<?>> map, boolean showId, boolean showComment) JSON source forui:select-singleJSP tag
-
Field Details
-
INSTANCE
Singleton instance
-
-
Method Details
-
selectSingleSourceJson
public static final String selectSingleSourceJson(Collection<IdTitle<?>> list, Set<?> availableIdSet, List<?> availableIdList, Map<Integer, IdTitle<?>> map, boolean showId, boolean showComment) throws com.fasterxml.jackson.core.JsonProcessingException JSON source forui:select-singleJSP tag- Parameters:
list- itemsavailableIdSet- allowed item IDs, or empty for allavailableIdList- ordered item IDs, takes priority overlistmap- items by ID, used withavailableIdListshowId- append the item ID to the titleshowComment- append the item comment to the title- Returns:
- JSON array string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- on a serialization error
-
processCreatedAndClosed
-
idAndComment
-