|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Web Dynpro TableSummaryHierarchyCell API. A table cell which visualizes a summary cell which is able to collapse or expand the summed cells.
This type can be called by applications using Web Dynpro, but DO NOT EXTEND OR IMPLEMENT IT!
Type Classification:
This interface is part of the Web Dynpro API, so applications may reference it or call any method of it, but they must not implement or extend it.
For a detailed explanation of API classification see the Web Dynpro Compatibility Guide| Nested Class Summary | |
static interface |
IWDTableSummaryHierarchyCell.IWDOnStatusAction
Interface defining the parameter names for event onStatusAction.
|
| Field Summary | |
static WDTableSummaryCellDesign |
DEFAULT_CELL_DESIGN
Default value of the cellDesign property is WDTableSummaryCellDesign.TOTAL. |
static WDExpansionDirection |
DEFAULT_EXPANSION_DIRECTION
Default value of the expansionDirection property is WDExpansionDirection.UP. |
| Fields inherited from interface com.sap.tc.webdynpro.clientserver.uielib.standard.api.IWDAbstractTableCellVariant |
DEFAULT_H_ALIGN, DEFAULT_VARIANT_KEY |
| Method Summary | |
void |
bindCellDesign(IWDAttributeInfo attributeInfo)
Binds the cellDesign property to the context attribute specified by the given attribute info. |
void |
bindCellDesign(String path)
Binds the cellDesign property to the context attribute specified by the given path. |
void |
bindExpanded(IWDAttributeInfo attributeInfo)
Binds the expanded property to the context attribute specified by the given attribute info.
|
void |
bindExpanded(String path)
Binds the expanded property to the context attribute specified by the given path.
|
void |
bindExpansionDirection(IWDAttributeInfo attributeInfo)
Binds the expansionDirection property to the context attribute specified by the given attribute info. |
void |
bindExpansionDirection(String path)
Binds the expansionDirection property to the context attribute specified by the given path. |
String |
bindingOfCellDesign()
Returns the binding path of the cellDesign property. |
String |
bindingOfExpanded()
Returns the binding path of the expanded property.
|
String |
bindingOfExpansionDirection()
Returns the binding path of the expansionDirection property. |
void |
destroyEditor()
Destroys the aggregated Editor element.
|
WDTableSummaryCellDesign |
getCellDesign()
Returns the value of the cellDesign property.
|
IWDTableCellEditor |
getEditor()
Returns the aggregated Editor element |
boolean |
getExpanded()
Returns the value of the expanded property.
|
WDExpansionDirection |
getExpansionDirection()
Returns the value of the expansionDirection property.
|
IWDAction |
getOnStatusAction()
Returns the action assigned to event onStatusAction.
|
IWDParameterMapping |
mappingOfOnStatusAction()
Returns the parameter mapping for event onStatusAction.
|
void |
setCellDesign(WDTableSummaryCellDesign value)
Sets the cellDesign property to the given value. |
void |
setEditor(IWDTableCellEditor editor)
Sets the aggregated Editor element. |
void |
setExpanded(boolean value)
Sets the expanded property to the given value.
|
void |
setExpansionDirection(WDExpansionDirection value)
Sets the expansionDirection property to the given value. |
void |
setOnStatusAction(IWDAction action)
Assigns the given action to event onStatusAction. |
| Methods inherited from interface com.sap.tc.webdynpro.clientserver.uielib.standard.api.IWDAbstractTableCellVariant |
bindHAlign, bindHAlign, bindingOfHAlign, getHAlign, getVariantKey, setHAlign, setVariantKey |
| Methods inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDViewElement |
destroy, getId, getView, requestFocus |
| Field Detail |
public static final WDTableSummaryCellDesign DEFAULT_CELL_DESIGN
cellDesign property is WDTableSummaryCellDesign.TOTAL.
public static final WDExpansionDirection DEFAULT_EXPANSION_DIRECTION
expansionDirection property is WDExpansionDirection.UP.
| Method Detail |
public IWDAction getOnStatusAction()
onStatusAction.
Is fired when the user wants to toggle the expansion state
onStatusActionmappingOfOnStatusAction()public void setOnStatusAction(IWDAction action)
onStatusAction.
action - the action assigned to the eventgetOnStatusAction()public IWDParameterMapping mappingOfOnStatusAction()
onStatusAction.
To pass UI element event parameter values into action handler parameters,
a parameter mapping has to be defined. Add code like the following inside
method wdDoModifyView() of the view controller:
if (firstTime)
{
IWDTableSummaryHierarchyCell myTableSummaryHierarchyCell = (IWDTableSummaryHierarchyCell) view.getElement("ID-of-TableSummaryHierarchyCell");
myTableSummaryHierarchyCell.mappingOfOnStatusAction().addSourceMapping
(
IWDTableSummaryHierarchyCell.IWDOnStatusAction.EXPANDED, // event parameter name
"name-of-action-parameter" // (type boolean)
);
}
Event onStatusAction has the following parameters:
boolean expanded
onStatusActiongetOnStatusAction()public void bindCellDesign(String path)
cellDesign property to the context attribute specified by the given path.
path - the context path of the attribute to which the cellDesign property will be boundpublic void bindCellDesign(IWDAttributeInfo attributeInfo)
cellDesign property to the context attribute specified by the given attribute info.
attributeInfo - the info of the context attribute to which the cellDesign property will be boundpublic String bindingOfCellDesign()
cellDesign property.
cellDesign property is currently boundpublic WDTableSummaryCellDesign getCellDesign()
cellDesign property.
The initial value is WDTableSummaryCellDesign.TOTAL.
cellDesign propertysetCellDesign(WDTableSummaryCellDesign)public void setCellDesign(WDTableSummaryCellDesign value)
cellDesign property to the given value.
value - the new value of the cellDesign propertygetCellDesign()public void bindExpanded(String path)
expanded property to the context attribute specified by the given path.
Note: This property must be bound to the context!
path - the context path of the attribute to which the expanded property will be boundpublic void bindExpanded(IWDAttributeInfo attributeInfo)
expanded property to the context attribute specified by the given attribute info.
Note: This property must be bound to the context!
attributeInfo - the info of the context attribute to which the expanded property will be boundpublic String bindingOfExpanded()
expanded property.
Note: This property must be bound to the context!
expanded property is currently boundpublic boolean getExpanded()
expanded property.
The initial value is false.
Note: This property must be bound to the context!
Defines if the summed are collapsed or expanded
expanded propertysetExpanded(boolean)public void setExpanded(boolean value)
expanded property to the given value.
Note: This property must be bound to the context!
value - the new value of the expanded propertygetExpanded()public void bindExpansionDirection(String path)
expansionDirection property to the context attribute specified by the given path.
path - the context path of the attribute to which the expansionDirection property will be boundpublic void bindExpansionDirection(IWDAttributeInfo attributeInfo)
expansionDirection property to the context attribute specified by the given attribute info.
attributeInfo - the info of the context attribute to which the expansionDirection property will be boundpublic String bindingOfExpansionDirection()
expansionDirection property.
expansionDirection property is currently boundpublic WDExpansionDirection getExpansionDirection()
expansionDirection property.
The initial value is WDExpansionDirection.UP.
expansionDirection propertysetExpansionDirection(WDExpansionDirection)public void setExpansionDirection(WDExpansionDirection value)
expansionDirection property to the given value.
value - the new value of the expansionDirection propertygetExpansionDirection()public IWDTableCellEditor getEditor()
Editor element.
Editor elementsetEditor(IWDTableCellEditor)public void setEditor(IWDTableCellEditor editor)
Editor element.
editor - the new editorgetEditor()public void destroyEditor()
Editor element.
Destroyed view elements do not exist any longer in their view, i.e. a new element may be
created with the same ID.
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||