com.ds.fw.dv.list
Class FwDVList

java.lang.Object
  |
  +--com.ds.fw.types.FwSimpleObject
        |
        +--com.ds.fw.dv.FwDV
              |
              +--com.ds.fw.dv.list.FwDVList
All Implemented Interfaces:
java.lang.Cloneable, FwCopyableIF, FwDisplayableIF, FwSimpleObjectIF, java.io.Serializable

public class FwDVList
extends FwDV

See Also:
Serialized Form

Field Summary
 com.ds.fw.dv.list.FwDVActions actions
           
 com.ds.fw.dv.list.FwDVListData data
           
 
Fields inherited from class com.ds.fw.dv.FwDV
dvProperties, locale, params
 
Constructor Summary
FwDVList()
          The constructor
 
Method Summary
 java.lang.String actionView(com.ds.fw.dv.list.FwDVListData data, int i)
          Used to manage all the actions for a keyword in a cell
 java.lang.String display()
          Generate the html code for displaying a html table.
 java.lang.String displayAddNewItem()
          Generate html code for adding new items
 java.lang.String displayAlpha()
          Generate an html code for displaying an index for alphabetical search
 java.lang.String displayBaseForm(java.lang.String action, java.lang.String name, java.lang.String out, long alpha, long cat, long page, java.lang.String search, long sort)
           
 java.lang.String displayHeaders()
          Used to display the name of the columns
 java.lang.String displayInfo(int numrows)
          Generate an html code for displaying information about the current status(page) of the displayed information - if there is more information (has next and/or previous page)
 java.lang.String displayNoItems()
          Generate an html code, indicating that there is no items for the given query
 java.lang.String displayPages(int numrows)
          Used to display an html table with information(filled from a database)
 java.lang.String displayRow(com.ds.fw.dv.list.FwDVListData data, int i)
          Used to display a row .
 java.lang.String displaySearch()
          Used to display a text field for search in a html page
 com.ds.fw.dv.list.FwDVActions getActions()
           
 com.ds.fw.dv.list.FwDVListData getData()
           
 int getNumCells()
          Gets the number of cells
 com.ds.fw.dv.list.FwDVListProperties getP()
           
 void init()
          Initsialize with default values.
 void setActions(com.ds.fw.dv.list.FwDVActions n)
           
 void setData(com.ds.fw.dv.list.FwDVListData n)
           
 
Methods inherited from class com.ds.fw.dv.FwDV
getLocale, getParams, getProperties, setLocale, setParams, setProperties
 
Methods inherited from class com.ds.fw.types.FwSimpleObject
getClassName, getClone, getCopy, getCopy, getDeepCopy, getDisplayString, getDisplayStringFor, postCopy, printStackTrace, toString, toStringValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

actions

public com.ds.fw.dv.list.FwDVActions actions

data

public com.ds.fw.dv.list.FwDVListData data
Constructor Detail

FwDVList

public FwDVList()
The constructor

Method Detail

init

public void init()
Initsialize with default values. Called by the constructor.

Overrides:
init in class FwDV

getP

public com.ds.fw.dv.list.FwDVListProperties getP()

setActions

public void setActions(com.ds.fw.dv.list.FwDVActions n)

getActions

public com.ds.fw.dv.list.FwDVActions getActions()

setData

public void setData(com.ds.fw.dv.list.FwDVListData n)

getData

public com.ds.fw.dv.list.FwDVListData getData()

getNumCells

public int getNumCells()
Gets the number of cells

Returns:
the number of the cells

actionView

public java.lang.String actionView(com.ds.fw.dv.list.FwDVListData data,
                                   int i)
Used to manage all the actions for a keyword in a cell

Parameters:
data -
i -
Returns:
the html code

displaySearch

public java.lang.String displaySearch()
Used to display a text field for search in a html page

Returns:
the html code as string

displayHeaders

public java.lang.String displayHeaders()
Used to display the name of the columns

Returns:
the html code

displayRow

public java.lang.String displayRow(com.ds.fw.dv.list.FwDVListData data,
                                   int i)
Used to display a row . This method is used to display some database information in a html table row

Parameters:
data - FwDVListData object , containing the necessary information
i -
Returns:
the html code

displayPages

public java.lang.String displayPages(int numrows)
Used to display an html table with information(filled from a database)

Parameters:
numrows - - the number of the rows
Returns:
the html code as string

displayInfo

public java.lang.String displayInfo(int numrows)
Generate an html code for displaying information about the current status(page) of the displayed information - if there is more information (has next and/or previous page)

Parameters:
numrows - - the number of rows for the html table
Returns:
the html code as string

displayAlpha

public java.lang.String displayAlpha()
Generate an html code for displaying an index for alphabetical search

Returns:
the html code as string

displayBaseForm

public java.lang.String displayBaseForm(java.lang.String action,
                                        java.lang.String name,
                                        java.lang.String out,
                                        long alpha,
                                        long cat,
                                        long page,
                                        java.lang.String search,
                                        long sort)

displayNoItems

public java.lang.String displayNoItems()
Generate an html code, indicating that there is no items for the given query

Returns:
the html code as string

displayAddNewItem

public java.lang.String displayAddNewItem()
Generate html code for adding new items

Returns:
the html code as string

display

public java.lang.String display()
Generate the html code for displaying a html table. The table information is get from a database.

Returns:
the html code as string