Class MapProvider
- java.lang.Object
-
- fr.paris.lutece.plugins.document.business.attributes.MapProvider
-
- All Implemented Interfaces:
IMapProvider
public class MapProvider extends Object implements IMapProvider
MapProvider
-
-
Constructor Summary
Constructors Constructor Description MapProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBackListHtmlCode()Gets the html code for list result in Back OfficeStringgetDisplayedName()Gets the displayed nameStringgetFrontHtmlCode()Gets the html code for front officeStringgetFrontListHtmlCode()Gets the html code for list result front officeStringgetHtmlCode()Gets the html codeStringgetKey()Gets the key.ObjectgetParameter(int nKey)returns the Parameter class contains all the parameters of the mapbooleanisMapListSupported()Defines 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 codevoidsetKey(String key)Sets the keyvoidsetMapListSupported(boolean bMapListSupported)Set totrueif map list is supported,falseotherwisefr.paris.lutece.util.ReferenceItemtoRefItem()Builds a newReferenceItemfor the map provider
-
-
-
Method Detail
-
getKey
public String getKey()
Gets the key. This key must be unique.- Specified by:
getKeyin interfaceIMapProvider- Returns:
- the key;
-
setKey
public void setKey(String key)
Sets the key- Parameters:
key- the key
-
getDisplayedName
public String getDisplayedName()
Gets the displayed name- Specified by:
getDisplayedNamein interfaceIMapProvider- Returns:
- the displayed name
-
setDisplayedName
public void setDisplayedName(String displayedName)
Set the displayed name- Parameters:
displayedName- the displayed name
-
getHtmlCode
public String getHtmlCode()
Gets the html code- Specified by:
getHtmlCodein interfaceIMapProvider- Returns:
- the html code
-
setHtmlCode
public void setHtmlCode(String htmlCode)
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
public String getFrontHtmlCode()
Gets the html code for front office- Specified by:
getFrontHtmlCodein interfaceIMapProvider- Returns:
- the html code
-
getFrontListHtmlCode
public String getFrontListHtmlCode()
Gets the html code for list result front office- Specified by:
getFrontListHtmlCodein interfaceIMapProvider- Returns:
- the html code
-
setFrontListHtmlCode
public void setFrontListHtmlCode(String strFrontListHtmlCode)
Sets the front list html code- Parameters:
strFrontListHtmlCode- the front list template
-
setFrontHtmlCode
public void setFrontHtmlCode(String strFrontHtmlCode)
Sets the front html- Parameters:
strFrontHtmlCode- the front template
-
setBackListHtmlCode
public void setBackListHtmlCode(String strBackListHtmlCode)
Set back list html code- Parameters:
strBackListHtmlCode- the back list template
-
getBackListHtmlCode
public String 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
public Object getParameter(int nKey)
Description copied from interface:IMapProviderreturns the Parameter class contains all the parameters of the map- Specified by:
getParameterin interfaceIMapProvider- Returns:
- the Parameter
-
-