var value = obj.getPanelWidth(); obj.setPanelWidth(value); obj.onPanelWidthChanging = function(value){...}; obj.onPanelWidthChanged = function(value){...}; obj.onPanelWidthError = function(value){...};