Defines a PropertyAction
(not exposed on baja
namespace).
new (require("baja/comp/PropertyAction"))()
PropertyAction
Slot.
A Property
that is also an Action
. Typically this is used for dynamic Actions.
A new object should never be directly created with this Constructor. All Slots are
created internally by BajaScript.
Extends:
Methods
-
equals(obj)
-
Indicates whether some other object is equal to this one.
Parameters:
Name Type Description obj
Object the reference object with which to compare.
- Inherited From:
Returns:
true if this object is the same as the obj argument; false otherwise.
- Type
- Boolean
-
getDefaultFlags()
-
Return the default flags for the Property.
- Inherited From:
Returns:
- Type
- Number
-
getDefaultValue()
-
Return the default value for the Property.
- Inherited From:
Returns:
the default value for the Property.
-
getFacets()
-
Return the Facets for the Property.
- Inherited From:
- See:
Returns:
the Slot Facets
-
getFlags()
-
Return the Flags for the Property.
- Inherited From:
- See:
Returns:
- Type
- Number
-
getName()
-
Return the name of the
Slot
.- Inherited From:
Returns:
- Type
- String
-
getParamDefault()
-
Return the Action's parameter default value.
Returns:
the parameter default value (or null if the
Action doesn't have a parameter).- Type
- baja.Value
-
getParamType()
-
Return the Action's parameter Type.
Returns:
the parameter type (or null if the Action doesn't have a parameter).
- Type
- Type
-
getReturnType()
-
Return the Action's return Type.
Returns:
the return type (or null if the Action doesn't have a return Type).
- Type
- Type
-
getType()
-
Return the Type for this Property.
- Inherited From:
Returns:
the Type for the Property.
-
isAction()
-
Is the Slot an Action? Yes.
- Overrides:
Returns:
- Type
- Boolean
-
isFrozen()
-
Is the Slot frozen?
- Inherited From:
Returns:
- Type
- Boolean
-
isProperty()
-
Is this Slot a Property? Yes.
- Inherited From:
Returns:
- Type
- Boolean
-
isTopic()
-
Is the Slot a Topic?
- Inherited From:
Returns:
- Type
- Boolean
-
toString()
-
Return a
String
representation of theSlot
.- Inherited From:
Returns:
- Type
- String
-
valueOf()
-
Return the inner value of the object.
By default the object's instance is returned.
- Inherited From:
Returns:
the inner value of the object or just the object's instance.
- Type
- *