/*
* Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package javafx.scene.control;
/**
Builder class for javafx.scene.control.Labeled
@see javafx.scene.control.Labeled
@deprecated This class is deprecated and will be removed in the next version
* @since JavaFX 2.0
*/
@javax.annotation.
Generated("Generated by javafx.builder.processor.BuilderProcessor")
@
Deprecated
public abstract class
LabeledBuilder<B extends javafx.scene.control.
LabeledBuilder<B>> extends javafx.scene.control.
ControlBuilder<B> {
protected
LabeledBuilder() {
}
private int
__set;
private void
__set(int
i) {
__set |= 1 <<
i;
}
public void
applyTo(javafx.scene.control.
Labeled x) {
super.applyTo(
x);
int
set =
__set;
while (
set != 0) {
int
i =
Integer.
numberOfTrailingZeros(
set);
set &= ~(1 <<
i);
switch (
i) {
case 0:
x.
setAlignment(this.
alignment); break;
case 1:
x.
setContentDisplay(this.
contentDisplay); break;
case 2:
x.
setEllipsisString(this.
ellipsisString); break;
case 3:
x.
setFont(this.
font); break;
case 4:
x.
setGraphic(this.
graphic); break;
case 5:
x.
setGraphicTextGap(this.
graphicTextGap); break;
case 6:
x.
setMnemonicParsing(this.
mnemonicParsing); break;
case 7:
x.
setText(this.
text); break;
case 8:
x.
setTextAlignment(this.
textAlignment); break;
case 9:
x.
setTextFill(this.
textFill); break;
case 10:
x.
setTextOverrun(this.
textOverrun); break;
case 11:
x.
setUnderline(this.
underline); break;
case 12:
x.
setWrapText(this.
wrapText); break;
}
}
}
private javafx.geometry.
Pos alignment;
/**
Set the value of the {@link javafx.scene.control.Labeled#getAlignment() alignment} property for the instance constructed by this builder.
*/
@
SuppressWarnings("unchecked")
public B
alignment(javafx.geometry.
Pos x) {
this.
alignment =
x;
__set(0);
return (B) this;
}
private javafx.scene.control.
ContentDisplay contentDisplay;
/**
Set the value of the {@link javafx.scene.control.Labeled#getContentDisplay() contentDisplay} property for the instance constructed by this builder.
*/
@
SuppressWarnings("unchecked")
public B
contentDisplay(javafx.scene.control.
ContentDisplay x) {
this.
contentDisplay =
x;
__set(1);
return (B) this;
}
private java.lang.
String ellipsisString;
/**
Set the value of the {@link javafx.scene.control.Labeled#getEllipsisString() ellipsisString} property for the instance constructed by this builder.
* @since JavaFX 2.2
*/
@
SuppressWarnings("unchecked")
public B
ellipsisString(java.lang.
String x) {
this.
ellipsisString =
x;
__set(2);
return (B) this;
}
private javafx.scene.text.
Font font;
/**
Set the value of the {@link javafx.scene.control.Labeled#getFont() font} property for the instance constructed by this builder.
*/
@
SuppressWarnings("unchecked")
public B
font(javafx.scene.text.
Font x) {
this.
font =
x;
__set(3);
return (B) this;
}
private javafx.scene.
Node graphic;
/**
Set the value of the {@link javafx.scene.control.Labeled#getGraphic() graphic} property for the instance constructed by this builder.
*/
@
SuppressWarnings("unchecked")
public B
graphic(javafx.scene.
Node x) {
this.
graphic =
x;
__set(4);
return (B) this;
}
private double
graphicTextGap;
/**
Set the value of the {@link javafx.scene.control.Labeled#getGraphicTextGap() graphicTextGap} property for the instance constructed by this builder.
*/
@
SuppressWarnings("unchecked")
public B
graphicTextGap(double
x) {
this.
graphicTextGap =
x;
__set(5);
return (B) this;
}
private boolean
mnemonicParsing;
/**
Set the value of the {@link javafx.scene.control.Labeled#isMnemonicParsing() mnemonicParsing} property for the instance constructed by this builder.
*/
@
SuppressWarnings("unchecked")
public B
mnemonicParsing(boolean
x) {
this.
mnemonicParsing =
x;
__set(6);
return (B) this;
}
private java.lang.
String text;
/**
Set the value of the {@link javafx.scene.control.Labeled#getText() text} property for the instance constructed by this builder.
*/
@
SuppressWarnings("unchecked")
public B
text(java.lang.
String x) {
this.
text =
x;
__set(7);
return (B) this;
}
private javafx.scene.text.
TextAlignment textAlignment;
/**
Set the value of the {@link javafx.scene.control.Labeled#getTextAlignment() textAlignment} property for the instance constructed by this builder.
*/
@
SuppressWarnings("unchecked")
public B
textAlignment(javafx.scene.text.
TextAlignment x) {
this.
textAlignment =
x;
__set(8);
return (B) this;
}
private javafx.scene.paint.
Paint textFill;
/**
Set the value of the {@link javafx.scene.control.Labeled#getTextFill() textFill} property for the instance constructed by this builder.
*/
@
SuppressWarnings("unchecked")
public B
textFill(javafx.scene.paint.
Paint x) {
this.
textFill =
x;
__set(9);
return (B) this;
}
private javafx.scene.control.
OverrunStyle textOverrun;
/**
Set the value of the {@link javafx.scene.control.Labeled#getTextOverrun() textOverrun} property for the instance constructed by this builder.
*/
@
SuppressWarnings("unchecked")
public B
textOverrun(javafx.scene.control.
OverrunStyle x) {
this.
textOverrun =
x;
__set(10);
return (B) this;
}
private boolean
underline;
/**
Set the value of the {@link javafx.scene.control.Labeled#isUnderline() underline} property for the instance constructed by this builder.
*/
@
SuppressWarnings("unchecked")
public B
underline(boolean
x) {
this.
underline =
x;
__set(11);
return (B) this;
}
private boolean
wrapText;
/**
Set the value of the {@link javafx.scene.control.Labeled#isWrapText() wrapText} property for the instance constructed by this builder.
*/
@
SuppressWarnings("unchecked")
public B
wrapText(boolean
x) {
this.
wrapText =
x;
__set(12);
return (B) this;
}
}