Tags:
create new tag
, view all tags
-- PedroRio - 30 Dec 2010

AttributeHandler - Dealing with Attributes

The attributeHandler class is responsible for managing a single attribute in the a given boObject instance. In an Object Model, each attribute is of given type but in the Java API the attributeHandler class is responsible for dealing with all of them (except collection attributes, for that use the BridgeHandler). This means an attributeHandler class has methods to retrieve and set the value of the attribute with different types (it's up to the developer to know an attribute's type). It's possible, however, to check the attribute model definition for its data type.

In the following sections the most important methods of the API will be presented.

Reading attribute value

getValueBoolean

getValueString

getValueLong

getValueDouble

getValueDate

getValueIFile

getValueObject

Setting the attribute value

setValueBoolean

setValueString

setValueLong

setValueDouble

setValueDate

setValueIfile

setValueObject

Definition

getDefAttribute()

getName()

Attribute Behavior

hiddenWhen()

disableWhen()

required()

valid()

haveDefaultValue()

defaultValue()

isDisabled()

setDisabled()

isVisible()

setVisible()

setInvalid()

Edit | Attach | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r1 - 2010-12-30 - PedroRio
 

No permission to view TWiki.WebTopBar

This site is powered by the TWiki collaboration platform Powered by Perl

No permission to view TWiki.WebBottomBar