cdx.scorebot.util.swing.binding.delegate
Interface BoundDelegateContainer

All Superinterfaces:
BoundDelegateComponent
All Known Implementing Classes:
IntermediateFieldDelegate, JComboBoxComponentDelegate, JListComponentDelegate, JMenuComponentDelegate, ListBasedComponentDelegate

public interface BoundDelegateContainer
extends BoundDelegateComponent

This interface specifies methods which extend a normal BoundComponent into one which may contain other BoundDelegateComponents.

Author:
David Underhill

Method Summary
 void addBoundComponent(BoundComponent b)
          add bound component to this (b's parent will be set to this)
 java.util.Vector<BoundComponent> getBoundComponents()
          get bound components this contains
 int getPrimaryComponent()
          gets the index of the component which whose string value is used as the value to represent that collection, or -1 to just number the sets
 void notifyBoundComponentChange(BoundComponent c)
          notify the parent of a bound component change in value
 void selectItem(int index)
          selects the item at the specified index (if the index does not exist, this is ignored)
 void setPrimaryComponent(int primComponIndex)
          sets the index of the component which whose string value is used as the value to represent that collection, or -1 to just number the sets
 void updateSubcomponentBindings()
          update all components within this component
 
Methods inherited from interface cdx.scorebot.util.swing.binding.delegate.BoundDelegateComponent
addBindingListener, changeBinding, changeBinding, changeBinding, changeBinding, changeBinding, changeBinding, changeBinding, getBinding, getBoundParent, highlightOnError, isContainer, isValidated, load, notifyListenersOfBindingChanged, notifyListenersOfBindingChanging, removeBindingListener, save, setBoundParent, setHighlightOnError
 

Method Detail

addBoundComponent

void addBoundComponent(BoundComponent b)
add bound component to this (b's parent will be set to this)


getBoundComponents

java.util.Vector<BoundComponent> getBoundComponents()
get bound components this contains


notifyBoundComponentChange

void notifyBoundComponentChange(BoundComponent c)
notify the parent of a bound component change in value


selectItem

void selectItem(int index)
selects the item at the specified index (if the index does not exist, this is ignored)


updateSubcomponentBindings

void updateSubcomponentBindings()
update all components within this component


getPrimaryComponent

int getPrimaryComponent()
gets the index of the component which whose string value is used as the value to represent that collection, or -1 to just number the sets


setPrimaryComponent

void setPrimaryComponent(int primComponIndex)
sets the index of the component which whose string value is used as the value to represent that collection, or -1 to just number the sets

Parameters:
primComponIndex - index of the BoundComponent which is the primary component in the getBoundComponents() vector.