|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sas.Component | +--com.sas.servlet.beans.BaseTransformation | +--com.sas.servlet.beans.mdtable.BaseMDTable
This is an abstract class that contains all methods needed to create a table that represents a multidimensional table that are not specific to a particular implementation such as HTML.
Field Summary | |
protected AxisInterface |
columnAxis
columnAxis - column Axis object for the current model. |
protected int |
columnCount
columnCount - total number of columns available on the current model. |
protected AxisLabelInterface[][] |
columnLabels
columnLabels - array containing columnLabel information used internally to execute commands on the model. |
protected LevelInterface[] |
columnLevels
columnLevels - array containing all Level objects on the column axis of the model. |
protected OrderedCollection |
columnUpAxisLabels
columnUpAxisLabels - collection of AxisLabelInterfaces that represent the Up labels in the column dimension. |
protected int |
endColumn
endColumn - last column in the table to display. |
protected int |
endRow
endRow - last row in the table to display. |
protected OrderedCollection |
executedCommands
executedCommands - collection containing com.sas.servlet.beans.mdtabel.MDCommand objects that have been executed. |
protected OrderedCollection |
mdCommands
mdCommands - collection containing com.sas.servlet.beans.mdtabel.MDCommand objects. |
protected AxisInterface |
rowAxis
rowAxis - row Axis object for the current model. |
protected int |
rowCount
rowCount - total number of rows available on the current model. |
protected AxisLabelInterface[][] |
rowLabels
rowLabels - array containing rowLabel information used internally to execute commands on the model. |
protected LevelInterface[] |
rowLevels
rowLevels - array containing all Level objects on the row axis of the model. |
protected OrderedCollection |
rowUpAxisLabels
rowUpAxisLabels - collection of AxisLabelInterfaces that represent the Up labels in the row dimension. |
protected int |
startColumn
startColumn - first column in the table to display. |
protected int |
startRow
startRow - first row in the table to display. |
Constructor Summary | |
BaseMDTable()
|
Method Summary | |
protected MDCommand |
buildMDCommand(AxisLabelInterface label,
String action,
String axis)
This method is used internally by the writeColumnHeadings and writeRows methods. |
protected MDCommand |
buildMDCommand(String action,
String axis,
int startValue,
int endValue)
This method is used internally by the writeNavigationBars method. |
void |
executeCommand(String name)
This methods executes the com.sas.servlet.beans.mdtabel.MDCommand object associated with the name which is passed as a String argument to the method. |
int |
getBorderWidth()
Gets the width of the outer border around the table. |
int |
getCellPadding()
Gets the number of pixels between the border of a cell and the cell's contents. |
int |
getCellSpacing()
Gets the number of pixels between the border of each cell. |
int |
getMaxColumns()
Returns the maximum number of columns to be formatted for each display of the table. |
int |
getMaxRows()
Returns the maximum number of row to be formatted for each display of the table. |
protected void |
getModelInformation(MultidimensionalTableV2Interface mi)
This method is only relevent to someone who is extending BaseMDTable and is implementing the writeTable(), writeNavigationBars(), writeTableTitles(), writeColumnHeadings(), or writeRows() methods. |
Vector |
getRequiredInterfaces()
Sets the required interface that a model must implement in order to attach to this bean. |
int |
getWidth()
Gets the width of the table in pixels. |
int |
getWidthPercentage()
Gets the width of the table as a percentage |
void |
initialize()
Initialize the MDTable Object. |
void |
setBorderWidth(int border)
Sets the width of the outer border around the table in pixels. |
void |
setCellPadding(int padding)
Sets the number of pixels between the border of a cell and the cell's contents. |
void |
setCellSpacing(int spacing)
Sets the number of pixels between the border of each cell. |
void |
setMaxColumns(int n)
Sets the maximum number of columns to be formatted for each display of the table. |
void |
setMaxRows(int n)
Sets the maximum number of row to be formatted for each display of the table. |
void |
setModelInterface(ModelInterface newValue)
Specifies the model to display in the view. |
void |
setWidth(int pixels)
Sets the width of the table in pixels. |
void |
setWidthPercentage(int width)
Sets the width of the table as a percentage. |
String |
toString()
|
void |
write(PrintWriter out)
Writes the transformed representation of the object |
protected void |
writeColumnHeadings(OutputStream out)
Writes the column headings. |
protected abstract void |
writeColumnHeadings(PrintWriter out)
Writes the column headings. |
protected void |
writeColumnHeadings(Writer out)
Writes the column headings. |
protected void |
writeRows(OutputStream out)
Write the table rows. |
protected abstract void |
writeRows(PrintWriter out)
Write the table rows. |
protected void |
writeRows(Writer out)
Write the table rows. |
protected void |
writeTable(PrintWriter out)
Formats and writes the contents of the entire table. |
protected void |
writeTableFooter(OutputStream out)
Writes the table footer |
protected abstract void |
writeTableFooter(PrintWriter out)
Writes the table footer |
protected void |
writeTableFooter(Writer out)
Writes the table footer |
protected void |
writeTableHeader(OutputStream out)
Writes the table header. |
protected abstract void |
writeTableHeader(PrintWriter out)
Writes the table header. |
protected void |
writeTableHeader(Writer out)
Writes the table header. |
protected void |
writeTableNavigationBars(OutputStream out)
Writes the table navigation bars if needed. |
protected abstract void |
writeTableNavigationBars(PrintWriter out)
Writes the table navigation bars if needed. |
protected void |
writeTableNavigationBars(Writer out)
Writes the table navigation bars if needed. |
protected void |
writeTableTitles(OutputStream out)
Writes the table subset information. |
protected abstract void |
writeTableTitles(PrintWriter out)
Writes the table subset information. |
protected void |
writeTableTitles(Writer out)
Writes the table subset information. |
Methods inherited from class com.sas.servlet.beans.BaseTransformation |
getCustomAttributes,
getDescription,
getName,
getParent,
getRequest,
getResponse,
setCustomAttributes,
setDescription,
setName,
setParent,
setRequest,
setResponse,
write,
write,
write |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected OrderedCollection mdCommands
protected OrderedCollection executedCommands
protected AxisLabelInterface[][] columnLabels
protected AxisLabelInterface[][] rowLabels
protected AxisInterface rowAxis
protected AxisInterface columnAxis
protected LevelInterface[] columnLevels
protected LevelInterface[] rowLevels
protected int columnCount
protected int rowCount
protected int startRow
protected int endRow
protected int startColumn
protected int endColumn
protected OrderedCollection rowUpAxisLabels
protected OrderedCollection columnUpAxisLabels
Constructor Detail |
public BaseMDTable()
Method Detail |
public Vector getRequiredInterfaces()
public void setModelInterface(ModelInterface newValue)
null
to disassociate the view from its model.newValue
- The new value to assign the modelInterface property.public String toString()
public void initialize()
public void setWidth(int pixels)
width
- The width in pixelsgetWidth()
public int getWidth()
setWidth(int)
public void setWidthPercentage(int width)
width
- The width as a percentagegetWidthPercentage()
public int getWidthPercentage()
setWidthPercentage(int)
public void setBorderWidth(int border)
border
- The border width in pixelsgetBorderWidth()
public int getBorderWidth()
setBorderWidth(int)
public void setCellSpacing(int spacing)
spacing
- The number of pixels between each cellgetCellSpacing()
public int getCellSpacing()
setCellSpacing(int)
public void setCellPadding(int padding)
padding
- The number of pixels between the cell border and the cell content.getCellPadding()
public int getCellPadding()
setCellPadding(int)
public void setMaxRows(int n)
n
- - maximum number of rows to be formatted.getMaxRows()
public int getMaxRows()
setMaxRows(int)
public void setMaxColumns(int n)
n
- - maximum number of columns to be formatted.getMaxColumns()
public int getMaxColumns()
setMaxColumns(int)
public void write(PrintWriter out) throws IOException
out
- The output streamprotected void writeTable(PrintWriter out) throws IOException
out
- The output streamcom.sas.servlet.beans.mdtable.BaseMDTable#getModelInformation.
protected void writeTableHeader(Writer out) throws IOException
out
- The output streamprotected void writeTableHeader(OutputStream out) throws IOException
out
- The output streamprotected abstract void writeTableHeader(PrintWriter out) throws IOException
out
- The output streamprotected void writeColumnHeadings(Writer out) throws IOException
out
- The output streamgetModelInformation(com.sas.sasserver.mdtable.MultidimensionalTableV2Interface)
protected void writeColumnHeadings(OutputStream out) throws IOException
out
- The output streamgetModelInformation(com.sas.sasserver.mdtable.MultidimensionalTableV2Interface)
protected abstract void writeColumnHeadings(PrintWriter out) throws IOException
out
- The output streamgetModelInformation(com.sas.sasserver.mdtable.MultidimensionalTableV2Interface)
protected void writeRows(Writer out) throws IOException
out
- The output streamgetModelInformation(com.sas.sasserver.mdtable.MultidimensionalTableV2Interface)
protected void writeRows(OutputStream out) throws IOException
out
- The output streamgetModelInformation(com.sas.sasserver.mdtable.MultidimensionalTableV2Interface)
protected abstract void writeRows(PrintWriter out) throws IOException
out
- The output streamgetModelInformation(com.sas.sasserver.mdtable.MultidimensionalTableV2Interface)
protected void writeTableFooter(Writer out) throws IOException
out
- The output streamprotected void writeTableFooter(OutputStream out) throws IOException
out
- The output streamprotected abstract void writeTableFooter(PrintWriter out) throws IOException
out
- The output streamprotected void getModelInformation(MultidimensionalTableV2Interface mi)
writeTable(java.io.PrintWriter)
,
com.sas.servlet.beans.mdtable.BaseMDTable#writeNavigationBars
,
writeTableTitles(java.io.Writer)
,
writeColumnHeadings(java.io.Writer)
,
writeRows(java.io.Writer)
public void executeCommand(String name)
protected MDCommand buildMDCommand(AxisLabelInterface label, String action, String axis)
label
- AxisLabelInterface object associated with this MDCommand objectaction
- action associated with this command, DRILLDOWN or UPaxis
- axis associated with this command, ROW or COLUMNprotected MDCommand buildMDCommand(String action, String axis, int startValue, int endValue)
action
- associated with this command, SCROLLDOWN, SCROLLDOWNMAX, SCROLLUP, SCROLLUPMAX,
SCROLLLEFT, SCROLLLEFTMAX, SCROLLRIGHT, SCROLLRIGHTMAX.axis
- axis associated with this command, ROW or COLUMNprotected void writeTableTitles(Writer out) throws IOException
out
- The output streamprotected void writeTableTitles(OutputStream out) throws IOException
out
- The output streamprotected abstract void writeTableTitles(PrintWriter out) throws IOException
out
- The output streamprotected void writeTableNavigationBars(Writer out) throws IOException
out
- The output streamprotected void writeTableNavigationBars(OutputStream out) throws IOException
out
- The output streamprotected abstract void writeTableNavigationBars(PrintWriter out) throws IOException
out
- The output stream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |