org.proteios.core
Class MinimalAttributeFilter2
java.lang.Object
org.proteios.core.MinimalAttributeFilter2
- All Implemented Interfaces:
- AttributeFilter
public class MinimalAttributeFilter2
- extends Object
- implements AttributeFilter
A minimal filter for basic item attributes. We want attributes to be shown and
ordered consistently thus we specify attribute order and default visibility
here. You should avoid having different order of attributes depending on
class. Always try to make a good tradeoff when dealing with common attributes
over several classes.
- Author:
- olle
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MinimalAttributeFilter2
public MinimalAttributeFilter2()
isDefault
public boolean isDefault(AttributeDefinition attribute)
- Specified by:
isDefault in interface AttributeFilter
- Returns:
- true if this attribute is considered a default, false otherwise
getDefaultOrder
public List<String> getDefaultOrder()
- Get a list of overall order of all attributes.
- Specified by:
getDefaultOrder in interface AttributeFilter
- Returns:
- List A list of overall order of all attributes.