|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Web Dynpro BusinessGraphics API. The BusinessGraphics UI element provides several chart types such as vertical bar charts or pie charts, that can be used for the graphical illustration of data and data relationships. In addition, there are more complex chart types such as portfolio and gantt that can help the user of your Web application to make decisions for corporate planning or find information in general.
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 |
IWDBusinessGraphics.IWDOnAction
Interface defining the parameter names for event onAction.
|
| Field Summary | |
static boolean |
DEFAULT_ALWAYS_DISPLAY_GRAPHIC
Default value of the alwaysDisplayGraphic property is false. |
static String |
DEFAULT_BACKGROUND_COLOR
Default value of the backgroundColor property is "". |
static WDBusinessGraphicsType |
DEFAULT_CHART_TYPE
Default value of the chartType property is WDBusinessGraphicsType.COLUMNS. |
static String |
DEFAULT_CUSTOMIZING
Default value of the customizing property is "". |
static WDBusinessGraphicsDimension |
DEFAULT_DIMENSION
Default value of the dimension property is WDBusinessGraphicsDimension.TWO. |
static String |
DEFAULT_FONT_FAMILY
Default value of the fontFamily property is "". |
static int |
DEFAULT_HEIGHT
Default value of the height property is 300. |
static String |
DEFAULT_IGS_URL
Default value of the igsUrl property is "". |
static String |
DEFAULT_TRANSPARENT_COLOR
Default value of the transparentColor property is "". |
static int |
DEFAULT_WIDTH
Default value of the width property is 300. |
| Fields inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDUIElement |
DEFAULT_ENABLED, DEFAULT_TOOLTIP, DEFAULT_VISIBLE |
| Method Summary | |
void |
addSeries(IWDAbstractSeries series)
Adds the given Series at the end of the SeriesList list. |
void |
addSeries(IWDAbstractSeries series,
int index)
Inserts the given Series at the specified (zero-based) index into the SeriesList list. |
void |
bindAlwaysDisplayGraphic(IWDAttributeInfo attributeInfo)
Binds the alwaysDisplayGraphic property to the context attribute specified by the given attribute info. |
void |
bindAlwaysDisplayGraphic(String path)
Binds the alwaysDisplayGraphic property to the context attribute specified by the given path. |
void |
bindCategorySource(IWDNodeInfo nodeInfo)
Binds the categorySource property to the context node specified by the given node info. |
void |
bindCategorySource(String path)
Binds the categorySource property to the context attribute specified by the given path. |
String |
bindingOfAlwaysDisplayGraphic()
Returns the binding path of the alwaysDisplayGraphic property. |
String |
bindingOfCategorySource()
Returns the binding path of the categorySource property. |
String |
bindingOfSeriesSource()
Returns the binding path of the seriesSource property.
|
void |
bindSeriesSource(IWDNodeInfo nodeInfo)
Binds the seriesSource property to the context node specified by the given node info.
|
void |
bindSeriesSource(String path)
Binds the seriesSource property to the context attribute specified by the given path.
|
void |
destroyAllSeriesList()
Destroys all elements in the SeriesList list.
|
void |
destroyCategory()
Destroys the aggregated Category element.
|
boolean |
getAlwaysDisplayGraphic()
Returns the value of the alwaysDisplayGraphic property.
|
String |
getBackgroundColor()
Returns the value of the backgroundColor property.
|
IWDCategory |
getCategory()
Returns the aggregated Category element |
WDBusinessGraphicsType |
getChartType()
Returns the value of the chartType property.
|
String |
getCustomizing()
Returns the value of the customizing property.
|
WDBusinessGraphicsDimension |
getDimension()
Returns the value of the dimension property.
|
String |
getFontFamily()
Returns the value of the fontFamily property.
|
int |
getHeight()
Returns the value of the height property.
|
String |
getIgsUrl()
Returns the value of the igsUrl property.
|
IWDAction |
getOnAction()
Returns the action assigned to event onAction |
IWDAbstractSeries |
getSeries(int index)
Returns the Series at the given index. |
IWDAbstractSeries[] |
getSeriesList()
Returns the SeriesList list as an array |
String |
getTransparentColor()
Returns the value of the transparentColor property.
|
int |
getWidth()
Returns the value of the width property.
|
boolean |
hasSeriesList()
Returns true if there exists a Series. |
int |
indexOfSeries(IWDAbstractSeries series)
Returns the index of the given element in the SeriesList list,
returns -1 if the element is not in the list. |
Iterator |
iterateSeriesList()
Returns an iterator over the SeriesList list. |
IWDParameterMapping |
mappingOfOnAction()
Returns the parameter mapping for event onAction.
|
int |
numberOfSeriesList()
Returns the number of SeriesList. |
void |
removeAllSeriesList()
Removes all elements from the SeriesList list.
|
IWDAbstractSeries |
removeSeries(int index)
Removes the Series at the given index from the SeriesList list.
|
IWDAbstractSeries |
removeSeries(String id)
Removes the Series with the given ID from the SeriesList list.
|
void |
setAlwaysDisplayGraphic(boolean value)
Sets the alwaysDisplayGraphic property to the given value. |
void |
setBackgroundColor(String backgroundColor)
Sets the backgroundColor property to the given value. |
void |
setCategory(IWDCategory category)
Sets the aggregated Category element. |
void |
setChartType(WDBusinessGraphicsType chartType)
Sets the chartType property to the given value. |
void |
setCustomizing(String customizing)
Sets the customizing property to the given value. |
void |
setDimension(WDBusinessGraphicsDimension dimension)
Sets the dimension property to the given value. |
void |
setDirectCustomizing(String directCustomizing)
Sets the customizing directly, only available as method call. |
void |
setFontFamily(String fontFamily)
Sets the fontFamily property to the given value. |
void |
setHeight(int height)
Sets the height property to the given value. |
void |
setIgsUrl(String igsUrl)
Sets the igsUrl property to the given value. |
void |
setOnAction(IWDAction action)
Assigns the given action to event onAction. |
void |
setTransparentColor(String transparentColor)
Sets the transparentColor property to the given value. |
void |
setWidth(int width)
Sets the width property to the given value. |
void |
swapSeriesList(int i,
int j)
Swaps the SeriesList at the given indices. |
| Methods inherited from interface com.sap.tc.webdynpro.clientserver.uielib.graphics.api.IWDAbstractIgsElement |
forceUpdate, getHasError |
| Methods inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDUIElement |
bindEnabled, bindEnabled, bindingOfEnabled, bindingOfTooltip, bindingOfVisible, bindTooltip, bindTooltip, bindVisible, bindVisible, createLayoutData, getContainer, getEnabled, getLayoutData, getTooltip, getVisible, setEnabled, setTooltip, setVisible |
| Methods inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDViewElement |
destroy, getId, getView, requestFocus |
| Field Detail |
public static final boolean DEFAULT_ALWAYS_DISPLAY_GRAPHIC
alwaysDisplayGraphic property is false.
public static final String DEFAULT_BACKGROUND_COLOR
backgroundColor property is "".
public static final WDBusinessGraphicsType DEFAULT_CHART_TYPE
chartType property is WDBusinessGraphicsType.COLUMNS.
public static final String DEFAULT_CUSTOMIZING
customizing property is "".
public static final WDBusinessGraphicsDimension DEFAULT_DIMENSION
dimension property is WDBusinessGraphicsDimension.TWO.
public static final String DEFAULT_FONT_FAMILY
fontFamily property is "".
public static final int DEFAULT_HEIGHT
height property is 300.
public static final String DEFAULT_IGS_URL
igsUrl property is "".
public static final String DEFAULT_TRANSPARENT_COLOR
transparentColor property is "".
public static final int DEFAULT_WIDTH
width property is 300.
| Method Detail |
public IWDAction getOnAction()
onAction.
onActionmappingOfOnAction()public void setOnAction(IWDAction action)
onAction.
action - the action assigned to the eventgetOnAction()public IWDParameterMapping mappingOfOnAction()
onAction.
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)
{
IWDBusinessGraphics myBusinessGraphics = (IWDBusinessGraphics) view.getElement("ID-of-BusinessGraphics");
myBusinessGraphics.mappingOfOnAction().addSourceMapping
(
IWDBusinessGraphics.IWDOnAction.ID, // event parameter name
"name-of-action-parameter" // (type String)
);
}
Event onAction has the following parameters:
String id
onActiongetOnAction()public void bindAlwaysDisplayGraphic(String path)
alwaysDisplayGraphic property to the context attribute specified by the given path.
path - the context path of the attribute to which the alwaysDisplayGraphic property will be boundpublic void bindAlwaysDisplayGraphic(IWDAttributeInfo attributeInfo)
alwaysDisplayGraphic property to the context attribute specified by the given attribute info.
attributeInfo - the info of the context attribute to which the alwaysDisplayGraphic property will be boundpublic String bindingOfAlwaysDisplayGraphic()
alwaysDisplayGraphic property.
alwaysDisplayGraphic property is currently boundpublic boolean getAlwaysDisplayGraphic()
alwaysDisplayGraphic property.
The initial value is false.
alwaysDisplayGraphic propertysetAlwaysDisplayGraphic(boolean)public void setAlwaysDisplayGraphic(boolean value)
alwaysDisplayGraphic property to the given value.
value - the new value of the alwaysDisplayGraphic propertygetAlwaysDisplayGraphic()public String getBackgroundColor()
backgroundColor property.
The initial value is "".
The background color.
backgroundColor propertysetBackgroundColor(String)public void setBackgroundColor(String backgroundColor)
backgroundColor property to the given value.
backgroundColor - the new value of the backgroundColor propertygetBackgroundColor()public void bindCategorySource(String path)
categorySource property to the context attribute specified by the given path.
path - the context path of the attribute to which the categorySource property will be boundpublic void bindCategorySource(IWDNodeInfo nodeInfo)
categorySource property to the context node specified by the given node info.
nodeInfo - the info of the context node to which the categorySource property will be boundpublic String bindingOfCategorySource()
categorySource property.
categorySource property is currently boundpublic WDBusinessGraphicsType getChartType()
chartType property.
The initial value is WDBusinessGraphicsType.COLUMNS.
Specifies the chart type.
chartType propertysetChartType(WDBusinessGraphicsType)public void setChartType(WDBusinessGraphicsType chartType)
chartType property to the given value.
chartType - the new value of the chartType propertygetChartType()public String getCustomizing()
customizing property.
The initial value is "".
Describes how the chart is displayed on the screen. This property is
assigned to a Web address (URL) linking to an XML file that describes the
appearance of the business graphic on the screen - for example, the graphic
color, the background color, fonts, and so on. It also specifies whether the
graphic displays a legend or not.
You can also specify these settings directly in the SAP NetWeaver Developer
Studio using the Chart Designer tool. To call the tool, place the cursor on
the UI element, click the right mouse button, and select the Start Chart
Designer menu option in the context menu.
Other attributes (e.g. dimension, fontFamily etc.) override these settings
if they collide.
customizing propertysetCustomizing(String)public void setCustomizing(String customizing)
customizing property to the given value.
customizing - the new value of the customizing propertygetCustomizing()public WDBusinessGraphicsDimension getDimension()
dimension property.
The initial value is WDBusinessGraphicsDimension.TWO.
Describes the dimensions of the chart. The following dimensions are
available:
pseudo_three A pseudo-three-dimensional chart, the z-axis is not displayed.
three A real three-dimensional chart.
two A two-dimensional chart (surface diagram).
dimension propertysetDimension(WDBusinessGraphicsDimension)public void setDimension(WDBusinessGraphicsDimension dimension)
dimension property to the given value.
dimension - the new value of the dimension propertygetDimension()public String getFontFamily()
fontFamily property.
The initial value is "".
Specifies the font family for the graphic elements.
fontFamily propertysetFontFamily(String)public void setFontFamily(String fontFamily)
fontFamily property to the given value.
fontFamily - the new value of the fontFamily propertygetFontFamily()public int getHeight()
height property.
The initial value is 300.
Specifies the height of the chart and can be specified in relative CSS units
like em, ex, or percentage.
height propertysetHeight(int)public void setHeight(int height)
height property to the given value.
height - the new value of the height propertygetHeight()public String getIgsUrl()
igsUrl property.
The initial value is "".
This property can specify the Web address (URL) of the server on which the
Internet Graphics Service should run. You can use it to overwrite the global
URL for which the Web Dynpro System Configuration in the default.properties
file has been set.
igsUrl propertysetIgsUrl(String)public void setIgsUrl(String igsUrl)
igsUrl property to the given value.
igsUrl - the new value of the igsUrl propertygetIgsUrl()public void bindSeriesSource(String path)
seriesSource 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 seriesSource property will be boundpublic void bindSeriesSource(IWDNodeInfo nodeInfo)
seriesSource property to the context node specified by the given node info.
Note: This property must be bound to the context!
nodeInfo - the info of the context node to which the seriesSource property will be boundpublic String bindingOfSeriesSource()
seriesSource property.
Note: This property must be bound to the context!
seriesSource property is currently boundpublic String getTransparentColor()
transparentColor property.
The initial value is "".
The color that is to be handled as transparent. Colors can be specified as
RGB, HSB or X11-like.
e.g. "rgb(255,0,0)" or "slateblue".
transparentColor propertysetTransparentColor(String)public void setTransparentColor(String transparentColor)
transparentColor property to the given value.
transparentColor - the new value of the transparentColor propertygetTransparentColor()public int getWidth()
width property.
The initial value is 300.
Specifies the width of the chart and can be specified in relative CSS units
like em, ex, or percentage.
width propertysetWidth(int)public void setWidth(int width)
width property to the given value.
width - the new value of the width propertygetWidth()public IWDCategory getCategory()
Category element.
Category elementsetCategory(IWDCategory)public void setCategory(IWDCategory category)
Category element.
category - the new categorygetCategory()public void destroyCategory()
Category element.
Destroyed view elements do not exist any longer in their view, i.e. a new element may be
created with the same ID.
public void addSeries(IWDAbstractSeries series)
Series at the end of the SeriesList list.
series - the Series to be added to the listgetSeriesList()
public void addSeries(IWDAbstractSeries series,
int index)
Series at the specified (zero-based) index into the SeriesList list.
series - the Series to be inserted into the listindex - (zero-based) insertion position in the listgetSeriesList()
public void swapSeriesList(int i,
int j)
SeriesList at the given indices.
i - index of the first Series to swapj - index of the second Series to swap
IndexOutOfBoundsException - If one of the indices is out of boundspublic IWDAbstractSeries[] getSeriesList()
SeriesList list as an array.
SeriesList listpublic IWDAbstractSeries getSeries(int index)
Series at the given index.
Series at the given indexpublic int indexOfSeries(IWDAbstractSeries series)
SeriesList list,
returns -1 if the element is not in the list.
public int numberOfSeriesList()
SeriesList.
SeriesListgetSeriesList()public boolean hasSeriesList()
true if there exists a Series.
true if there exists a Series, otherwise returns falsegetSeriesList()public Iterator iterateSeriesList()
SeriesList list.
SeriesList listgetSeriesList()public IWDAbstractSeries removeSeries(int index)
Series at the given index from the SeriesList list.
This does not destroy the removed element, i.e. it may be added again!
index - (zero-based) index of the removal position in the list
addSeries(IWDAbstractSeries),
getSeriesList()public IWDAbstractSeries removeSeries(String id)
Series with the given ID from the SeriesList list.
This does not destroy the removed element, i.e. it may be added again!
id - unique ID of the element to be removed from the list
addSeries(IWDAbstractSeries),
getSeriesList()public void removeAllSeriesList()
SeriesList list.
This does not destroy the removed elements, i.e. they may be added again!
addSeries(IWDAbstractSeries),
getSeriesList()public void destroyAllSeriesList()
SeriesList list.
Destroyed view elements do not exist any longer in their view, i.e. new elements may be
created with the same IDs.
public void setDirectCustomizing(String directCustomizing)
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||