Package de.lessvoid.nifty.controls.textfield.builder

Examples of de.lessvoid.nifty.controls.textfield.builder.TextFieldBuilder


        }});
        panel(builders.vspacer());
        panel(new PanelBuilder() {{
          childLayoutHorizontal();
          control(builders.createLabel("Current Value:"));
          control(new TextFieldBuilder("scrollbarH_CurrentValue_Textfield") {{
            width("50px");
          }});
          panel(builders.hspacer("20px"));
          control(new LabelBuilder() {{
            text("World Max:");
            alignLeft();
            textVAlignCenter();
            textHAlignLeft();
            width("70px");
          }});
          panel(builders.hspacer("15px"));
          control(new TextFieldBuilder("scrollbarH_WorldMax_Textfield") {{
            width("50px");
          }});
          panel(builders.hspacer("20px"));
          control(new LabelBuilder() {{
            text("Page Size:");
            alignLeft();
            textVAlignCenter();
            textHAlignLeft();
          }});
          panel(builders.hspacer("15px"));
          control(new TextFieldBuilder("scrollbarH_ViewMax_Textfield") {{
            width("50px");
          }});
        }});
        panel(builders.vspacer());
        panel(new PanelBuilder() {{
          childLayoutHorizontal();
          control(builders.createLabel("Button Step:"));
          control(new TextFieldBuilder("scrollbarH_ButtonStepSize_Textfield") {{
            width("50px");
          }});
          panel(builders.hspacer("20px"));
          control(new LabelBuilder() {{
            text("Page Step:");
            alignLeft();
            textVAlignCenter();
            textHAlignLeft();
            width("70px");
          }});
          panel(builders.hspacer("15px"));
          control(new TextFieldBuilder("scrollbarH_PageStepSize_Textfield") {{
            width("50px");
          }});
        }});
      }});
    }}.registerControlDefintion(nifty);
View Full Code Here


      controller(new TextFieldDialogController());
      control(new ControlBuilder(DialogPanelControlDefinition.NAME) {{
        panel(new PanelBuilder() {{
          childLayoutHorizontal();
          control(builders.createLabel("Textfield:"));
          control(new TextFieldBuilder("mainTextField") {{
            width("*");
          }});
        }});
        panel(builders.vspacer());
        panel(builders.vspacer());
        panel(builders.vspacer());
        panel(new PanelBuilder() {{
          childLayoutHorizontal();
          control(builders.createLabel("Password Mode:"));
          control(new ControlBuilder("passwordCharCheckBox", "checkbox") {{
            set("checked", "false"); // start with uncheck
          }});
          panel(builders.hspacer("20px"));
          control(builders.createShortLabel("Char:", "40px"));
          panel(builders.hspacer("10px"));
          control(new TextFieldBuilder("passwordCharTextField", "*") {{
            maxLength(1);
            width("20px");
          }});
        }});
        panel(builders.vspacer());
        panel(new PanelBuilder() {{
          childLayoutHorizontal();
          control(builders.createLabel("Enable Length:"));
          control(new ControlBuilder("maxLengthEnableCheckBox", "checkbox") {{
            set("checked", "false");
          }});
          panel(builders.hspacer("20px"));
          control(builders.createShortLabel("Max:", "40px"));
          panel(builders.hspacer("10px"));
          control(new TextFieldBuilder("maxLengthTextField") {{
            width("50px");
          }});
        }});
        panel(builders.vspacer());
        panel(new PanelBuilder() {{
View Full Code Here

        }});
        panel(builders.vspacer());
        panel(new PanelBuilder() {{
          childLayoutHorizontal();
          control(builders.createLabel("Position X:"));
          control(new TextFieldBuilder("scrollpanelXPos") {{
            width("50px");
          }});
        }});
        panel(builders.vspacer());
        panel(new PanelBuilder() {{
          childLayoutHorizontal();
          control(builders.createLabel("Position Y:"));
          control(new TextFieldBuilder("scrollpanelYPos") {{
            width("50px");
          }});
        }});
      }});
    }}.registerControlDefintion(nifty);
View Full Code Here

TOP

Related Classes of de.lessvoid.nifty.controls.textfield.builder.TextFieldBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.