Path: blob/trunk/third_party/closure/goog/positioning/abstractposition.js
2868 views
// Copyright 2006 The Closure Library Authors. All Rights Reserved.1//2// Licensed under the Apache License, Version 2.0 (the "License");3// you may not use this file except in compliance with the License.4// You may obtain a copy of the License at5//6// http://www.apache.org/licenses/LICENSE-2.07//8// Unless required by applicable law or agreed to in writing, software9// distributed under the License is distributed on an "AS-IS" BASIS,10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.11// See the License for the specific language governing permissions and12// limitations under the License.1314/**15* @fileoverview Abstract base class for positioning implementations.16*17* @author [email protected] (Emil A Eklund)18*/1920goog.provide('goog.positioning.AbstractPosition');21222324/**25* Abstract position object. Encapsulates position and overflow handling.26*27* @constructor28*/29goog.positioning.AbstractPosition = function() {};303132/**33* Repositions the element. Abstract method, should be overloaded.34*35* @param {Element} movableElement Element to position.36* @param {goog.positioning.Corner} corner Corner of the movable element that37* should be positioned adjacent to the anchored element.38* @param {goog.math.Box=} opt_margin A margin specified in pixels.39* @param {goog.math.Size=} opt_preferredSize PreferredSize of the40* movableElement.41*/42goog.positioning.AbstractPosition.prototype.reposition = function(43movableElement, corner, opt_margin, opt_preferredSize) {};444546