public class SimpleGroupElementHandle extends GroupElementHandle
| 限定符和类型 | 字段和说明 |
|---|---|
protected java.util.List |
elements
List of handles to design elements.
|
protected org.eclipse.birt.report.model.core.Module |
module
The module that provides overall information, especially the command
stack.
|
| 构造器和说明 |
|---|
SimpleGroupElementHandle(ModuleHandle moduleHandle,
java.util.List elements)
Constructs a handle to deal with a list of report elements.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
void |
clearLocalPropertiesIncludeSubElement()
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.
|
clearProperty, getDisplayProperty, getLocalStringProperty, getStringProperty, hasLocalPropertiesForExtendedElements, hasLocalPropertiesIncludeSubElement, hasLocalPropertiesIncludeSubElement, propertyIterator, setProperty, setStringProperty, shareSameValueprotected final org.eclipse.birt.report.model.core.Module module
protected java.util.List elements
public SimpleGroupElementHandle(ModuleHandle moduleHandle, java.util.List elements)
moduleHandle - the handle of moduleelements - a list of handles of design elements. If a item is not
DesignElementHandle, it is ignored.DesignElementHandlepublic java.util.List getElements()
GroupElementHandleDesignElementHandlegetElements 在类中 GroupElementHandlepublic org.eclipse.birt.report.model.core.Module getModule()
GroupElementHandlegetModule 在类中 GroupElementHandlepublic ModuleHandle getModuleHandle()
GroupElementHandlegetModuleHandle 在类中 GroupElementHandlepublic java.util.List getCommonProperties()
GroupElementHandlegetCommonProperties 在类中 GroupElementHandleDesignElementHandle, return an empty list.public 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 在类中 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.Iterator visiblePropertyIterator()
GroupElementHandleGroupPropertyHandle. Note: remove is not support for the
iterator.visiblePropertyIterator 在类中 GroupElementHandleGroupPropertyHandleprotected boolean isPropertyVisible(java.lang.String propName)
GroupElementHandleelements.isPropertyVisible 在类中 GroupElementHandlepropName - the property nametrue if it is visible. Otherwise
false.public void clearLocalProperties()
throws SemanticException
GroupElementHandleclearLocalProperties 在类中 GroupElementHandleSemanticException - if the property is not defined on this elementpublic void clearLocalPropertiesIncludeSubElement()
throws SemanticException
GroupElementHandleclearLocalPropertiesIncludeSubElement 在类中 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 falseisExtendedElements 在类中 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 allExtendedElements()
GroupElementHandleallExtendedElements 在类中 GroupElementHandletrue If all elements have extend parents or
virtual parents. Otherwise false;protected boolean isPropertyReadOnly(java.lang.String propName)
GroupElementHandleelements.isPropertyReadOnly 在类中 GroupElementHandlepropName - the property nametrue if it is read-only. Otherwise
false.public GroupPropertyHandle getPropertyHandle(java.lang.String propName)
GroupElementHandleGroupPropertyHandle, otherwise, return null.getPropertyHandle 在类中 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 在类中 GroupElementHandleelement - the element to checktrue if the element is in the list, otherwise
false.Copyright © 2008 Actuate Corp. All rights reserved.