com.ibm.xsp.model
Class AbstractViewRowData

java.lang.Object
  extended by com.ibm.xsp.model.AbstractViewRowData
All Implemented Interfaces:
ViewRowData

public abstract class AbstractViewRowData
extends java.lang.Object
implements ViewRowData


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.ibm.xsp.model.ViewRowData
ViewRowData.ColumnInfo, ViewRowData.ValueColumnInfo
 
Field Summary
static java.lang.String ACTION
           
static java.lang.String ACTION_EDIT
           
static java.lang.String ACTION_NEW
           
static java.lang.String ACTION_OPEN
           
static java.lang.String ID
           
 
Constructor Summary
protected AbstractViewRowData(ViewDataModel dataModel)
           
 
Method Summary
protected abstract  java.lang.Object doGetColumnValue(java.lang.String name)
          Return the value for the specified column.
protected abstract  java.lang.String doGetId()
          Return the unique id for this row.
protected abstract  java.lang.String doGetVirtualPageName()
          Return the virtual page name for use with this row.
 ViewRowData.ColumnInfo getColumnInfo(java.lang.String name)
          Return the column info for the specified column.
 java.lang.Object getColumnValue(java.lang.String name)
          Return the value for the specified column.
 java.lang.String getId()
          Return the unique id for this row
 long getNumber()
          Return the Number - simply returns 0
 java.lang.String getOpenPageURL(java.lang.String pageName, boolean readOnly)
          Construct a URL that will open the appropriate page for row data in the View (non-Javadoc)
 int getResponseCount()
          Return the number of response document.
 int getResponseLevel()
          Return the Response Level.
 java.lang.String getRowNumber()
          Return the row number for this row of data in a View.
 boolean isReadOnly(java.lang.String name)
          Return true if the named value is read only.
 boolean isSelected()
          Return true if this View Row Data entry is selected (non-Javadoc)
 void setColumnValue(java.lang.String name, java.lang.Object value)
          Set the value for the specified column.
 void setSelected(boolean selected)
          Set this View Row Data entry as selected, or not, depending on parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.xsp.model.ViewRowData
getValue
 

Field Detail

ID

public static final java.lang.String ID
See Also:
Constant Field Values

ACTION

public static final java.lang.String ACTION
See Also:
Constant Field Values

ACTION_NEW

public static final java.lang.String ACTION_NEW
See Also:
Constant Field Values

ACTION_OPEN

public static final java.lang.String ACTION_OPEN
See Also:
Constant Field Values

ACTION_EDIT

public static final java.lang.String ACTION_EDIT
See Also:
Constant Field Values
Constructor Detail

AbstractViewRowData

protected AbstractViewRowData(ViewDataModel dataModel)
Method Detail

getColumnInfo

public ViewRowData.ColumnInfo getColumnInfo(java.lang.String name)
Description copied from interface: ViewRowData
Return the column info for the specified column.

Specified by:
getColumnInfo in interface ViewRowData
Returns:

getColumnValue

public java.lang.Object getColumnValue(java.lang.String name)
Description copied from interface: ViewRowData
Return the value for the specified column.

Specified by:
getColumnValue in interface ViewRowData
Returns:

setColumnValue

public void setColumnValue(java.lang.String name,
                           java.lang.Object value)
Description copied from interface: ViewRowData
Set the value for the specified column.

Specified by:
setColumnValue in interface ViewRowData

getId

public java.lang.String getId()
Return the unique id for this row

Returns:
the unique id for this row

getNumber

public long getNumber()
Return the Number - simply returns 0

Returns:
0

getOpenPageURL

public java.lang.String getOpenPageURL(java.lang.String pageName,
                                       boolean readOnly)
Construct a URL that will open the appropriate page for row data in the View (non-Javadoc)

Specified by:
getOpenPageURL in interface ViewRowData
Returns:
See Also:
ViewRowData.getOpenPageURL(java.lang.String, boolean)

getResponseCount

public int getResponseCount()
Return the number of response document. Simply returns 0. (non-Javadoc)

See Also:
com.ibm.xsp.model.ViewRowData#getResponseCount()

getResponseLevel

public int getResponseLevel()
Return the Response Level. Simply returns 0. (non-Javadoc)

See Also:
com.ibm.xsp.model.ViewRowData#getResponseLevel()

getRowNumber

public java.lang.String getRowNumber()
Return the row number for this row of data in a View. Simply returns null. (non-Javadoc)

See Also:
com.ibm.xsp.model.ViewRowData#getRowNumber()

isReadOnly

public boolean isReadOnly(java.lang.String name)
Description copied from interface: ViewRowData
Return true if the named value is read only.

Specified by:
isReadOnly in interface ViewRowData
Returns:

isSelected

public boolean isSelected()
Return true if this View Row Data entry is selected (non-Javadoc)

See Also:
com.ibm.xsp.model.ViewRowData#isSelected()

setSelected

public void setSelected(boolean selected)
Set this View Row Data entry as selected, or not, depending on parameter.

Parameters:
selected - true means select, false means remove this View Row from the list of selected rows. (non-Javadoc)
See Also:
com.ibm.xsp.model.ViewRowData#setSelected(boolean)

doGetColumnValue

protected abstract java.lang.Object doGetColumnValue(java.lang.String name)
Return the value for the specified column.


doGetId

protected abstract java.lang.String doGetId()
Return the unique id for this row.


doGetVirtualPageName

protected abstract java.lang.String doGetVirtualPageName()
Return the virtual page name for use with this row.