de.kleopatra.view.binding
Class RadioBindingMetaData

java.lang.Object
  extended byde.kleopatra.view.binding.BindingMetaData
      extended byde.kleopatra.view.binding.RadioBindingMetaData

public class RadioBindingMetaData
extends BindingMetaData

BindingMetaData for use by binding a group of radio options.

Version:
$Revision: 1.3 $ - $Date: 2004/10/01 12:27:06 $
Author:
(C) 2004 Jeanette Winzenburg, Berlin

Field Summary
 
Fields inherited from class de.kleopatra.view.binding.BindingMetaData
commitOnFocusLost, componentClass, componentName, focusLostTrigger, propertyName, targetClass
 
Constructor Summary
RadioBindingMetaData(java.util.List componentIDs, java.lang.String propertyName, java.util.List optionValues)
          PRE: lists !
 
Method Summary
 java.lang.String getComponentID(int index)
           
 int getGroupSize()
           
 java.lang.Object getOptionValue(int index)
           
 void setLists(java.util.List componentIDs, java.util.List optionValues)
          set synched lists of componentIDs and optionValues.
 
Methods inherited from class de.kleopatra.view.binding.BindingMetaData
getComponentClass, getComponentName, getFocusLostTrigger, getPropertyName, getTargetClass, initDefaultCommit, isCommitOnFocusLost, setCommitOnFocusLost, setComponentClass, setComponentName, setFocusLostTrigger, setPropertyName, setTargetClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RadioBindingMetaData

public RadioBindingMetaData(java.util.List componentIDs,
                            java.lang.String propertyName,
                            java.util.List optionValues)
PRE: lists != null, not empty and of same size

Parameters:
componentIDs - the componentNames of the radioButtons
propertyName - the property to bind
optionValues - the values bound to the selected state of the corresponding button
Method Detail

setLists

public void setLists(java.util.List componentIDs,
                     java.util.List optionValues)
set synched lists of componentIDs and optionValues.

Parameters:
componentIDs - the componentNames of the radioButtons
optionValues - the values bound to the selected state of the corresponding button
Throws:
java.lang.IllegalArgumentException - if lists don't have the same size.

getComponentID

public java.lang.String getComponentID(int index)

getOptionValue

public java.lang.Object getOptionValue(int index)

getGroupSize

public int getGroupSize()


Copyright © 2003, 2004 SwingEmpire Jeanette Winzenburg. All Rights Reserved.