Package sk.iway.iwcm.components
Class WebjetComponentAbstract
java.lang.Object
sk.iway.iwcm.components.WebjetComponentAbstract
- All Implemented Interfaces:
WebjetComponentInterface
- Direct Known Subclasses:
BannerApp,BasketInvoicesListApp,CalendarApp,CarouselSliderApp,ContentBlockApp,CookieBarApp,DateApp,DayBookApp,DisqusApp,DmailApp,DocsEmbedApp,DoubleOptInComponent,EmoticonApp,FacebookCommentsApp,FacebookLikeApp,FacebookLikeBoxApp,FileArchiveApp,FormSimpleApp,ForumApp,GalleryApp,GdprApp,HtmlEmbedApp,ImpressSlideshowApp,InquiryApp,MediaApp,MenuApp,NewsApp,NewsCalendarApp,QaApp,QuizApp,RatingApp,RelatedPagesApp,ReservationApp,RestaurantMenuApp,SearchApp,SendLinkApp,SiteBrowserApp,SiteMapApp,SliderApp,SlitSliderApp,SmartsUppApp,SocialIconApp,StatApp,TimeBookApp,UnsubscribeApp,UserApp,UsrLogonController,VideoApp,VyhladavanieApp,WeatherApp
Base/Abstract class for WebJET app
-
Field Summary
FieldsModifier and TypeFieldDescriptionDEFAULT commonSettings TAB -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCurrentValueToOptions(List<OptionDto> options, String value) Verify, that value is in options, if not, add itaddCurrentValueToOptions(List<OptionDto> options, String[] values) Verify, that values are in options, if not, add itaddOptions(List options, String labelProperty, String valueProperty, boolean includeOriginalObject) Add options from list type id:label, id will be converted to string and used as value for option.getAppOptions(ComponentRequest componentRequest, javax.servlet.http.HttpServletRequest request) Returns list of options for app editor in webpagevoidinit()Initialization method for custom component initialization Called every time a component is inserted into the pagevoidinit(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Initialization method for custom component initialization Called every time a component is inserted into the pagevoidinitAppEditor(ComponentRequest componentRequest, javax.servlet.http.HttpServletRequest request) Initialization method for app editor in webpagevoidsetCacheMinutes(Integer cacheMinutes) voidvoidsetShowForLoggedUser(String showForLoggedUser) voidsetViewFolder(String viewFolder)
-
Field Details
-
device
DEFAULT commonSettings TAB -
showForLoggedUser
-
cacheMinutes
-
-
Constructor Details
-
WebjetComponentAbstract
public WebjetComponentAbstract()
-
-
Method Details
-
init
public void init()Initialization method for custom component initialization Called every time a component is inserted into the page- Specified by:
initin interfaceWebjetComponentInterface
-
init
public void init(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Initialization method for custom component initialization Called every time a component is inserted into the page- Specified by:
initin interfaceWebjetComponentInterface
-
getAppOptions
public Map<String,List<OptionDto>> getAppOptions(ComponentRequest componentRequest, javax.servlet.http.HttpServletRequest request) Returns list of options for app editor in webpage- Specified by:
getAppOptionsin interfaceWebjetComponentInterface
-
initAppEditor
public void initAppEditor(ComponentRequest componentRequest, javax.servlet.http.HttpServletRequest request) Initialization method for app editor in webpage- Specified by:
initAppEditorin interfaceWebjetComponentInterface
-
addCurrentValueToOptions
Verify, that value is in options, if not, add it- Parameters:
options-value-
-
addCurrentValueToOptions
Verify, that values are in options, if not, add it- Parameters:
options-values-- Returns:
-
addOptions
public List<OptionDto> addOptions(List options, String labelProperty, String valueProperty, boolean includeOriginalObject) Add options from list type id:label, id will be converted to string and used as value for option. Use in getAppOptions method like: Map<String, List<OptionDto>> options = new HashMap<>(); options.put("groups", addOptions(MediaDB.getGroups(), "mediaGroupName", "mediaGroupId", false)); return options;- Parameters:
options- - list of objectslabelProperty- - name of label property in options listvalueProperty- - name of value property in options listincludeOriginalObject- - if true, original object will be added to OptionDto- Returns:
-
getViewFolder
- Specified by:
getViewFolderin interfaceWebjetComponentInterface
-
setViewFolder
-
getDevice
-
setDevice
-
getCacheMinutes
-
setCacheMinutes
-
getShowForLoggedUser
-
setShowForLoggedUser
-