ch.sahits.game.graphic.layout
Class SelectableGroup

java.lang.Object
  extended by ch.sahits.game.graphic.layout.SelectableGroup

public class SelectableGroup
extends Object

Group of components that are selectable

Author:
Andi Hotz, (c) Sahits GmbH, 2011 Created on Jun 9, 2011

Field Summary
private  LinkedList<AbstractSelectableComponent> selectables
           
 
Constructor Summary
SelectableGroup()
           
 
Method Summary
 void add(AbstractSelectableComponent selectable)
          Add a new selectable to the group
 void remove(AbstractSelectableComponent selectable)
          Remove a selectable.
 void unselectOthers(AbstractSelectableComponent selected)
          Unselect all other selectables than the the passed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

selectables

private LinkedList<AbstractSelectableComponent> selectables
Constructor Detail

SelectableGroup

public SelectableGroup()
Method Detail

add

public void add(AbstractSelectableComponent selectable)
Add a new selectable to the group

Parameters:
selectable -

remove

public void remove(AbstractSelectableComponent selectable)
Remove a selectable. If the selectable is not contained in this group nothing happens

Parameters:
selectable -

unselectOthers

public void unselectOthers(AbstractSelectableComponent selected)
Unselect all other selectables than the the passed

Parameters:
selected -


Copyright © 2011 Sahits GmbH. All Rights Reserved.