Class AbstractPropertyUIListItem<C extends IJspUIContext>
java.lang.Object
com.jalios.jcms.member.profile.ui.AbstractPropertyUI<C>
com.jalios.jcms.member.profile.ui.AbstractPropertyUIListItem<C>
- Type Parameters:
C- type of context
- All Implemented Interfaces:
IJspUI<C>,IUI<C>,IUIListItem<C>,Comparable<AbstractPropertyUIListItem<C>>
- Direct Known Subclasses:
PropertyUIListItem,UIAction
public abstract class AbstractPropertyUIListItem<C extends IJspUIContext>
extends AbstractPropertyUI<C>
implements IUIListItem<C>, Comparable<AbstractPropertyUIListItem<C>>
An item within a
IUIList.- Since:
- jplatform-11
- Author:
- Sylvain Devaux
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected static final StringProperty suffix to order items.protected static final org.apache.log4j.LoggerFields inherited from class com.jalios.jcms.member.profile.ui.AbstractPropertyUI
ENABLED_PROP_SUFFIX, ENABLED_REQ_ATTR, JSP_PROP_SUFFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(AbstractPropertyUIListItem<C> other) intgetIndex()Returns the property.voidsetIndex(int index) Allow custom index over default one from properties.voidsetSortKey(String sortKey) Allow custom index over default one from properties.toString()Methods inherited from class com.jalios.jcms.member.profile.ui.AbstractPropertyUI
canInclude, canIncludeJsp, canIncludeJsp, disable, getBooleanPropertyValue, getContext, getId, getIntegerProperty, getJsp, getLabel, getLangProperty, getProperty, getProperty, getPropertyKey, getPropertyValue, getPropertyValue, getRealPath, isEnabled, isEnabled, logPrefix, setLabelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.jalios.jcms.member.profile.ui.IJspUI
canInclude, getContext, getId, getJsp
-
Field Details
-
LOGGER
protected static final org.apache.log4j.Logger LOGGER -
INDEX_PROP_SUFFIX
Property suffix to order items.- See Also:
-
DEFAULT_INDEX
protected static final int DEFAULT_INDEX- See Also:
-
-
Constructor Details
-
AbstractPropertyUIListItem
-
AbstractPropertyUIListItem
-
-
Method Details
-
getIndex
public int getIndex()- Specified by:
getIndexin interfaceIUIListItem<C extends IJspUIContext>- Returns:
- index defined in JProperties
- See Also:
-
setIndex
public void setIndex(int index) Allow custom index over default one from properties.- Specified by:
setIndexin interfaceIUIListItem<C extends IJspUIContext>- Parameters:
index- index to force to
-
getSortKey
Returns the property.- Specified by:
getSortKeyin interfaceIUIListItem<C extends IJspUIContext>- Returns:
- alternate string to use for alphabetical comparison (when items' index are same)
- See Also:
-
setSortKey
Allow custom index over default one from properties.- Parameters:
sortKey- sortKey to force to
-
compareTo
- Specified by:
compareToin interfaceComparable<C extends IJspUIContext>
-
toString
- Overrides:
toStringin classAbstractPropertyUI<C extends IJspUIContext>
-