org.scrashmeow.ojb.console.ui.control.grid.factory
Class ObjectReferenceGridControlFactory

java.lang.Object
  |
  +--org.scrashmeow.ojb.console.ui.control.OjbcViewControlFactory
        |
        +--org.scrashmeow.ojb.console.ui.control.grid.factory.ObjectReferenceGridControlFactory
All Implemented Interfaces:
ApplicationServiceAware, java.io.Serializable

public class ObjectReferenceGridControlFactory
extends OjbcViewControlFactory

Author:
alexander To change this generated comment edit the template variable "typecomment": Window>Preferences>Java>Templates. To enable and disable the creation of type comments go to Window>Preferences>Java>Code Generation.
See Also:
Serialized Form

Field Summary
protected  org.apache.ojb.broker.metadata.ClassDescriptor classDescriptor
          Field classDescriptor
protected  java.lang.String dispatchProperty
          Field dispatchProperty
protected  java.lang.String nullValue
          Field nullValue
protected  java.lang.String selectedformName
          Field selectedformName
 
Constructor Summary
ObjectReferenceGridControlFactory()
          Constructor for GridControlFactory.
 
Method Summary
protected  GridActionBar createActionBar(int objectCount)
          Method createActionBar @add-javadoc!!!
 GridControl createGrid(java.lang.Object inst)
          Creates a grid control of data.
protected  GridControl createGridControl()
          Method createGridControl @add-javadoc!!!
protected  java.util.List createGridHeaders()
          Method buildGridHeaders.
protected  java.util.List createGridRow(java.lang.Object inst)
          Method createGridRow @add-javadoc!!!
protected  GridItem createHeader(java.lang.String attrName)
          Method createHeader @add-javadoc!!!
protected  GridDataLink createHeaderItem()
          Method createHeaderItem @add-javadoc!!!
protected  boolean[] determineFieldsToDisplayFlags(org.apache.ojb.broker.metadata.ClassDescriptor cld)
          Method determineFieldsToDisplayFlags @add-javadoc!!!
 org.apache.ojb.broker.metadata.ClassDescriptor getClassDescriptor()
          Returns the classDescriptor.
 java.lang.String getDispatchProperty()
          Returns the dispatchProperty.
 java.lang.String getNullValue()
          Returns the nullValue.
static ObjectReferenceGridControlFactory newInstance(ApplicationService service, HttpServletRequest request, org.apache.ojb.broker.metadata.ClassDescriptor cld, java.lang.String dispatchProperty)
          Method newInstance @add-javadoc!!!
 void setClassDescriptor(org.apache.ojb.broker.metadata.ClassDescriptor classDescriptor)
          Sets the classDescriptor.
 void setDispatchProperty(java.lang.String dispatchProperty)
          Sets the dispatchProperty.
 void setNullValue(java.lang.String nullValue)
          Sets the nullValue.
 
Methods inherited from class org.scrashmeow.ojb.console.ui.control.OjbcViewControlFactory
getApplicationService, getRequest, getSelfLink, getSelfParams, getUserLocale, initialize, initialize, setApplicationService, setRequest, setSelfLink, setSelfParams, setUserLocale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nullValue

protected java.lang.String nullValue
Field nullValue


classDescriptor

protected org.apache.ojb.broker.metadata.ClassDescriptor classDescriptor
Field classDescriptor


selectedformName

protected java.lang.String selectedformName
Field selectedformName


dispatchProperty

protected java.lang.String dispatchProperty
Field dispatchProperty

Constructor Detail

ObjectReferenceGridControlFactory

public ObjectReferenceGridControlFactory()
Constructor for GridControlFactory.

Method Detail

newInstance

public static ObjectReferenceGridControlFactory newInstance(ApplicationService service,
                                                            HttpServletRequest request,
                                                            org.apache.ojb.broker.metadata.ClassDescriptor cld,
                                                            java.lang.String dispatchProperty)
                                                     throws ServiceException
Method newInstance @add-javadoc!!!

Parameters:
service - @add-javadoc!!!
request - @add-javadoc!!!
cld - @add-javadoc!!!
dispatchProperty - @add-javadoc!!!
Returns:
@add-javadoc!!!
Throws:
ServiceException - @add-javadoc!!!

createGrid

public GridControl createGrid(java.lang.Object inst)
                       throws ServiceException
Creates a grid control of data. This builds the basics for a grid control w/o adding any link or form related information.

Parameters:
inst - @add-javadoc!!!
Returns:
GridControl
Throws:
ServiceException - @add-javadoc!!!

getNullValue

public java.lang.String getNullValue()
Returns the nullValue.

Returns:
String

setNullValue

public void setNullValue(java.lang.String nullValue)
Sets the nullValue.

Parameters:
nullValue - The nullValue to set

getClassDescriptor

public org.apache.ojb.broker.metadata.ClassDescriptor getClassDescriptor()
Returns the classDescriptor.

Returns:
ClassDescriptor

setClassDescriptor

public void setClassDescriptor(org.apache.ojb.broker.metadata.ClassDescriptor classDescriptor)
Sets the classDescriptor.

Parameters:
classDescriptor - The classDescriptor to set

createGridHeaders

protected java.util.List createGridHeaders()
                                    throws ServiceException
Method buildGridHeaders.

Returns:
List
Throws:
ServiceException - @add-javadoc!!!

createHeader

protected GridItem createHeader(java.lang.String attrName)
Method createHeader @add-javadoc!!!

Parameters:
attrName - @add-javadoc!!!
Returns:
@add-javadoc!!!

createGridRow

protected java.util.List createGridRow(java.lang.Object inst)
                                throws ServiceException
Method createGridRow @add-javadoc!!!

Parameters:
inst - @add-javadoc!!!
Returns:
@add-javadoc!!!
Throws:
ServiceException - @add-javadoc!!!

createHeaderItem

protected GridDataLink createHeaderItem()
Method createHeaderItem @add-javadoc!!!

Returns:
@add-javadoc!!!

createGridControl

protected GridControl createGridControl()
Method createGridControl @add-javadoc!!!

Returns:
@add-javadoc!!!

createActionBar

protected GridActionBar createActionBar(int objectCount)
Method createActionBar @add-javadoc!!!

Parameters:
objectCount - @add-javadoc!!!
Returns:
@add-javadoc!!!

determineFieldsToDisplayFlags

protected boolean[] determineFieldsToDisplayFlags(org.apache.ojb.broker.metadata.ClassDescriptor cld)
Method determineFieldsToDisplayFlags @add-javadoc!!!

Parameters:
cld - @add-javadoc!!!
Returns:
@add-javadoc!!!

getDispatchProperty

public java.lang.String getDispatchProperty()
Returns the dispatchProperty.

Returns:
String

setDispatchProperty

public void setDispatchProperty(java.lang.String dispatchProperty)
Sets the dispatchProperty.

Parameters:
dispatchProperty - The dispatchProperty to set


Copyright © 2003 Alexander Bibighaus et al. All Rights Reserved.