Examples of UITextField


Examples of cli.MonoTouch.UIKit.UITextField

{
    public static class SingleLine extends IOSNativeTextField
    {
        public SingleLine (IOSTextFieldHandler handler, IOSNativeTextField prior,
                Field.Native field) {
            super(handler, new UITextField(), prior, field);
            _field = (UITextField)view;
            _field.set_VerticalAlignment(
                UIControlContentVerticalAlignment.wrap(UIControlContentVerticalAlignment.Center));

            // all fields close the keyboard when the return key is used
View Full Code Here

Examples of com.ardor3d.extension.ui.UITextField

    private UIPanel makeLoginPanel() {
        final UIPanel pLogin = new UIPanel(new GridLayout());
        final UILabel lHeader = new UILabel("Welcome! Log in to server xyz");
        lHeader.setLayoutData(new GridLayoutData(2, true, true));
        final UILabel lName = new UILabel("Name");
        final UITextField tfName = new UITextField();
        tfName.setText("player1");
        tfName.setLayoutData(GridLayoutData.WrapAndGrow);
        final UILabel lPassword = new UILabel("Password");
        final UIPasswordField tfPassword = new UIPasswordField();
        tfPassword.setLayoutData(GridLayoutData.WrapAndGrow);
        final UIButton btLogin = new UIButton("login");
        btLogin.addActionListener(new ActionListener() {
            public void actionPerformed(final ActionEvent event) {
                System.out.println("login as user: " + tfName.getText() + " password: " + tfPassword.getText());
            }
        });
        pLogin.add(lHeader);
        pLogin.add(lName);
        pLogin.add(tfName);
View Full Code Here

Examples of com.ardor3d.extension.ui.UITextField

        historyArea.setStyledText(true);
        historyArea.setAlignment(Alignment.BOTTOM_LEFT);
        historyArea.setEditable(false);
        final UIScrollPanel scrollArea = new UIScrollPanel(historyArea);
        scrollArea.setLayoutData(BorderLayoutData.CENTER);
        final UITextField chatField = new UITextField();
        chatField.setLayoutData(BorderLayoutData.CENTER);
        final UIButton chatButton = new UIButton("SAY");
        chatButton.setLayoutData(BorderLayoutData.EAST);

        final ActionListener actionListener = new ActionListener() {
            public void actionPerformed(final ActionEvent event) {
                applyChat(historyArea, chatField);
            }
        };
        chatButton.addActionListener(actionListener);
        chatField.addActionListener(actionListener);

        bottomPanel.add(chatField);
        bottomPanel.add(chatButton);

        chatPanel.add(dirLabel);
View Full Code Here

Examples of com.ardor3d.extension.ui.UITextField

    private UIPanel makeLoginPanel() {
        final UIPanel pLogin = new UIPanel(new GridLayout());
        final UILabel lHeader = new UILabel("Welcome! Log in to server xyz");
        lHeader.setLayoutData(new GridLayoutData(2, true, true));
        final UILabel lName = new UILabel("Name");
        final UITextField tfName = new UITextField();
        tfName.setText("player1");
        tfName.setLayoutData(GridLayoutData.WrapAndGrow);
        final UILabel lPassword = new UILabel("Password");
        final UIPasswordField tfPassword = new UIPasswordField();
        tfPassword.setLayoutData(GridLayoutData.WrapAndGrow);
        final UIButton btLogin = new UIButton("login");
        btLogin.addActionListener(new ActionListener() {
            public void actionPerformed(final ActionEvent event) {
                System.out.println("login as user: " + tfName.getText() + " password: " + tfPassword.getText());
            }
        });
        pLogin.add(lHeader);
        pLogin.add(lName);
        pLogin.add(tfName);
View Full Code Here

Examples of com.ardor3d.extension.ui.UITextField

        historyArea.setStyledText(true);
        historyArea.setAlignment(Alignment.BOTTOM_LEFT);
        historyArea.setEditable(false);
        final UIScrollPanel scrollArea = new UIScrollPanel(historyArea);
        scrollArea.setLayoutData(BorderLayoutData.CENTER);
        final UITextField chatField = new UITextField();
        chatField.setLayoutData(BorderLayoutData.CENTER);
        final UIButton chatButton = new UIButton("SAY");
        chatButton.setLayoutData(BorderLayoutData.EAST);

        final ActionListener actionListener = new ActionListener() {
            public void actionPerformed(final ActionEvent event) {
                applyChat(historyArea, chatField);
            }
        };
        chatButton.addActionListener(actionListener);
        chatField.addActionListener(actionListener);

        bottomPanel.add(chatField);
        bottomPanel.add(chatButton);

        chatPanel.add(dirLabel);
View Full Code Here

Examples of org.robovm.apple.uikit.UITextField

  @Override
  public void setOnscreenKeyboardVisible(boolean visible) {
    if (textfield == null) {
      //Making simple textField
      textfield = new UITextField(new CGRect(10, 10, 100, 50));
      //Setting parameters
      textfield.setKeyboardType(UIKeyboardType.Default);
      textfield.setReturnKeyType(UIReturnKeyType.Done);
      textfield.setAutocapitalizationType(UITextAutocapitalizationType.None);
      textfield.setAutocorrectionType(UITextAutocorrectionType.No);
View Full Code Here

Examples of org.robovm.apple.uikit.UITextField

        if (clicked == 0) {
          // user clicked "Cancel" button
          listener.canceled();
        } else if (clicked == 1) {
          // user clicked "Ok" button
          UITextField textField = view.getTextField(0);
          listener.input(textField.getText());
        }
        delegate = null;
      }

      @Override
      public void cancel (UIAlertView view) {
        listener.canceled();
        delegate = null;
      }
    };

    // build the view
    final UIAlertView uiAlertView = new UIAlertView();
    uiAlertView.setTitle(title);
    uiAlertView.addButton("Cancel");
    uiAlertView.addButton("Ok");
    uiAlertView.setAlertViewStyle(UIAlertViewStyle.PlainTextInput);
    uiAlertView.setDelegate(delegate);

    UITextField textField = uiAlertView.getTextField(0);
    textField.setPlaceholder(placeholder);
    textField.setText(text);

    return uiAlertView;
  }
View Full Code Here

Examples of org.robovm.apple.uikit.UITextField

  @Override
  public void setOnscreenKeyboardVisible(boolean visible) {
    if (textfield == null) {
      //Making simple textField
      textfield = new UITextField(new CGRect(10, 10, 100, 50));
      //Setting parameters
      textfield.setKeyboardType(UIKeyboardType.Default);
      textfield.setReturnKeyType(UIReturnKeyType.Done);
      textfield.setAutocapitalizationType(UITextAutocapitalizationType.None);
      textfield.setAutocorrectionType(UITextAutocorrectionType.No);
View Full Code Here

Examples of org.robovm.apple.uikit.UITextField

        if (clicked == 0) {
          // user clicked "Cancel" button
          listener.canceled();
        } else if (clicked == 1) {
          // user clicked "Ok" button
          UITextField textField = view.getTextField(0);
          listener.input(textField.getText());
        }
        delegate = null;
      }

      @Override
      public void cancel (UIAlertView view) {
        listener.canceled();
        delegate = null;
      }
    };

    // build the view
    final UIAlertView uiAlertView = new UIAlertView();
    uiAlertView.setTitle(title);
    uiAlertView.addButton("Cancel");
    uiAlertView.addButton("Ok");
    uiAlertView.setAlertViewStyle(UIAlertViewStyle.PlainTextInput);
    uiAlertView.setDelegate(delegate);

    UITextField textField = uiAlertView.getTextField(0);
    textField.setPlaceholder(placeholder);
    textField.setText(text);

    return uiAlertView;
  }
View Full Code Here

Examples of org.robovm.apple.uikit.UITextField

  @Override
  public void setOnscreenKeyboardVisible(boolean visible) {
    if (textfield == null) {
      //Making simple textField
      textfield = new UITextField(new CGRect(10, 10, 100, 50));
      //Setting parameters
      textfield.setKeyboardType(UIKeyboardType.Default);
      textfield.setReturnKeyType(UIReturnKeyType.Done);
      textfield.setAutocapitalizationType(UITextAutocapitalizationType.None);
      textfield.setAutocorrectionType(UITextAutocorrectionType.No);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.