Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.common.data.ejb.display.layout
Class DisplayLayoutDataBuild  view DisplayLayoutDataBuild download DisplayLayoutDataBuild.java

java.lang.Object
  extended bycom.flexstor.common.data.ejb.Data
      extended bycom.flexstor.common.data.ejb.display.layout.DisplayLayoutData
          extended bycom.flexstor.common.data.ejb.display.layout.DisplayLayoutDataBuild
All Implemented Interfaces:
java.io.Serializable

public class DisplayLayoutDataBuild
extends DisplayLayoutData

This will be the Client "Read" object for retrieving Data from the object. This will be passed to the client when they do a Home.create().getDataObject(key)

Since:
FlexDB 3.0
Version:
1.0

Field Summary
static java.lang.String IDENTIFIER
           
(package private) static long serialVersionUID
           
 
Fields inherited from class com.flexstor.common.data.ejb.display.layout.DisplayLayoutData
fields, id, key, label, position, properties
 
Fields inherited from class com.flexstor.common.data.ejb.Data
DELETE, DELETED, derived, htModifiedStates, htOptions, MODIFY, modTime, NEW_ENTRY, presentState, prevState, UNCHANGED, UPDATED, WARN_BEFORE_DELETE
 
Constructor Summary
DisplayLayoutDataBuild()
           
 
Method Summary
 boolean orderDisplayFields()
          This is a helper function that will take the display fields and order them by position.
 boolean setDisplayFieldDataObjects(java.util.Vector vFields)
          This will set a collection of Display Fields
 boolean setId(int iId)
          Set unique Id for Row in Database
 boolean setKey(com.flexstor.common.keys.ejb.DisplayLayoutKey key)
          This will set the key for this object
 boolean setName(java.lang.String sLabel)
          This will set the Layout Name for this object.
 void setPosition(int pos)
          Set Position for this layout
 void setPropertyDataObjects(java.util.Vector props)
          This will set a list of properties
 
Methods inherited from class com.flexstor.common.data.ejb.display.layout.DisplayLayoutData
getDisplayFieldDataObjects, getId, getKey, getName, getPosition, getProperty, getPropertyDataObjects
 
Methods inherited from class com.flexstor.common.data.ejb.Data
assertEquals, changed, fillCloneInfo, getDateModTime, getModTime, getPresentState, getPreviousState, initializeState, isDeleted, isDerived, isModified, isModified, isObjectPersist, isOptionAllowed, resetModifiedStates, rollBackState, setDeleted, setDerived, setModifiedState, setModTime, setModTime, setNewEntry, setOption, setPerisistState, setPreviousState, setState, setUpdated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDENTIFIER

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

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

DisplayLayoutDataBuild

public DisplayLayoutDataBuild()
Method Detail

setId

public boolean setId(int iId)
Set unique Id for Row in Database

Since:
FlexDB 3.0

setName

public boolean setName(java.lang.String sLabel)
This will set the Layout Name for this object.

Since:
FlexDB 3.0

setDisplayFieldDataObjects

public boolean setDisplayFieldDataObjects(java.util.Vector vFields)
This will set a collection of Display Fields

Since:
FlexDB 3.0

orderDisplayFields

public boolean orderDisplayFields()
This is a helper function that will take the display fields and order them by position. It uses a bubble sort algorithm which is slow for large Vectors, but should be acceptable because of the small number of displayable fields for a layout.

Since:
FlexDB 3.0

setKey

public boolean setKey(com.flexstor.common.keys.ejb.DisplayLayoutKey key)
This will set the key for this object

Since:
FlexDB 3.0

setPosition

public void setPosition(int pos)
Set Position for this layout

Since:
FlexDB 3.0

setPropertyDataObjects

public void setPropertyDataObjects(java.util.Vector props)
This will set a list of properties

Since:
FlexDB 3.0