for(Enumeration e = boardListeners.elements(); e.hasMoreElements();) { BoardViewListener l = (BoardViewListener)e.nextElement();
for(BoardViewListener l: boardListeners) {
    public void processBoardViewEvent(BoardViewEvent event) {        if (boardListeners == null) {            return;        }        for(Enumeration e = boardListeners.elements(); e.hasMoreElements();) {            BoardViewListener l = (BoardViewListener)e.nextElement();            switch(event.getType()) {            case BoardViewEvent.BOARD_HEX_CLICKED :            case BoardViewEvent.BOARD_HEX_DOUBLECLICKED :            case BoardViewEvent.BOARD_HEX_DRAGGED :                l.hexMoused(event);                break;            case BoardViewEvent.BOARD_HEX_CURSOR :                l.hexCursor(event);                break;            case BoardViewEvent.BOARD_HEX_HIGHLIGHTED :                l.boardHexHighlighted(event);                break;            case BoardViewEvent.BOARD_HEX_SELECTED :                l.hexSelected(event);                break;            case BoardViewEvent.BOARD_FIRST_LOS_HEX :                l.firstLOSHex(event);                break;            case BoardViewEvent.BOARD_SECOND_LOS_HEX :                l.secondLOSHex(event, getFirstLOS());                break;            case BoardViewEvent.FINISHED_MOVING_UNITS :                l.finishedMovingUnits(event);                break;            case BoardViewEvent.SELECT_UNIT :                l.unitSelected(event);                break;            }        }    }