cz.cuni.amis.nb.pogamut.unreal.services
Class EnvironmentSelection
java.lang.Object
org.openide.util.Lookup
org.openide.util.lookup.AbstractLookup
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 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 |
|
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 |
content
protected org.openide.util.lookup.InstanceContent content
EnvironmentSelection
protected EnvironmentSelection(org.openide.util.lookup.InstanceContent content)
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.