DOMPropertyAttribute

From Virtual World Web Wiki
Jump to: navigation, search

Marks a DOM Object class property as formal property causing it to be assosiated with an item in the object's Properties collection at runtime. This attribute also specifies various security attributes of the property, and can apply built-in DOM Attributes to the property which will automatically be visible on any instance of any node of the attributed type at run-time.

Remarks [edit]

Properties

bool AttributeTarget {get; set;}
Specifies if this DOM Object property can have DOM Attributes applied to it. Defaults is true.
string Category {get; set;}
A helper for editing UI. Specifies a translatable category name for this property.
bool ClientVisible {get; set;}
Specifies if properties of the attributed type should visible to client UI scripts.
bool ClientWritable {get; set;}
Specifies if properties of the attributed type should writable by client UI scripts.
bool Collapsable {get; set;}
Specifies that this DOM property can be displayed in collapsed property edit mode.
string Dependent {get; set;}
Specifies that this DOM property requires a dependent property to exist and does have to have value.
string DependentRegex {get; set;}
Specifies that the dependent DOM property should be validated with this Regex.
string Description {get; set;}
A helper for editing UI. Specifies a translatable description for this property.
string DisplayName {get; set;}
A helper for editing UI. Specifies a translatable display name for this property.
string[] DropDownItems {get; set;}
Specifies that this DOM property has a drop down selection.
DOMEditable Editable {get; set;}
Specifies the access level for user editing
IList<Type> ImplicitTypes {get; set;}
A list of types that can be implicitly converted to this property's type when setting this property via the properties collection.
float MaxValue {get; set;}
A helper for editing UI. Specifies the numeric maximum value of this DOM property.
float MinValue {get; set;}
A helper for editing UI. Specifies the numeric minimum value of this DOM property.
string PropertyName {get; set;}
The name of the item in the parent object's Properties collection that this formal property should be bound to.
Type PropertyType {get; set;}
Specifies that this DOM property should be of a specific Type.
ResourceTypes ResourceTypes {get; set;}
A helper for editing UI. Specifies a resource value type that makes sense for this property.
bool ServerVisible {get; set;}
Specifies if properties of the attributed type should visible to server scripts.
bool ServerWritable {get; set;}
Specifies if properties of the attributed type should writable by server scripts.
float StepValue {get; set;}
A helper for editing UI. Specifies the step amount for spin controls.
bool Uniform {get; set;}
When applied to a scale vector, specifies if the scale must be uniform (x = y = z)
string ValueRegex {get; set;}
Specifies that this DOM property should be validated with this Regex before setting its value.

Constructors

DOMPropertyAttribute(Type[] implicitTypes)
Constructs a new DOMPropertyAttribute
DOMPropertyAttribute(string propertyName, Type[] implicitTypes)
Constructs a new DOMPropertyAttribute