Spec-Zone .ru
спецификации, руководства, описания, API
|
001/* 002 * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. 003 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 004 * 005 * This code is free software; you can redistribute it and/or modify it 006 * under the terms of the GNU General Public License version 2 only, as 007 * published by the Free Software Foundation. Oracle designates this 008 * particular file as subject to the "Classpath" exception as provided 009 * by Oracle in the LICENSE file that accompanied this code. 010 * 011 * This code is distributed in the hope that it will be useful, but WITHOUT 012 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 013 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 014 * version 2 for more details (a copy is included in the LICENSE file that 015 * accompanied this code). 016 * 017 * You should have received a copy of the GNU General Public License version 018 * 2 along with this work; if not, write to the Free Software Foundation, 019 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 020 * 021 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 022 * or visit www.oracle.com if you need additional information or have any 023 * questions. 024 */ 025 026package javafx.scene.control; 027 028/** 029Builder class for javafx.scene.control.ScrollPane 030@see javafx.scene.control.ScrollPane 031@deprecated This class is deprecated and will be removed in the next version 032*/ 033@javax.annotation.Generated("Generated by javafx.builder.processor.BuilderProcessor") 034@Deprecated 035public class ScrollPaneBuilder<B extends javafx.scene.control.ScrollPaneBuilder<B>> extends javafx.scene.control.ControlBuilder<B> implements javafx.util.Builder<javafx.scene.control.ScrollPane> { 036 protected ScrollPaneBuilder() { 037 } 038 039 /** Creates a new instance of ScrollPaneBuilder. */ 040 @SuppressWarnings({"deprecation", "rawtypes", "unchecked"}) 041 public static javafx.scene.control.ScrollPaneBuilder<?> create() { 042 return new javafx.scene.control.ScrollPaneBuilder(); 043 } 044 045 private int __set; 046 private void __set(int i) { 047 __set |= 1 << i; 048 } 049 public void applyTo(javafx.scene.control.ScrollPane x) { 050 super.applyTo(x); 051 int set = __set; 052 while (set != 0) { 053 int i = Integer.numberOfTrailingZeros(set); 054 set &= ~(1 << i); 055 switch (i) { 056 case 0: x.setContent(this.content); break; 057 case 1: x.setFitToHeight(this.fitToHeight); break; 058 case 2: x.setFitToWidth(this.fitToWidth); break; 059 case 3: x.setHbarPolicy(this.hbarPolicy); break; 060 case 4: x.setHmax(this.hmax); break; 061 case 5: x.setHmin(this.hmin); break; 062 case 6: x.setHvalue(this.hvalue); break; 063 case 7: x.setPannable(this.pannable); break; 064 case 8: x.setPrefViewportHeight(this.prefViewportHeight); break; 065 case 9: x.setPrefViewportWidth(this.prefViewportWidth); break; 066 case 10: x.setVbarPolicy(this.vbarPolicy); break; 067 case 11: x.setViewportBounds(this.viewportBounds); break; 068 case 12: x.setVmax(this.vmax); break; 069 case 13: x.setVmin(this.vmin); break; 070 case 14: x.setVvalue(this.vvalue); break; 071 } 072 } 073 } 074 075 private javafx.scene.Node content; 076 /** 077 Set the value of the {@link javafx.scene.control.ScrollPane#getContent() content} property for the instance constructed by this builder. 078 */ 079 @SuppressWarnings("unchecked") 080 public B content(javafx.scene.Node x) { 081 this.content = x; 082 __set(0); 083 return (B) this; 084 } 085 086 private boolean fitToHeight; 087 /** 088 Set the value of the {@link javafx.scene.control.ScrollPane#isFitToHeight() fitToHeight} property for the instance constructed by this builder. 089 */ 090 @SuppressWarnings("unchecked") 091 public B fitToHeight(boolean x) { 092 this.fitToHeight = x; 093 __set(1); 094 return (B) this; 095 } 096 097 private boolean fitToWidth; 098 /** 099 Set the value of the {@link javafx.scene.control.ScrollPane#isFitToWidth() fitToWidth} property for the instance constructed by this builder. 100 */ 101 @SuppressWarnings("unchecked") 102 public B fitToWidth(boolean x) { 103 this.fitToWidth = x; 104 __set(2); 105 return (B) this; 106 } 107 108 private javafx.scene.control.ScrollPane.ScrollBarPolicy hbarPolicy; 109 /** 110 Set the value of the {@link javafx.scene.control.ScrollPane#getHbarPolicy() hbarPolicy} property for the instance constructed by this builder. 111 */ 112 @SuppressWarnings("unchecked") 113 public B hbarPolicy(javafx.scene.control.ScrollPane.ScrollBarPolicy x) { 114 this.hbarPolicy = x; 115 __set(3); 116 return (B) this; 117 } 118 119 private double hmax; 120 /** 121 Set the value of the {@link javafx.scene.control.ScrollPane#getHmax() hmax} property for the instance constructed by this builder. 122 */ 123 @SuppressWarnings("unchecked") 124 public B hmax(double x) { 125 this.hmax = x; 126 __set(4); 127 return (B) this; 128 } 129 130 private double hmin; 131 /** 132 Set the value of the {@link javafx.scene.control.ScrollPane#getHmin() hmin} property for the instance constructed by this builder. 133 */ 134 @SuppressWarnings("unchecked") 135 public B hmin(double x) { 136 this.hmin = x; 137 __set(5); 138 return (B) this; 139 } 140 141 private double hvalue; 142 /** 143 Set the value of the {@link javafx.scene.control.ScrollPane#getHvalue() hvalue} property for the instance constructed by this builder. 144 */ 145 @SuppressWarnings("unchecked") 146 public B hvalue(double x) { 147 this.hvalue = x; 148 __set(6); 149 return (B) this; 150 } 151 152 private boolean pannable; 153 /** 154 Set the value of the {@link javafx.scene.control.ScrollPane#isPannable() pannable} property for the instance constructed by this builder. 155 */ 156 @SuppressWarnings("unchecked") 157 public B pannable(boolean x) { 158 this.pannable = x; 159 __set(7); 160 return (B) this; 161 } 162 163 private double prefViewportHeight; 164 /** 165 Set the value of the {@link javafx.scene.control.ScrollPane#getPrefViewportHeight() prefViewportHeight} property for the instance constructed by this builder. 166 */ 167 @SuppressWarnings("unchecked") 168 public B prefViewportHeight(double x) { 169 this.prefViewportHeight = x; 170 __set(8); 171 return (B) this; 172 } 173 174 private double prefViewportWidth; 175 /** 176 Set the value of the {@link javafx.scene.control.ScrollPane#getPrefViewportWidth() prefViewportWidth} property for the instance constructed by this builder. 177 */ 178 @SuppressWarnings("unchecked") 179 public B prefViewportWidth(double x) { 180 this.prefViewportWidth = x; 181 __set(9); 182 return (B) this; 183 } 184 185 private javafx.scene.control.ScrollPane.ScrollBarPolicy vbarPolicy; 186 /** 187 Set the value of the {@link javafx.scene.control.ScrollPane#getVbarPolicy() vbarPolicy} property for the instance constructed by this builder. 188 */ 189 @SuppressWarnings("unchecked") 190 public B vbarPolicy(javafx.scene.control.ScrollPane.ScrollBarPolicy x) { 191 this.vbarPolicy = x; 192 __set(10); 193 return (B) this; 194 } 195 196 private javafx.geometry.Bounds viewportBounds; 197 /** 198 Set the value of the {@link javafx.scene.control.ScrollPane#getViewportBounds() viewportBounds} property for the instance constructed by this builder. 199 */ 200 @SuppressWarnings("unchecked") 201 public B viewportBounds(javafx.geometry.Bounds x) { 202 this.viewportBounds = x; 203 __set(11); 204 return (B) this; 205 } 206 207 private double vmax; 208 /** 209 Set the value of the {@link javafx.scene.control.ScrollPane#getVmax() vmax} property for the instance constructed by this builder. 210 */ 211 @SuppressWarnings("unchecked") 212 public B vmax(double x) { 213 this.vmax = x; 214 __set(12); 215 return (B) this; 216 } 217 218 private double vmin; 219 /** 220 Set the value of the {@link javafx.scene.control.ScrollPane#getVmin() vmin} property for the instance constructed by this builder. 221 */ 222 @SuppressWarnings("unchecked") 223 public B vmin(double x) { 224 this.vmin = x; 225 __set(13); 226 return (B) this; 227 } 228 229 private double vvalue; 230 /** 231 Set the value of the {@link javafx.scene.control.ScrollPane#getVvalue() vvalue} property for the instance constructed by this builder. 232 */ 233 @SuppressWarnings("unchecked") 234 public B vvalue(double x) { 235 this.vvalue = x; 236 __set(14); 237 return (B) this; 238 } 239 240 /** 241 Make an instance of {@link javafx.scene.control.ScrollPane} based on the properties set on this builder. 242 */ 243 public javafx.scene.control.ScrollPane build() { 244 javafx.scene.control.ScrollPane x = new javafx.scene.control.ScrollPane(); 245 applyTo(x); 246 return x; 247 } 248}