This is a helper method which will return a non-empty list of items of type T, if and only if *all* of the given nodes are of type T.
This is a helper method which will return a non-empty list of items of type T, if and only if *all* of the given nodes are of type T.
the type you're interested in
a list of SceneNode
the elements in the nodes list, as a List[T], if *all* of them are of type T, or an empty list otherwise.
human-readable description, used in tabs.
human-readable description, used in tabs.
Set the nodes that the user currently selected.
Set the nodes that the user currently selected. Note that the list could be empty.
The general contract is that on invocation, an implementation cleans up any current state first, then decides whether it can provide a useful UI for *all* of the nodes. If that is the case, then it should prepare its UI accordingly, and return true. If not, then it simply returns false. In other words: the value that is returned here is used to determine whether this Panel is active (usable) for the current set of selected nodes. If it's not, then it won't be shown, but if it is, then it has to be in a usable state upon return.
It is generally recommended to use the allMatch method in implementations, which offers a type-safe and convenient way to make decisions about whether a non-empty list of supported nodes was provided.
list of selected nodes.
true if this panel can handle the provided nodes, false otherwise.
This is a helper methode which returns a non-empty Option[T] if and only if the list of nodes consists of a single item of type T
This is a helper methode which returns a non-empty Option[T] if and only if the list of nodes consists of a single item of type T
the type you're interested in
a list of SceneNode
Some[T] if the list consisted of a single item of type T, or None otherwise
This is a helper method which will filter a list of nodes, and return those which are of a given type T.
This is a helper method which will filter a list of nodes, and return those which are of a given type T.
the type you're interested in
a list of SceneNode
all the elements in the nodes list which are of type T, as a List[T]