|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.iai.ilcd.webgui.controller.ui.AbstractDataSetHandler<T,D>
T
- Type of model object that this handler providespublic abstract class AbstractDataSetHandler<T extends DataSet,D extends DataSetDao<T,?>>
Handler for DataSet view
Constructor Summary | |
---|---|
AbstractDataSetHandler(D daoInstance)
Initialize handler |
Method Summary | |
---|---|
protected D |
getDaoInstance()
Get the DAO instance of this handler |
T |
getDataSet()
Get the data set |
java.lang.String |
getDataSetIdString()
Get the data set id as string |
protected boolean |
isStringNullOrEmpty(java.lang.String s)
Determine if string is null or empty . |
void |
setDataSet(T dataSet)
Set the data set |
void |
setDataSetIdString(java.lang.String dataSetIdString)
Set the data set ID as string, will trigger loading the object via provided DAO |
protected void |
setDataSetIdString(java.lang.String dataSetIdString,
boolean doLoad)
Set the data set ID as string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractDataSetHandler(D daoInstance)
daoInstance
- matching DAOMethod Detail |
---|
public void setDataSet(T dataSet)
dataSet
- data set to setpublic T getDataSet()
public java.lang.String getDataSetIdString()
public void setDataSetIdString(java.lang.String dataSetIdString)
dataSetIdString
- the data set ID as stringprotected void setDataSetIdString(java.lang.String dataSetIdString, boolean doLoad)
dataSetIdString
- the data set ID as stringdoLoad
- indicate if data should be loaded from daoprotected final D getDaoInstance()
protected final boolean isStringNullOrEmpty(java.lang.String s)
null
or empty
. Please note that if string is not
null
, it is trimmed
before empty check.
s
- string to test
true
if null
or empty, else false
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |