Joshua093
10 Nov 2011, 3:15 PM
I am using a slightly modified ComboBox and I am wanting the dropdown list to use the FxConfig to slide out. I can't seem to find an easy way to do this. I can make the combo box itself slide in and out, but not the dropdown list.
What I am doing now is this -
mySpecialCombo.addListener(Events.OnClick, new Listener<BaseEvent>(){
@Override
public void handleEvent(BaseEvent be) {
if(mySpecialCombo.isExpanded()){
mySpecialCombo.el().slideIn(Direction.DOWN, FxConfig.NONE);
}else{
mySpecialCombo.el().slideOut(Direction.UP, FxConfig.NONE);
}
}
});
The problem is - exactly as the code reads, it will slide the combo box itself in and out, rather than the drop down list.
Thank you in advance,
Joshua.
What I am doing now is this -
mySpecialCombo.addListener(Events.OnClick, new Listener<BaseEvent>(){
@Override
public void handleEvent(BaseEvent be) {
if(mySpecialCombo.isExpanded()){
mySpecialCombo.el().slideIn(Direction.DOWN, FxConfig.NONE);
}else{
mySpecialCombo.el().slideOut(Direction.UP, FxConfig.NONE);
}
}
});
The problem is - exactly as the code reads, it will slide the combo box itself in and out, rather than the drop down list.
Thank you in advance,
Joshua.