Overview | File | Class | Tree | Index | Help
| The Gravey 2.5 Framework and AIM RIA
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## Class Item

    Object
       |
       +--GrvObject
             |
             +--EDO
                   |
                   +--PLEDO
                         |
                         +--Item

class Item
extends PLEDO

This class encapsulates an Auction Item record.
Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
See:

- konstructor()

Defined in aimitems.js

Field Summary
`<static> Object` | `EditRules`
`<static> Object` | `Properties`
`<static> Object` | `UpdateID`

Constructor Summary
`Item ()`

Method Summary
`String` | `canCreate(<boolean> appendFlag)` Is it legal to create a new one of "this/these"?
`String` | `canDelete()` Is it legal to delete "this"?
`boolean` | `canUncreate(<boolean> appendFlag)` If created, can we undo creation?
`Item` | `clone()` return a clone of this object
`boolean` | `hasDuplicateItemNum()` custom validation method to verify uniqueness of Item number
`void` | `konstructor( propArray, <String> editDate, <String> editUser, <int> theKey, <ItemModel> holder, <int> optEditStatus, <String> optName )`
`String` | `toString()` return "this" as human-readable string
`String` | `validateItemNum()` custom validation method to verify uniqueness of Item number
`<static> Item` | `Factory(index,holder)` Static factory method to generate blank Item

Methods inherited from class PLEDO
`pushUpdateFields`

Methods inherited from class EDO
`pushEncodedValues, pushValues, makeReadOnly, propValues, edoToolTip, toolTip, isValid, dump, buildUpdateItemPost, pushPosts, getEditRule, setValidity, getValidity, deleteMe, undeleteMe, addMe, isNew, isDeleted, inEdit, canEdit, editMe, uneditMe, collapse, expand, isExpanded, canToggleExpand, toggleExpand, isActive, inLimbo, isViewable, state, action`

Methods inherited from class GrvObject
`souper`

Field Detail

### EditRules

    <static> Object EditRules

### Properties

    <static> Object Properties

### UpdateID

    <static> Object UpdateID

Constructor Detail

### Item

    Item()

Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
See:

- konstructor()

Method Detail

### canCreate

    String canCreate(<boolean> appendFlag)

Is it legal to create a new one of "this/these"?

Parameters:

`appendFlag` - if true then append else insert

Returns:

errmsg or null

### canDelete

    String canDelete()

Is it legal to delete "this"?

Returns:

errmsg or null

### canUncreate

    boolean canUncreate(<boolean> appendFlag)

If created, can we undo creation?

Parameters:

`appendFlag` - if true then append else insert

### clone

    Item clone()

return a clone of this object

### hasDuplicateItemNum

    boolean hasDuplicateItemNum()

custom validation method to verify uniqueness of Item number

Returns:

true iff our item number duplicates any in parent lot

### konstructor

    void konstructor( propArray, <String> editDate, <String> editUser, <int> theKey, <ItemModel> holder, <int> optEditStatus, <String> optName )

Parameters:

`editDate` - date of last edit

`editUser` - ID of last user to edit

`theKey` - unique key of this record

`holder` - parent EDOHolderModel

`optEditStatus` - optional edit status

`optName` - optional name of this instance

`array` - of editable property values in same order as .Properties

### toString

    String toString()

return "this" as human-readable string

### validateItemNum

    String validateItemNum()

custom validation method to verify uniqueness of Item number

Returns:

error message or null if no error

### Factory

    <static> Item Factory(index,holder)

Static factory method to generate blank Item

Overview | File | Class | Tree | Index | Help
| The Gravey 2.5 Framework and AIM RIA
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Documentation generated by JSDoc on Thu Jan 6 12:46:39 2011