@Listen("onClick = image#downBtn") public void downBtnClick(MouseEvent event) { if (logger.isDebugEnabled()) logger.debug(" downBtn button event = " + event); if (selectedCharts.getSelectedItem() != null) { int pos = selectedCharts.getSelectedIndex(); // dont go past the bottom! if (pos == selectedChartsModel.size() - 1) return; String item = selectedChartsModel.remove(selectedCharts.getSelectedIndex()); selectedChartsModel.add(pos + 1, item); } }
private void addInfo(String info) { infoModel.add(0, info); while (infoModel.size() > 100) { infoModel.remove(infoModel.size() - 1); } }