Class: IWLayerInterface

IWLayerInterface

A an interface for IWLayer and IWLayerGroup

new IWLayerInterface()

An Interface that has to be implemented by IWLayer and IWLayerGroup for visibility an tree functionalitiy

Extends

Methods


add(node)

Adds a new node.
Parameters:
Name Type Description
node Object Object with tree functionality
Inherited From:
Returns:
Type
void

checkIfExistsAsParent(node)

Checks if node already exists as predecessor (to prevent circles).
Parameters:
Name Type Description
node Object Object with tree functionality
Inherited From:
Returns:
Type
Boolean

getChildren()

Returns an array with all children
Inherited From:
Returns:
children
Type
Array

getName()

Returns name of the node element
Inherited From:
Returns:
name
Type
String

getParent()

Returns parent node
Inherited From:
Returns:
node Object with tree functionality
Type
Object

hasChild(child)

Checks if node exists as child.
Parameters:
Name Type Description
child Object
Inherited From:
Returns:
Type
Boolean

hasChildren()

Returns a boolean if node has any childs
Inherited From:
Returns:
Type
Boolean

isMarked()

Returns if node is marked.
Inherited From:
Returns:
Type
Boolean

isVisible()

This Function has to be implemented for using this interface. Should return a boolean value if object is visible.
Returns:
visible or not
Type
boolean

mark()

Marks the node. Throws 'statechanged' event if node was unmarked.
Inherited From:
Returns:
Type
void

remove(node)

Removes the node from the children.
Parameters:
Name Type Description
node Object Object with tree functionality
Inherited From:
Returns:
Type
void

setName(name)

Sets name of the node element
Parameters:
Name Type Description
name String the name of the node element
Inherited From:
Returns:
Type
void

setParent(newParent)

Sets the parent of this node
Parameters:
Name Type Description
newParent Object the parent node.
Inherited From:
Returns:
Type
void

setUseDefaults(useDefaults)

Sets if the defaults should be used.
Parameters:
Name Type Description
useDefaults boolean
Returns:
Type
void

setVisible(visible)

Sets the visibility of node and updates it for the whole tree
Parameters:
Name Type Description
visible boolean
Returns:
Type
void

unmark()

Unmarks the node. Throws 'statechanged' event if node was marked.
Inherited From:
Returns:
Type
void

useDefaults()

Returns if defaults should be used.
Returns:
Type
boolean