public void slide(SLIDE slide){
  if (slide == SLIDE.UP) {
    if (!isPanelShown()) {
      int position=0;
      if (items != null) {
        position=items.size() / 2;
      }
      slideUp(position);
    }
  }
 else {
    hidePanelPickerUI();
  }
}

public void slide ( SLIDE slide ) { if ( slide == SLIDE . UP ) { if ( ! isPanelShown ( ) ) { int position = 0 ; if ( items != null ) { position = items . size ( ) / 2 ; } slideUp ( position ) ; } } else { hidePanelPickerUI ( ) ; } }
slide the panel to the desired direction .
