IlvSelectionRectangle

IlvObject
  |
  +--IlvRectangle
       |
       +--IlvDynRectangle
            |
            +--IlvSelectionRectangle
Category:
Common component
JavaScript File:
IlvAbstractSelectionManager.js
Description:
This class defines a selection rectangle.

Since:
JViews 7.5


Constructor Summary
IlvSelectionRectangle(init, parentNode, fillOn)

Method Summary
getObjectID()
Returns the ID of the selected object.
getObjectProperties()
Returns a copy of the properties of the selected object as an object containing keys and values for each of the property ({propertyName1:"propertyValue1", propertyName2:"propertyValue2"}).
getObjectProperty(propertyName)
Returns the value of the property with the given propertyName on the selected object.
getObjectPropertyNames()
Returns the names of the properties of the selected object as an array of strings.
getObjectTag()
Returns the tag of the selected object.
getObjectType()
Returns the type of the selected object.
getProperties()
Returns the additional properties of this selection object as an Array.
setObjectProperties(properties)
Sets the properties of the selected object as an object.
setObjectProperty(propertyName, propertyValue)
Sets the value of the property with the given propertyName on the selected object.

Constructor Detail

IlvSelectionRectangle

IlvSelectionRectangle(init, parentNode, fillOn)
Creates an instance of IlvSelectionRectangle.

Method Detail

getObjectID

getObjectID()
Returns the ID of the selected object.

Since:
JViews 8.0


getObjectProperties

getObjectProperties()
Returns a copy of the properties of the selected object as an object containing keys and values for each of the property ({propertyName1:"propertyValue1", propertyName2:"propertyValue2"}).

Since:
JViews 8.0


getObjectProperty

getObjectProperty(propertyName)
Returns the value of the property with the given propertyName on the selected object.
Parameters:
propertyName - The name of the property.

Since:
JViews 8.0


getObjectPropertyNames

getObjectPropertyNames()
Returns the names of the properties of the selected object as an array of strings.

Since:
JViews 8.0


getObjectTag

getObjectTag()
Returns the tag of the selected object. In Diagrammer this returns the tag of the selected object.

Since:
JViews 8.0


getObjectType

getObjectType()
Returns the type of the selected object. In Diagrammer the possible values are: "node" and "link". In Gantt the possible values are: "activity", "constraint", "reservation" and "resource".

Since:
JViews 8.0


getProperties

getProperties()
Returns the additional properties of this selection object as an Array. The first slot of the array contains the properties of the selected object. In most cases you do not need to use that method and should use accessors that works on selected object properties instead.

See also:
#getObjectProperties
#getObjectPropertyNames
#getObjectProperty


setObjectProperties

setObjectProperties(properties)
Sets the properties of the selected object as an object.
Parameters:
properties - a object containing keys and values for each of the properties to be set ({propertyName1:"propertyValue1", propertyName2:"propertyValue2"}).

Since:
JViews 8.0


setObjectProperty

setObjectProperty(propertyName, propertyValue)
Sets the value of the property with the given propertyName on the selected object. The value can either be a string to set a particular value or null to delete an existing property. For committing the new value to the server see IlvAbstractSelectionManager#commitSelectionProperties .
Parameters:
propertyName - The name of the property.

Since:
JViews 8.0

Inherited Methods from IlvRectangle
getBounds, getScrollPosition, getThickness, isVisible, setBounds, setClip, setColor, setScrollPosition, setThickness, setVisible
Inherited Methods from IlvObject
callDispose, dispose, getClassName, hashCode, inherits, instanceOf, invoke, registerDispose, removeHTML, setClassName, superConstructor, superInvoke, toString, updateVisibility