Class MapProvider
java.lang.Object
fr.paris.lutece.plugins.document.business.attributes.MapProvider
- All Implemented Interfaces:
IMapProvider,Serializable
MapProvider
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the html code for list result in Back OfficeGets the displayed nameGets the html code for front officeGets the html code for list result front officeGets the html codegetKey()Gets the key.getParameter(int nKey) returns the Parameter class contains all the parameters of the mapbooleanDefines if map in bo and fo lists is supportedvoidsetBackListHtmlCode(String strBackListHtmlCode) Set back list html codevoidsetDisplayedName(String displayedName) Set the displayed namevoidsetFrontHtmlCode(String strFrontHtmlCode) Sets the front htmlvoidsetFrontListHtmlCode(String strFrontListHtmlCode) Sets the front list html codevoidsetHtmlCode(String htmlCode) Sets the html codevoidSets the keyvoidsetMapListSupported(boolean bMapListSupported) Set totrueif map list is supported,falseotherwisefr.paris.lutece.util.ReferenceItemBuilds a newReferenceItemfor the map provider
-
Constructor Details
-
MapProvider
public MapProvider()
-
-
Method Details
-
getKey
Gets the key. This key must be unique.- Specified by:
getKeyin interfaceIMapProvider- Returns:
- the key;
-
setKey
Sets the key- Parameters:
key- the key
-
getDisplayedName
Gets the displayed name- Specified by:
getDisplayedNamein interfaceIMapProvider- Returns:
- the displayed name
-
setDisplayedName
Set the displayed name- Parameters:
displayedName- the displayed name
-
getHtmlCode
Gets the html code- Specified by:
getHtmlCodein interfaceIMapProvider- Returns:
- the html code
-
setHtmlCode
Sets the html code- Parameters:
htmlCode- the html code
-
toRefItem
public fr.paris.lutece.util.ReferenceItem toRefItem()Builds a newReferenceItemfor the map provider- Specified by:
toRefItemin interfaceIMapProvider- Returns:
- the item created.
-
getFrontHtmlCode
Gets the html code for front office- Specified by:
getFrontHtmlCodein interfaceIMapProvider- Returns:
- the html code
-
getFrontListHtmlCode
Gets the html code for list result front office- Specified by:
getFrontListHtmlCodein interfaceIMapProvider- Returns:
- the html code
-
setFrontListHtmlCode
Sets the front list html code- Parameters:
strFrontListHtmlCode- the front list template
-
setFrontHtmlCode
Sets the front html- Parameters:
strFrontHtmlCode- the front template
-
setBackListHtmlCode
Set back list html code- Parameters:
strBackListHtmlCode- the back list template
-
getBackListHtmlCode
Gets the html code for list result in Back Office- Specified by:
getBackListHtmlCodein interfaceIMapProvider- Returns:
- the html code
-
isMapListSupported
public boolean isMapListSupported()Defines if map in bo and fo lists is supported- Specified by:
isMapListSupportedin interfaceIMapProvider- Returns:
trueif a map can be generated (show on map button),falseotherwise.
-
setMapListSupported
public void setMapListSupported(boolean bMapListSupported) Set totrueif map list is supported,falseotherwise- Parameters:
bMapListSupported- the new value
-
getParameter
Description copied from interface:IMapProviderreturns the Parameter class contains all the parameters of the map- Specified by:
getParameterin interfaceIMapProvider- Returns:
- the Parameter
-