|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.ButtonGroup
cdx.scorebot.util.swing.binding.ButtonGroupBound<FROM,TO>
public class ButtonGroupBound<FROM,TO>
Describes a group of JRadioButtonBound's whose selection value of type TO maps to the bound value of type FROM.
Field Summary |
---|
Fields inherited from class javax.swing.ButtonGroup |
---|
buttons |
Constructor Summary | |
---|---|
ButtonGroupBound()
Instantiates an unbound ButtonGroup |
|
ButtonGroupBound(java.lang.Object boundItem,
java.lang.String varName)
Instantiates a bound ButtonGroup; generic types MUST be the same |
|
ButtonGroupBound(java.lang.Object boundItem,
java.lang.String getterName,
java.lang.String setterName)
Instantiates a bound ButtonGroup; generic types MUST be the same |
|
ButtonGroupBound(java.lang.Object boundItem,
java.lang.String getterName,
java.lang.String setterName,
int indexAt)
Instantiates a bound ButtonGroup; generic types MUST be the same |
|
ButtonGroupBound(java.lang.String varName)
Instantiates an unbound ButtonGroup; generic types MUST be the same |
|
ButtonGroupBound(TypeTranslator<FROM,TO> translator,
java.lang.Object boundItem,
java.lang.String varName)
Instantiates a bound ButtonGroup |
|
ButtonGroupBound(TypeTranslator<FROM,TO> translator,
java.lang.Object boundItem,
java.lang.String getterName,
java.lang.String setterName)
Instantiates a bound ButtonGroup |
|
ButtonGroupBound(TypeTranslator<FROM,TO> translator,
java.lang.Object boundItem,
java.lang.String getterName,
java.lang.String setterName,
int indexAt)
Instantiates a bound ButtonGroup |
|
ButtonGroupBound(TypeTranslator<FROM,TO> translator,
java.lang.String varName)
Instantiates an unbound ButtonGroup |
|
ButtonGroupBound(TypeTranslator<FROM,TO> translator,
java.lang.String getterName,
java.lang.String setterName)
Instantiates an unbound ButtonGroup |
Method Summary | |
---|---|
void |
add(JRadioButtonBound<TO> b)
Adds the button to the group. |
ButtonGroupDelegate<FROM,TO> |
getBindingDelegate()
gets the delete which controls the binding |
Methods inherited from class javax.swing.ButtonGroup |
---|
add, clearSelection, getButtonCount, getElements, getSelection, isSelected, remove, setSelected |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ButtonGroupBound()
public ButtonGroupBound(TypeTranslator<FROM,TO> translator, java.lang.String varName)
translator
- how to translate between the value in the boundItem (type FROM) a another value of type TOvarName
- the name of the variable; assumes the getter and setter name will
be get and set followed by varName with its first letter capitalized
(ex: if varName is "value" then the getter will be getValue).public ButtonGroupBound(TypeTranslator<FROM,TO> translator, java.lang.Object boundItem, java.lang.String varName)
translator
- how to translate between the value in the boundItem (type FROM) a another value of type TOboundItem
- the object this is bound to (contains the value to be modified as specified by varName)varName
- the name of the variable; assumes the getter and setter name will
be get and set followed by varName with its first letter capitalized
(ex: if varName is "value" then the getter will be getValue).public ButtonGroupBound(TypeTranslator<FROM,TO> translator, java.lang.String getterName, java.lang.String setterName)
translator
- how to translate between the value in the boundItem (type FROM) a another value of type TOgetterName
- how to get the bound value from the bound objectsetterName
- how to set the bound value from the bound objectpublic ButtonGroupBound(TypeTranslator<FROM,TO> translator, java.lang.Object boundItem, java.lang.String getterName, java.lang.String setterName)
translator
- how to translate between the value in the boundItem (type FROM) a another value of type TOboundItem
- the object this is bound to (contains the value to be modified as specified by the getter and setter name)getterName
- how to get the bound value from the bound objectsetterName
- how to set the bound value from the bound objectpublic ButtonGroupBound(TypeTranslator<FROM,TO> translator, java.lang.Object boundItem, java.lang.String getterName, java.lang.String setterName, int indexAt)
translator
- how to translate between the value in the boundItem (type FROM) a another value of type TOboundItem
- the object this is bound to (contains the value to be modified as specified by the getter and setter name)getterName
- how to get the bound value from the bound objectsetterName
- how to set the bound value from the bound objectindexAt
- if bound value is stored within a container with get(index) and
set(index, Object) methods, then indexAt should be the index to
use; otherwise, indexAt should be -1public ButtonGroupBound(java.lang.String varName)
varName
- the name of the variable; assumes the getter and setter name will
be get and set followed by varName with its first letter capitalized
(ex: if varName is "value" then the getter will be getValue).public ButtonGroupBound(java.lang.Object boundItem, java.lang.String varName)
boundItem
- the object this is bound to (contains the value to be modified as specified by varName)varName
- the name of the variable; assumes the getter and setter name will
be get and set followed by varName with its first letter capitalized
(ex: if varName is "value" then the getter will be getValue).public ButtonGroupBound(java.lang.Object boundItem, java.lang.String getterName, java.lang.String setterName)
boundItem
- the object this is bound to (contains the value to be modified as specified by the getter and setter name)getterName
- how to get the bound value from the bound objectsetterName
- how to set the bound value from the bound objectpublic ButtonGroupBound(java.lang.Object boundItem, java.lang.String getterName, java.lang.String setterName, int indexAt)
boundItem
- the object this is bound to (contains the value to be modified as specified by the getter and setter name)getterName
- how to get the bound value from the bound objectsetterName
- how to set the bound value from the bound objectindexAt
- if bound value is stored within a container with get(index) and
set(index, Object) methods, then indexAt should be the index to
use; otherwise, indexAt should be -1Method Detail |
---|
public void add(JRadioButtonBound<TO> b)
b
- the button to be addedpublic ButtonGroupDelegate<FROM,TO> getBindingDelegate()
getBindingDelegate
in interface BoundComponent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |