Class AbstractPubChooserProvider
- java.lang.Object
-
- com.jalios.jcms.handler.pubchooser.provider.AbstractPubChooserProvider
-
- All Implemented Interfaces:
PubChooserProvider
- Direct Known Subclasses:
BasicSubChooserProvider
public abstract class AbstractPubChooserProvider extends java.lang.Object implements PubChooserProvider
-
-
Field Summary
Fields Modifier and Type Field Description protected PubChooserContext
ctx
-
Constructor Summary
Constructors Constructor Description AbstractPubChooserProvider(PubChooserContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept()
Returns true if the menu should propose this itemPubChooserContext
getContext()
Returns thePubChooserContext
java.lang.String
getIcon()
Returns the icon of the menu itemjava.lang.String
getJsp()
Returns the jsp of the body of the menu itemjava.lang.String
getKey()
Returns the provider key (from props)java.lang.String
getLabel()
Return the label used in the menu.java.util.List<PubChooserProvider>
getSubProviders()
Returns a list of sub providers (This will replace the current provider by this list)boolean
textSearchEnabled()
Returns true if text search should be displayed
-
-
-
Field Detail
-
ctx
protected PubChooserContext ctx
-
-
Constructor Detail
-
AbstractPubChooserProvider
public AbstractPubChooserProvider(PubChooserContext ctx)
-
-
Method Detail
-
accept
public boolean accept()
Description copied from interface:PubChooserProvider
Returns true if the menu should propose this item- Specified by:
accept
in interfacePubChooserProvider
- Returns:
- true if the menu should propose this item
-
getLabel
public java.lang.String getLabel()
Description copied from interface:PubChooserProvider
Return the label used in the menu.- Specified by:
getLabel
in interfacePubChooserProvider
- Returns:
- the label used in the menu.
-
getIcon
public java.lang.String getIcon()
Description copied from interface:PubChooserProvider
Returns the icon of the menu item- Specified by:
getIcon
in interfacePubChooserProvider
- Returns:
- the icon of the menu item
-
getJsp
public java.lang.String getJsp()
Description copied from interface:PubChooserProvider
Returns the jsp of the body of the menu item- Specified by:
getJsp
in interfacePubChooserProvider
- Returns:
- the jsp of the body of the menu item
-
getKey
public java.lang.String getKey()
Description copied from interface:PubChooserProvider
Returns the provider key (from props)- Specified by:
getKey
in interfacePubChooserProvider
- Returns:
- the provider key (from props)
-
textSearchEnabled
public boolean textSearchEnabled()
Description copied from interface:PubChooserProvider
Returns true if text search should be displayed- Specified by:
textSearchEnabled
in interfacePubChooserProvider
- Returns:
- true if text search should be displayed
-
getContext
public PubChooserContext getContext()
Description copied from interface:PubChooserProvider
Returns thePubChooserContext
- Specified by:
getContext
in interfacePubChooserProvider
- Returns:
- the
PubChooserContext
-
getSubProviders
public java.util.List<PubChooserProvider> getSubProviders()
Description copied from interface:PubChooserProvider
Returns a list of sub providers (This will replace the current provider by this list)- Specified by:
getSubProviders
in interfacePubChooserProvider
- Returns:
- a list of sub providers (This will replace the current provider by this list)
-
-