|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.action.ActionForm
com.actuate.activeportal.forms.BaseActionForm
com.actuate.activeportal.forms.TableRowEditorActionForm
public class TableRowEditorActionForm
This form is used when editing/inserting a row in the table parameter. It handles the display of column names and values for each of the columns. This form is populated by the framework when the form is submitted by the browser and by the action class when the page is loaded with the initial values. The framework manages this form completely.
Constructor Summary | |
---|---|
TableRowEditorActionForm()
|
Method Summary | |
---|---|
void |
fixUTF8()
This method is called to convert the data submitted by the browser to a java string value. |
java.lang.String |
getColumnName(int index)
Returns the name of a column at a particular index |
java.lang.String[] |
getColumnNames()
Returns the names of all the columns that are present in this table. |
java.lang.String[] |
getColumnTypeDescription()
Returns the description that is displayed for the data type of the column along with whether it is required or not |
com.actuate.schemas.FieldDefinition[] |
getFieldDefinitions()
Returns the list of all field definitions that are available in this table parameter |
com.actuate.schemas.FieldValue[] |
getFieldValues()
Returns the values of all the fields in this table |
java.lang.String |
getMode()
Returns the current mode i.e. |
java.lang.String |
getNonNullValue(int index)
Returns the value in the field at a particular index. |
java.lang.String |
getTitle()
Returns the title that is displayed in the window. |
java.lang.String |
getValue(int index)
Returns the value in the field at a particular index. |
void |
reset(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
This method is called by the struts framework. |
void |
setColumnNames(java.lang.String[] saColumnNames)
Sets the names of all the columns that are available in the table |
void |
setColumnTypeDescription(java.lang.String[] strings)
Sets the descriptions to be displayed for all the columns |
void |
setFieldDefinitions(com.actuate.schemas.FieldDefinition[] definitions)
Sets the definitions of all the fields thar are available in this table parameter |
void |
setFieldValues(com.actuate.schemas.FieldValue[] values)
Sets the values of all the columns in this row. |
void |
setMode(java.lang.String string)
Sets the current mode i.e. |
void |
setTitle(java.lang.String string)
Sets the title to displayed in the window |
void |
setValue(int index,
java.lang.String value)
Sets the value of a column at a particular index. |
Methods inherited from class com.actuate.activeportal.forms.BaseActionForm |
---|
isPostback, setPostback |
Methods inherited from class org.apache.struts.action.ActionForm |
---|
getMultipartRequestHandler, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate, validate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableRowEditorActionForm()
Method Detail |
---|
public void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
reset
in class org.apache.struts.action.ActionForm
mapping
- request
- public java.lang.String getMode()
public java.lang.String getTitle()
public void setMode(java.lang.String string)
string
- The current mode.public void setTitle(java.lang.String string)
string
- THe window titlepublic void setColumnNames(java.lang.String[] saColumnNames)
saColumnNames
- An array of column namespublic java.lang.String[] getColumnNames()
public java.lang.String getColumnName(int index)
index
- The index of the column whose name is to be retrieved
public void setFieldValues(com.actuate.schemas.FieldValue[] values)
values
- The values of all the columnspublic com.actuate.schemas.FieldValue[] getFieldValues()
public java.lang.String getNonNullValue(int index)
index
- The index of the column whose value is to be retrieved
public java.lang.String getValue(int index)
index
- The index of the column whose value is to be retrieved
public void setValue(int index, java.lang.String value)
index
- The index of the column whose value is to be setvalue
- The value to be set
It will throw an ArrayIndexOutOfBoundsException if the index is not found.public void fixUTF8()
fixUTF8
in class BaseActionForm
public void setFieldDefinitions(com.actuate.schemas.FieldDefinition[] definitions)
definitions
- The list of field definitionspublic com.actuate.schemas.FieldDefinition[] getFieldDefinitions()
public java.lang.String[] getColumnTypeDescription()
public void setColumnTypeDescription(java.lang.String[] strings)
strings
- The descriptions for the columns
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |