|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.birt.report.model.api.GroupElementHandle
org.eclipse.birt.report.model.api.EmptyGroupElementHandle
public class EmptyGroupElementHandle
Implements an empty group element handle, which actually can do nothing.
| Constructor Summary | |
|---|---|
EmptyGroupElementHandle()
|
|
| Method Summary | |
|---|---|
protected boolean |
allExtendedElements()
Checks if all elements have extends parents or virtual parents. |
void |
clearLocalProperties()
Clears values of all common properties(except the extends property) for the given collection of elements. |
java.util.List |
getCommonProperties()
Returns the common properties shared by the given group of elements(including user properties). |
java.util.List |
getElements()
Returns the list that contains the group of design elements. |
org.eclipse.birt.report.model.core.Module |
getModule()
Returns the module. |
ModuleHandle |
getModuleHandle()
Returns the handle of module. |
GroupPropertyHandle |
getPropertyHandle(java.lang.String propName)
If property is shared by the group of elements, return the corresponding GroupPropertyHandle, otherwise, return null. |
boolean |
isExtendedElements()
Returns true if each of the given collection of element
extends has a parent. |
protected boolean |
isInGroup(DesignElementHandle element)
Checks whether the element is a member of
GroupElementHandle. |
protected boolean |
isPropertyReadOnly(java.lang.String propName)
Checks whether a property is read-only in the property sheet. |
protected boolean |
isPropertyVisible(java.lang.String propName)
Checks whether a property is visible in the property sheet. |
boolean |
isSameType()
Indicates that if the given elements are of the same definition. |
java.util.Iterator |
visiblePropertyIterator()
Returns an iterator over the common properties that are visible. |
| Methods inherited from class org.eclipse.birt.report.model.api.GroupElementHandle |
|---|
clearProperty, getDisplayProperty, getLocalStringProperty, getStringProperty, hasLocalPropertiesForExtendedElements, propertyIterator, setProperty, setStringProperty, shareSameValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmptyGroupElementHandle()
| Method Detail |
|---|
protected boolean allExtendedElements()
GroupElementHandle
allExtendedElements in class GroupElementHandletrue If all elements have extend parents or
virtual parents. Otherwise false;public java.util.List getElements()
GroupElementHandleDesignElementHandle
getElements in class GroupElementHandlepublic org.eclipse.birt.report.model.core.Module getModule()
GroupElementHandle
getModule in class GroupElementHandlepublic ModuleHandle getModuleHandle()
GroupElementHandle
getModuleHandle in class GroupElementHandlepublic boolean isSameType()
GroupElementHandle
If elements have different definitions. Even the same element type, the
return value is false. For example, if the list contains
an OdaDataSource and a OdaDataSource, this
method returns false.
isSameType in class GroupElementHandletrue if the given elements are of the same type;
return false if elements are of different element
types, or the given list is empty, or the list contains any
object that is not an instance of
DesignElementHandle.public java.util.List getCommonProperties()
GroupElementHandle
getCommonProperties in class GroupElementHandleDesignElementHandle, return an empty list.public java.util.Iterator visiblePropertyIterator()
GroupElementHandleGroupPropertyHandle. Note: remove is not support for the
iterator.
visiblePropertyIterator in class GroupElementHandleGroupPropertyHandleprotected boolean isPropertyVisible(java.lang.String propName)
GroupElementHandleelements.
isPropertyVisible in class GroupElementHandlepropName - the property name
true if it is visible. Otherwise
false.
public void clearLocalProperties()
throws SemanticException
GroupElementHandle
clearLocalProperties in class GroupElementHandleSemanticException - if the property is not defined on this elementpublic boolean isExtendedElements()
GroupElementHandletrue if each of the given collection of element
extends has a parent. Returns false otherwise. If the
collection has no elements, also return false
isExtendedElements in class GroupElementHandletrue if each of the given collection of element
extends has a parent. Returns false otherwise. If
the collection has no elements, also return falseprotected boolean isPropertyReadOnly(java.lang.String propName)
GroupElementHandleelements.
isPropertyReadOnly in class GroupElementHandlepropName - the property name
true if it is read-only. Otherwise
false.public GroupPropertyHandle getPropertyHandle(java.lang.String propName)
GroupElementHandleGroupPropertyHandle, otherwise, return null.
getPropertyHandle in class GroupElementHandlepropName - name of the property needs to be handled.
GroupPropertyHandle; Otherwise
return null.protected boolean isInGroup(DesignElementHandle element)
GroupElementHandleelement is a member of
GroupElementHandle.
isInGroup in class GroupElementHandleelement - the element to check
true if the element is in the list, otherwise
false.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||