|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaxx.runtime.swing.ListSelectorHandler<B>
public class ListSelectorHandler<B>
| Field Summary | |
|---|---|
protected ListSelectorUI<B> |
listSelector
|
static org.apache.commons.logging.Log |
log
|
| Constructor Summary | |
|---|---|
ListSelectorHandler(ListSelectorUI<B> listSelector)
|
|
| Method Summary | |
|---|---|
protected javax.swing.JComboBox |
getCombo()
|
java.util.List<B> |
getComboDatas()
|
protected javax.swing.JList |
getList()
|
java.util.List<B> |
getListDatas()
|
void |
init(java.util.List<B> toCombo,
java.util.List<B> toList)
Initialize the component. |
protected void |
setComboDatas(java.util.List<B> toCombo)
Set the data in combo box model. |
protected void |
setListDatas(java.util.List<B> toList)
Set the data in the list model. |
protected void |
transfertToCombo(B[] bs)
Transfert the b data from list to combo box. |
protected void |
transfertToList(B b)
Transfert the b data from combo box to list. |
protected boolean |
updateAddEnabled(boolean enabled)
|
protected boolean |
updateRemoveEnabled(boolean enabled)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.commons.logging.Log log
protected ListSelectorUI<B> listSelector
| Constructor Detail |
|---|
public ListSelectorHandler(ListSelectorUI<B> listSelector)
| Method Detail |
|---|
protected javax.swing.JComboBox getCombo()
protected javax.swing.JList getList()
public java.util.List<B> getComboDatas()
public java.util.List<B> getListDatas()
public void init(java.util.List<B> toCombo,
java.util.List<B> toList)
toCombo - datas to set in combotoList - datas to set in listprotected void transfertToList(B b)
b data from combo box to list.
b - the data to transfertprotected void transfertToCombo(B[] bs)
b data from list to combo box.
bs - the data to transfertprotected boolean updateAddEnabled(boolean enabled)
enabled - databinding
true if add button should be enabledprotected boolean updateRemoveEnabled(boolean enabled)
enabled - databinding
true if remove button should be enabledprotected void setComboDatas(java.util.List<B> toCombo)
toCombo - datas to set in combo box modelprotected void setListDatas(java.util.List<B> toList)
toList - datas to set in list model
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||