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 PubChooserContextctx
-
Constructor Summary
Constructors Constructor Description AbstractPubChooserProvider(PubChooserContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept()Returns true if the menu should propose this itemPubChooserContextgetContext()Returns thePubChooserContextjava.lang.StringgetIcon()Returns the icon of the menu itemjava.lang.StringgetJsp()Returns the jsp of the body of the menu itemjava.lang.StringgetKey()Returns the provider key (from props)java.lang.StringgetLabel()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)booleantextSearchEnabled()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:PubChooserProviderReturns true if the menu should propose this item- Specified by:
acceptin interfacePubChooserProvider- Returns:
- true if the menu should propose this item
-
getLabel
public java.lang.String getLabel()
Description copied from interface:PubChooserProviderReturn the label used in the menu.- Specified by:
getLabelin interfacePubChooserProvider- Returns:
- the label used in the menu.
-
getIcon
public java.lang.String getIcon()
Description copied from interface:PubChooserProviderReturns the icon of the menu item- Specified by:
getIconin interfacePubChooserProvider- Returns:
- the icon of the menu item
-
getJsp
public java.lang.String getJsp()
Description copied from interface:PubChooserProviderReturns the jsp of the body of the menu item- Specified by:
getJspin interfacePubChooserProvider- Returns:
- the jsp of the body of the menu item
-
getKey
public java.lang.String getKey()
Description copied from interface:PubChooserProviderReturns the provider key (from props)- Specified by:
getKeyin interfacePubChooserProvider- Returns:
- the provider key (from props)
-
textSearchEnabled
public boolean textSearchEnabled()
Description copied from interface:PubChooserProviderReturns true if text search should be displayed- Specified by:
textSearchEnabledin interfacePubChooserProvider- Returns:
- true if text search should be displayed
-
getContext
public PubChooserContext getContext()
Description copied from interface:PubChooserProviderReturns thePubChooserContext- Specified by:
getContextin interfacePubChooserProvider- Returns:
- the
PubChooserContext
-
getSubProviders
public java.util.List<PubChooserProvider> getSubProviders()
Description copied from interface:PubChooserProviderReturns a list of sub providers (This will replace the current provider by this list)- Specified by:
getSubProvidersin interfacePubChooserProvider- Returns:
- a list of sub providers (This will replace the current provider by this list)
-
-