cz.cuni.amis.nb.pogamut.unreal.services
Class EnvironmentSelection

Package class diagram package EnvironmentSelection
java.lang.Object
  extended by org.openide.util.Lookup
      extended by org.openide.util.lookup.AbstractLookup
          extended by cz.cuni.amis.nb.pogamut.unreal.services.EnvironmentSelection
All Implemented Interfaces:
Serializable

public class EnvironmentSelection
extends org.openide.util.lookup.AbstractLookup

Basically lookup for various things that can be selected.

Author:
Honza
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.openide.util.lookup.AbstractLookup
org.openide.util.lookup.AbstractLookup.Content, org.openide.util.lookup.AbstractLookup.Pair<T>
 
Nested classes/interfaces inherited from class org.openide.util.Lookup
org.openide.util.Lookup.Item<T>, org.openide.util.Lookup.Provider, org.openide.util.Lookup.Result<T>, org.openide.util.Lookup.Template<T>
 
Field Summary
protected  org.openide.util.lookup.InstanceContent content
           
 
Fields inherited from class org.openide.util.Lookup
EMPTY
 
Constructor Summary
protected EnvironmentSelection(org.openide.util.lookup.InstanceContent content)
           
 
Method Summary
 void addSelected(Object selected)
          Add passed object to selected object of the environment
 void clearSelection()
          Clear all selections in the environment
 void changeSelected(Object singleSelection)
          Remove all selected objects of the same class as has the passed paramater and set it as the single selected object for the class.
 void removeSelected(Object unselected)
          Remove object from the selected objects of the environment
 
Methods inherited from class org.openide.util.lookup.AbstractLookup
addPair, addPair, beforeLookup, initialize, lookup, lookup, lookupItem, removePair, removePair, setPairs, setPairs, toString
 
Methods inherited from class org.openide.util.Lookup
getDefault, lookupAll, lookupResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

content

protected org.openide.util.lookup.InstanceContent content
Constructor Detail

EnvironmentSelection

protected EnvironmentSelection(org.openide.util.lookup.InstanceContent content)
Method Detail

addSelected

public void addSelected(Object selected)
Add passed object to selected object of the environment

Parameters:
selected -

removeSelected

public void removeSelected(Object unselected)
Remove object from the selected objects of the environment

Parameters:
unselected -

changeSelected

public void changeSelected(Object singleSelection)
Remove all selected objects of the same class as has the passed paramater and set it as the single selected object for the class.

Parameters:
singleSelection, - can be null

clearSelection

public void clearSelection()
Clear all selections in the environment



Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.