de.muntjak.tinylookandfeel.controlpanel
Class Selection

java.lang.Object
  extended by de.muntjak.tinylookandfeel.controlpanel.Selection
All Implemented Interfaces:
ParameterSetGenerator

public class Selection
extends java.lang.Object
implements ParameterSetGenerator

Selection manages a selection of controls.


Method Summary
 void add(Selectable control)
          Adds the specified control to the selection and selects the control.
 void clearSelection()
           
 ParameterSet createParameterSet()
          Creates a parameter set from all currently selected controls and copies the vector of controls.
 ParameterSet getParameterSet()
           
static Selection getSelection(ControlPanel cp)
           
 void init(boolean ignored)
           
 boolean remove(Selectable control)
          Removes the specified control from the selection and deselects the control.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSelection

public static Selection getSelection(ControlPanel cp)

add

public void add(Selectable control)
Adds the specified control to the selection and selects the control.

Parameters:
control -

remove

public boolean remove(Selectable control)
Removes the specified control from the selection and deselects the control.

Parameters:
control -
Returns:

clearSelection

public void clearSelection()

createParameterSet

public ParameterSet createParameterSet()
Creates a parameter set from all currently selected controls and copies the vector of controls.

Returns:

getParameterSet

public ParameterSet getParameterSet()
Specified by:
getParameterSet in interface ParameterSetGenerator

init

public void init(boolean ignored)
Specified by:
init in interface ParameterSetGenerator