public class GrouperContext extends AbstractContext
Modifier and Type | Field and Description |
---|---|
static GrouperContext |
DEFAULT_CONTEXT
Default converter context with empty name and no user object.
|
Constructor and Description |
---|
GrouperContext(java.lang.String name)
Creates a converter context with a name.
|
GrouperContext(java.lang.String name,
java.lang.Object object)
Creates a converter context with a name and an object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isUseOnAutoFilter()
Checks if the grouper will be used on the auto-filter drop down list.
|
boolean |
isUseOnCustomFilter()
Checks if the grouper will be used on the custom filter editor.
|
void |
setUseOnAutoFilter(boolean useOnAutoFilter)
Sets the flag to tell the auto-filter drop down list to use the grouper or not.
|
void |
setUseOnCustomFilter(boolean useOnCustomFilter)
Sets the flag to tell the custom filter editor to use the grouper or not.
|
equals, getName, getUserObject, hashCode, setName, setUserObject, toString
public static GrouperContext DEFAULT_CONTEXT
public GrouperContext(java.lang.String name)
name
- the name of the grouper context.public GrouperContext(java.lang.String name, java.lang.Object object)
name
- the name of the grouper context.object
- the user object. It can be used as any object to pass information along.public boolean isUseOnAutoFilter()
public void setUseOnAutoFilter(boolean useOnAutoFilter)
useOnAutoFilter
- true or false. Default is true.public boolean isUseOnCustomFilter()
public void setUseOnCustomFilter(boolean useOnCustomFilter)
useOnCustomFilter
- true or false. Default is true.