|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ivata.mask.group.GroupImpl
Implementation of Groupdefining a group of masks which share common
field definitions and other characteristics.
| Constructor Summary | |
GroupImpl(java.lang.String nameParam)
Create a group with no parent. |
|
GroupImpl(java.lang.String nameParam,
Group parentParam)
Create a mask with the specified parent. |
|
| Method Summary | |
void |
addExcludedFieldName(java.lang.String nameParam)
Add the name of a field to exclude from this mask group. |
void |
addField(Field fieldParam)
Add a field definition to this group. |
void |
addFilter(Filter filterParam)
Add a filter to the list. |
void |
addFirstFieldName(java.lang.String nameParam)
Add the identifier for one of the first fields in the mask. |
void |
addIncludedFieldName(java.lang.String nameParam)
Add the name of an included field. |
void |
addLastFieldName(java.lang.String nameParam)
Add the identifier for one of the last fields in the mask. |
java.util.Set |
getAllExcludedFieldNames()
Get the field names of all fields which have been excluded from this and its parents. |
protected static java.util.Set |
getAllExcludedFieldNames(Group instance)
Implementation of getAllExcludedFieldNames(). |
java.util.List |
getAllFirstFieldNames()
Get the field identifiers of all fields which should appear at the start of the group/mask, including those defined by its parent. |
protected static java.util.List |
getAllFirstFieldNames(Group instance)
Implementation of getAllFirstFieldNames(). |
java.util.List |
getAllLastFieldNames()
Get the field identifiers of all fields which should appear at the end of the group/mask, including those defined by its parent. |
protected static java.util.List |
getAllLastFieldNames(Group instance)
Implementation of getAllLastFieldNames(). |
java.util.Set |
getExcludedFieldNames()
Get the field ids which have been explicitly excluded from this group. |
Field |
getField(java.lang.String nameParam)
Default field definitions. |
java.util.List |
getFilters()
Refer to Group.getFilters(). |
java.util.List |
getFirstFieldNames()
Get the ids of all fields which should appear at the start of masks in this group. |
java.util.Set |
getIncludedFieldNames()
By explicitly including fields in a mask, you can override fields excluded by one of its parents. |
java.util.List |
getLastFieldNames()
Get the ids of all fields which should appear at the end of masks in this group. |
java.lang.String |
getName()
Refer to Group.getName(). |
Group |
getParent()
Get the parent of this group, if any. |
boolean |
isDisplayOnly()
If true, only the values in this mask will be displayed. |
boolean |
isParentFirstFieldNamesReplaced()
When first field identifiers are defined for a group, normally these are appended to the list of all parent group first field identifiers, i.e. |
boolean |
isParentLastFieldNamesReplaced()
When last field identifiers are defined for a group, normally these are appended to the list of all parent group last field identifiers, i.e. |
void |
setDisplayOnly(boolean b)
If true, only the values in this mask will be displayed. |
void |
setParentFirstFieldNamesReplaced(boolean parentFirstFieldNamesReplacedParam)
Set whether or not the first field name list of parent mask groups should be replaced. |
void |
setParentLastFieldNamesReplaced(boolean parentLastFieldNamesReplacedParam)
Set whether or not the last field name list of parent mask groups should be replaced. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GroupImpl(java.lang.String nameParam)
nameParam - unique identifier for this group.
public GroupImpl(java.lang.String nameParam,
Group parentParam)
nameParam - unique identifier for this group.parentParam - group which this group extends.| Method Detail |
protected static java.util.Set getAllExcludedFieldNames(Group instance)
getAllExcludedFieldNames().
instance - instance for which to get the excluded fields.
List of
String instances.getAllExcludedFieldNames()protected static java.util.List getAllFirstFieldNames(Group instance)
getAllFirstFieldNames().
instance - instance for which to get the first fields.
List of
String instances.getAllFirstFieldNames()protected static java.util.List getAllLastFieldNames(Group instance)
getAllLastFieldNames().
instance - instance for which to get the last fields.
List of
String instances.getAllLastFieldNames()public final void addExcludedFieldName(java.lang.String nameParam)
nameParam - unique identifier for the field which should be excluded.getExcludedFieldNames()public final void addField(Field fieldParam)
fieldParam - field definition to add to this mask group.public final void addFilter(Filter filterParam)
filterParam - filter to be added.Group#getFilters.public final void addFirstFieldName(java.lang.String nameParam)
nameParam - unique identifier for the field which should appear at the
start of the mask group.getFirstFieldNames()public final void addIncludedFieldName(java.lang.String nameParam)
nameParam - unique identifier for the field which should appear in the
mask group, overriding parent excluded fields.getIncludedFieldNames()public final void addLastFieldName(java.lang.String nameParam)
nameParam - unique identifier for the field which should appear at the end
of the mask group.getLastFieldNames()public final java.util.Set getAllExcludedFieldNames()
Note: This will include fields which were explicitly included, even if a parent class excluded them before.
getAllExcludedFieldNames in interface GroupSet of
String instances.Group.getExcludedFieldNames()public final java.util.List getAllFirstFieldNames()
Get the field identifiers of all fields which should appear at the start of the group/mask, including those defined by its parent.
getAllFirstFieldNames in interface GroupList of
String instances.getFirstFieldNames()public final java.util.List getAllLastFieldNames()
Get the field identifiers of all fields which should appear at the end of the group/mask, including those defined by its parent.
getAllLastFieldNames in interface GroupList of
String instances.getFirstFieldNames()public final java.util.Set getExcludedFieldNames()
Get the field ids which have been explicitly excluded from this group.
getExcludedFieldNames in interface Grouppublic final Field getField(java.lang.String nameParam)
Default field definitions. These can be altered/overridden.
getField in interface GroupnameParam - name of the field to be returned.
public java.util.List getFilters()
Group.getFilters().
getFilters in interface GroupGroup.getFilters().public final java.util.List getFirstFieldNames()
Get the ids of all fields which should appear at the start of masks in this group. For an input mask this usually means the fields will appear at the top of the page; for a list the fields will appear at the left of the list.
Note that all these fields do not need to be present in all masks of this group (some value objects may not have all the fields listed). Those fields which are listed and present in the value object will appear at the start, in the order given.
getFirstFieldNames in interface Grouppublic final java.util.Set getIncludedFieldNames()
getIncludedFieldNames in interface Grouppublic final java.util.List getLastFieldNames()
Get the ids of all fields which should appear at the end of masks in this group. For an input mask this usually means the fields will appear at the bottom of the page; for a list the fields will appear at the right of the list.
Note that all these fields do not need to be present in all masks of this group (some value objects may not have all the fields listed). Those fields which are listed and present in the value object will appear at the end, in the order given.
getLastFieldNames in interface Grouppublic final java.lang.String getName()
Group.getName().
getName in interface Grouppublic final Group getParent()
Get the parent of this group, if any.
Each group or mask can define a parent, from which it can inherit field definitions and group/mask properties.
getParent in interface Groupnull if this is a
top-level group.public final boolean isDisplayOnly()
If true, only the values in this mask will be displayed.
Otherwise, input fields are displayed.
This setting is inherited. If it is not set in a group directly, the value for the group's parent is taken.
isDisplayOnly in interface Grouppublic final boolean isParentFirstFieldNamesReplaced()
When first field identifiers are defined for a group, normally these are
appended to the list of all parent group first field identifiers, i.e.
the list returned by calling
getFirstFieldNames on the parent group.
This is the standard, default behavior when this method returns
false. However, if this method returns true,
then the first field identifiers in this group override (replace) the
list returned by the group's parents.
isParentFirstFieldNamesReplaced in interface Grouptrue if this group replaces the list of first
field ids defined by parent groups, otherwise false
if this group's list will be appended to that of its parents.getFirstFieldNames()public final boolean isParentLastFieldNamesReplaced()
When last field identifiers are defined for a group, normally these are
appended to the list of all parent group last field identifiers, i.e. the
list returned by calling
getLastFieldNameson the parent group.
This is the standard, default behavior when this method returns
false. However, if this method returns true,
then the last field identifiers in this group override (replace) the list
returned by the group's parents.
isParentLastFieldNamesReplaced in interface Grouptrue if this group replaces the list of last field
ids defined by parent groups, otherwise false if
this group's list will be appended to that of its parents.getLastFieldNames()public final void setDisplayOnly(boolean b)
If true, only the values in this mask will be displayed.
Otherwise, input fields are displayed.
This setting is inherited. If it is not set in a group directly, the value for the group's parent is taken.
b - if true field values are just displayed and
cannot be changed.isDisplayOnly()public final void setParentFirstFieldNamesReplaced(boolean parentFirstFieldNamesReplacedParam)
parentFirstFieldNamesReplacedParam - true if parent first field ids should be
replaced (ignored), otherwise false.isParentFirstFieldNamesReplaced()public final void setParentLastFieldNamesReplaced(boolean parentLastFieldNamesReplacedParam)
parentLastFieldNamesReplacedParam - true if parent last field ids should be
replaced (ignored), otherwise false.isParentLastFieldNamesReplaced()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||