public List < AbstractPanel > getPanels ( PanelType panelType ) { validateNotNull ( panelType , "panelType" ) ; List < AbstractPanel > panels = new ArrayList <> ( ) ; switch ( panelType ) { case SELECT : panels . addAll ( getTabbedSelect ( ) . getPanels ( ) ) ; break ; case STATUS : panels . addAll ( getTabbedStatus ( ) . getPanels ( ) ) ; break ; case WORK : panels . addAll ( getTabbedWork ( ) . getPanels ( ) ) ; break ; default : break ; } return panels ; }
Gets the panels that were added to the workbench with the given panel type .