com.sap.sl.sdk.authoring.datafoundation
Interface TableView


public interface TableView

A representation of the model object 'Table View'.

This object represents the view of a table either in the master view or in another data foundation view.

This interface provides a series of methods to define and retrieve the position, width, and display state of a table in a data foundation view. A table can have different positions, widths, and display states depending on the data foundation view.

The following features are supported:


Method Summary
 Table getTable()
          Returns the value of the 'Table' reference.
 TableState getTableState()
          Returns the value of the 'Table State' attribute.
 int getWidth()
          Returns the value of the 'Width' attribute.
 int getX()
          Returns the value of the 'X' attribute.
 int getY()
          Returns the value of the 'Y' attribute.
 void setTable(Table value)
          Sets the value of the 'Table' reference.
 void setTableState(TableState value)
          Sets the value of the 'Table State' attribute.
 void setWidth(int value)
          Sets the value of the 'Width' attribute.
 void setX(int value)
          Sets the value of the 'X' attribute.
 void setY(int value)
          Sets the value of the 'Y' attribute.
 

Method Detail

getTable

Table getTable()
Returns the value of the 'Table' reference.

This is the data foundation table that the table view contains.

Returns:
the value of the 'Table' reference.
See Also:
setTable(Table)

setTable

void setTable(Table value)
Sets the value of the 'Table' reference.

This is the data foundation table that the table view contains.

Parameters:
value - the new value of the 'Table' reference.
See Also:
getTable()

getTableState

TableState getTableState()
Returns the value of the 'Table State' attribute. The default value is "EXPANDED". The literals are from the enumeration TableState.

A table state represents the display state of a table in a view. Other enum values are "COLLAPSED" and "JOINS_ONLY".

Returns:
the value of the 'Table State' attribute.
See Also:
TableState, setTableState(TableState)

setTableState

void setTableState(TableState value)
Sets the value of the 'Table State' attribute.

A table state represents the display state of a table in a view. The default value is "EXPANDED". Other enum values are "COLLAPSED" and "JOINS_ONLY".

Parameters:
value - the new value of the 'Table State' attribute.
See Also:
TableState, getTableState()

getX

int getX()
Returns the value of the 'X' attribute.

This integer represents the position of the table on the x-axis in the data foundation view. The unit is pixel.

Returns:
the value of the 'X' attribute.
See Also:
setX(int)

setX

void setX(int value)
Sets the value of the 'X' attribute.

This integer represents the position of the table on the x-axis in the data foundation view. It can be positive or negative, but negative values are not recommended. The unit is pixel.

Default value is "0". The position (x=0,y=0) places the table in the upper-left corner of the view.

Parameters:
value - the new value of the 'X' attribute.
See Also:
getX()

getY

int getY()
Returns the value of the 'Y' attribute.

This integer represents the position of the table on the y-axis in the data foundation view. The unit is pixel.

Returns:
the value of the 'Y' attribute.
See Also:
setY(int)

setY

void setY(int value)
Sets the value of the 'Y' attribute.

This integer represents the position of the table on the y-axis in the data foundation view. It can be positive or negative, but negative values are not recommended. The unit is pixel.

Default value is "0". The position (x=0,y=0) places the table in the upper-left corner of the view.

Parameters:
value - the new value of the 'Y' attribute.
See Also:
getY()

getWidth

int getWidth()
Returns the value of the 'Width' attribute. The default value is "-1".

This integer is the width of the table in the data foundation view. The unit is pixel.

Returns:
the value of the 'Width' attribute.
See Also:
setWidth(int)

setWidth

void setWidth(int value)
Sets the value of the 'Width' attribute.

This integer is the width of the table in the data foundation view. The unit is pixel.

Default value is "-1". The table width will fit with the column name max length. All the names will be visible.

Parameters:
value - the new value of the 'Width' attribute.
See Also:
getWidth()


© Copyright 2016 SAP SE or an SAP affiliate company. All rights reserved.