Package sk.iway.iwcm.stripes
Class SyncDirWriterService
java.lang.Object
sk.iway.iwcm.stripes.SyncDirWriterService
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E> int
Count how many item datas are in selectedgetOptionsMap
(String prefix, javax.servlet.http.HttpServletRequest request) static void
prepareProgress
(String headlineText, String valueFieldId, String valueFieldText, PrintWriter writer) Prepare progress div (via writter), where wi will updating the value (progress)static void
prepareProgress
(String headlineText, String valueFieldId, String valueFieldText, String addClass, PrintWriter writer) Prepare progress div (via writter), where wi will updating the value (progress)static void
printStatusMsg
(String textKey, boolean mainTitle, net.sourceforge.stripes.action.ActionBeanContext context, javax.servlet.http.HttpServletRequest request) Print status message via writerstatic void
updateProgress
(String valueFieldId, String valueFieldText, PrintWriter writer) Update progress value craeted by methodprepareProgress(String, String, String, PrintWriter)
-
Method Details
-
prepareProgress
public static void prepareProgress(String headlineText, String valueFieldId, String valueFieldText, PrintWriter writer) Prepare progress div (via writter), where wi will updating the value (progress)- Parameters:
headlineText
-valueFieldId
-valueFieldText
-writer
-
-
prepareProgress
public static void prepareProgress(String headlineText, String valueFieldId, String valueFieldText, String addClass, PrintWriter writer) Prepare progress div (via writter), where wi will updating the value (progress)- Parameters:
headlineText
-valueFieldId
-valueFieldText
-addClass
- - specific class to be add to main divwriter
-
-
updateProgress
Update progress value craeted by methodprepareProgress(String, String, String, PrintWriter)
- Parameters:
valueFieldId
-valueFieldText
-writer
-
-
getCountToHandle
public static <E> int getCountToHandle(Map<String, String> selected, Iterable<Numbered<E>> datas, String prefix) Count how many item datas are in selected- Type Parameters:
E
-- Parameters:
selected
-datas
-prefix
-- Returns:
-
printStatusMsg
public static void printStatusMsg(String textKey, boolean mainTitle, net.sourceforge.stripes.action.ActionBeanContext context, javax.servlet.http.HttpServletRequest request) Print status message via writer- Parameters:
textKey
-mainTitle
-context
-request
-
-
getOptionsMap
-