mx.com.brained.model
Interface AwGrid

All Superinterfaces:
org.apache.commons.beanutils.DynaBean
All Known Implementing Classes:
DefaultAwGrid

public interface AwGrid
extends org.apache.commons.beanutils.DynaBean

Title: AwTaglib

Description: Interface that defines the basic methods that an object must implement to handle the data sent by the grid to easy process it in a java application

Copyright: Copyright (c) 2005

Company: Brain-ED

Version:
1.0
Author:
Isidoro Treviņo

Method Summary
 java.util.Collection getData(java.lang.String state)
          Returns a collection containing the data with the specified state
 java.util.Collection getDataList()
          Returns the full collection containing the data, regardless of its state
 java.lang.String getHeader(int index)
          Returns the header of the specified property
 java.util.List getPropertyNames()
          Get the name of the properties that the data class contains
 void setDataClass(java.lang.Class klass)
          Set the type of class that will be populated with the grid's sent data
 void setDataList(java.util.List data)
          Initialize the grid with some data
 void setHeaderString(java.lang.String header)
          Set the identifier that will be used to identify the special header field.
 void setStateString(java.lang.String state)
          Set the identifier that will be used to identify the special data status field.
 
Methods inherited from interface org.apache.commons.beanutils.DynaBean
contains, get, get, get, getDynaClass, remove, set, set, set
 

Method Detail

getData

java.util.Collection getData(java.lang.String state)
Returns a collection containing the data with the specified state

Parameters:
state - String
Returns:
Collection

setDataClass

void setDataClass(java.lang.Class klass)
Set the type of class that will be populated with the grid's sent data

Parameters:
klass - Class

getPropertyNames

java.util.List getPropertyNames()
Get the name of the properties that the data class contains

Returns:
List

setDataList

void setDataList(java.util.List data)
Initialize the grid with some data

Parameters:
data - List

getDataList

java.util.Collection getDataList()
Returns the full collection containing the data, regardless of its state

Returns:
Collection

setStateString

void setStateString(java.lang.String state)
Set the identifier that will be used to identify the special data status field.
Defaults to "dataStatus"

Parameters:
state - String

setHeaderString

void setHeaderString(java.lang.String header)
Set the identifier that will be used to identify the special header field.
Defaults to "header"

Parameters:
header - String

getHeader

java.lang.String getHeader(int index)
Returns the header of the specified property

Parameters:
index - int
Returns:
String


Copyright © 2005 Brain-ED Engineering & Development. All Rights Reserved.