1 /* ************************************************************************
3 qooxdoo - the new era of web development
8 2004-2007 1&1 Internet AG, Germany, http://www.1and1.org
11 LGPL: http://www.gnu.org/licenses/lgpl.html
12 EPL: http://www.eclipse.org/org/documents/epl-v10.php
13 See the LICENSE file in the project's top-level directory for details.
16 * Sebastian Werner (wpbasti)
17 * Andreas Ecker (ecker)
19 ************************************************************************ */
21 /* ************************************************************************
25 ************************************************************************ */
28 This widget is the last widget of the current child chain.
30 qx.OO.defineClass("qx.ui.basic.Terminator", qx.ui.core.Widget,
32 qx.ui.core.Widget.call(this);
41 ---------------------------------------------------------------------------
43 ---------------------------------------------------------------------------
46 qx.Proto._applyPaddingX = function(vParent, vChanges, vStyle)
48 if (vChanges.paddingLeft) {
49 this._applyRuntimePaddingLeft(this.getPaddingLeft());
52 if (vChanges.paddingRight) {
53 this._applyRuntimePaddingRight(this.getPaddingRight());
57 qx.Proto._applyPaddingY = function(vParent, vChanges, vStyle)
59 if (vChanges.paddingTop) {
60 this._applyRuntimePaddingTop(this.getPaddingTop());
63 if (vChanges.paddingBottom) {
64 this._applyRuntimePaddingBottom(this.getPaddingBottom());
74 ---------------------------------------------------------------------------
76 ---------------------------------------------------------------------------
79 qx.Proto._applyContent = function()
81 // Small optimization: Only add innerPreferred jobs
82 // if we don't have a static width
83 if (this._computedWidthTypePixel) {
84 this._cachedPreferredInnerWidth = null;
86 this._invalidatePreferredInnerWidth();
89 // Small optimization: Only add innerPreferred jobs
90 // if we don't have a static height
91 if (this._computedHeightTypePixel) {
92 this._cachedPreferredInnerHeight = null;
94 this._invalidatePreferredInnerHeight();
98 if (this._initialLayoutDone) {
99 this.addToJobQueue("load");
103 qx.Proto._layoutPost = function(vChanges) {
104 if (vChanges.initial || vChanges.load || vChanges.width || vChanges.height) {
109 qx.Proto._postApply = qx.lang.Function.returnTrue;
118 ---------------------------------------------------------------------------
119 BOX DIMENSION HELPERS
120 ---------------------------------------------------------------------------
123 qx.Proto._computeBoxWidthFallback = qx.Proto.getPreferredBoxWidth;
124 qx.Proto._computeBoxHeightFallback = qx.Proto.getPreferredBoxHeight;
126 qx.Proto._computePreferredInnerWidth = qx.lang.Function.returnZero;
127 qx.Proto._computePreferredInnerHeight = qx.lang.Function.returnZero;
136 ---------------------------------------------------------------------------
137 METHODS TO GIVE THE LAYOUTERS INFORMATIONS
138 ---------------------------------------------------------------------------
141 qx.Proto._isWidthEssential = function()
143 if (!this._computedLeftTypeNull && !this._computedRightTypeNull) {
147 if (!this._computedWidthTypeNull && !this._computedWidthTypeAuto) {
151 if (!this._computedMinWidthTypeNull && !this._computedMinWidthTypeAuto) {
155 if (!this._computedMaxWidthTypeNull && !this._computedMaxWidthTypeAuto) {
159 if (this._borderElement) {
166 qx.Proto._isHeightEssential = function()
168 if (!this._computedTopTypeNull && !this._computedBottomTypeNull) {
172 if (!this._computedHeightTypeNull && !this._computedHeightTypeAuto) {
176 if (!this._computedMinHeightTypeNull && !this._computedMinHeightTypeAuto) {
180 if (!this._computedMaxHeightTypeNull && !this._computedMaxHeightTypeAuto) {
184 if (this._borderElement) {