510511512513514515516517518519520
DisplayModel displayModel = (DisplayModel) display; if (listen) { displayModel.addListener(displayListener); } else { displayModel.removeListener(displayListener); } } /** * Enable/Disable listening to Hook commands.
528529530531532533534535536537538
DisplayModel displayModel = (DisplayModel) display; if(listen) { displayModel.addListener(displayListener); } else { displayModel.removeListener(displayListener); } } /** * Enable/Disable listening to Hook commands.