PDA

View Full Version : Combobox Dropdown Slide



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.

Joshua093
15 Dec 2011, 8:49 AM
I've been fiddling with this in my down time at work and I still cannot figure this out. It SHOULD be extremely simple but I am not finding any feasible solution. I cannot be the only person that wants my application to do this. It's a very common feature and makes the entire application less obtrusive. With my project coming to an end I'm afraid if I don't get this solved by this weekend I will never be able to implement this, which would be a real shame.

Any help is appreciated.