Examples of TextBox


Examples of Ocarina2D.TextEngine.TextBox

  }
 
 
  public void start() {
    System.out.println("starting");
    TextBox text = new TextBox();
        text.continueAnyway = true;
        text.addTextField("In the vast, deep forest of Hyrule...");
        text.addTextField("Long have I served as the guardian spirit... I am known as the Deku Tree...");
       
        // GO TO LINKS HOUSE (its dark)
       
        text.addTextField("The children of the forest, the Kokiri, live here with me.");
        text.addTextField("Each Kokiri has his or her own guardian fairy.");
        text.addTextField("However there is one boy who does not have a fairy...");
       
        waitObjectexists(text);
        // Link shuffles and makes upset sound
       
        // GO TO HYRULE CASTLE, GATE COMES DOWN (its night, raining) (Link has a fairy)
        // Zelda and impa rush through on a white horse
        // Then Gannondorf stops next to Link on his black horse.
        // He raises his hand, the screen goes white.
       
        text = new TextBox();
        text.continueAnyway = false;
        text.addTextField("Navi... Navi, where art thou? Come hither...");
       
        // Show Navi in front of Deku Tree
       
        text = new TextBox();
        text.continueAnyway = false;
        text.addTextField("Oh, Navi the fairy... Listen to my words, the words of the Deku tree...");
       
        text.addTextField("Dost thou sense it? The climate of evil descending upon this realm...");
        text.addTextField("Malevolent forces even now are mustering to attack our land of Hyrule...");
        text.addTextField("For so long, the Kokiri Forest, the source of life, has stood as a barrier, deterring outsiders and maintaining the order of the world...");
        text.addTextField("But...before this tremendous evil power, even my power is as nothing...");
        text.addTextField("It seems the time has come for the boy without a fary to begin his journey...");
        text.addTextField("The youth whose destiny it is to leave Hyruleto the path of justice and truth....");
        text.addTextField("Navi...go now! Find our young friend and guide him to me...");
        text.addTextField("I do not have much time left.");
        text.addTextField("Fly, Navi, fly! the fate of the forest, nay, the world, depends upon thee!");
        // Navi flies through the forest and shit.
        // SAVED IN SLOT 2
        waitObjectexists(text);
       
  }
View Full Code Here

Examples of com.dodo.blog.ui.component.input.TextBox

        add( form );

        FieldSet fieldSet = new FieldSet( localize( "title.playgroundEdit" ) );
        form.add( fieldSet );

        fieldSet.add( new FormRow( localize( "label.description" ), new TextBox( "description" ).setAutoFocus( true ) ) );
        fieldSet.add( new FormRow( localize( "label.code" ), new TextArea( "code" ) ) );

        form.add( new AjaxSubmitButton( "save", localize( "button.save" ) ) );
        form.add( new Anchor( "cancel", localize( "button.cancel" ), PlaygroundList.class ) );
    }
View Full Code Here

Examples of com.eagerlogic.cubee.client.components.TextBox

        private TextBox textBox;

        public StringAttributeEditor(AAttribute<String> attribute) {
            super(attribute);
           
            textBox = new TextBox();
            textBox.textProperty().set(getAttribute().getValue());
            textBox.widthProperty().bind(new AExpression<Integer>() {
               
                {
                    bind(clientWidthProperty(), textBox.paddingProperty(), textBox.borderProperty());
View Full Code Here

Examples of com.github.gwtbootstrap.client.ui.TextBox

    private String minViewMode = ViewMode.HOUR.name().toLowerCase();
    private String startViewMode = ViewMode.MONTH.name().toLowerCase();
    private String maxViewMode = ViewMode.DECADE.name().toLowerCase();

    public DateTimeBoxBase() {
        this.box = new TextBox();
        this.language = LocaleUtil.getLanguage();
        setElement(box.getElement());
        setFormat("yyyy/mm/dd hh:ii");
        setWeekStart(LocaleInfo.getCurrentLocale().getDateTimeFormatInfo().firstDayOfTheWeek());
        setValue(new Date());
View Full Code Here

Examples of com.google.gwt.user.client.ui.TextBox

  
   public AskQuestionWidget()
   {     
      Label lbl = new Label("OK, what do you want to know?");
      panel.add(lbl);
      final TextBox box = new TextBox();
      box.setText("What is the meaning of life?");
      panel.add(box);
      Button ok = new Button("Ask");
      ok.addClickListener(new ClickListener()
      {
         public void onClick(Widget w)
         {
            ValidationUtility valid = new ValidationUtility();
            if (!valid.isValid(box.getText()))
            {
               Window.alert("A question has to end with a '?'");
            }
            else
            {
               askServer(box.getText());
            }
         }
      });
      panel.add(ok);
     
View Full Code Here

Examples of com.google.gwt.user.client.ui.TextBox

            final AuctionItem item = (AuctionItem) itens.get(i);

            final int itemId = item.getId();
            final Label labelNumberOfBids = new Label(String.valueOf(item.getNumberOfBids()));
            final Label labelPrice = new Label("$ " + String.valueOf(item.getPrice()));
            final TextBox txtBoxMyBid = new TextBox();
            final Button bidButton = new Button("Bid!");
            final Label labelMessage = new Label("");

            bidButton.setStylePrimaryName("principal");

            //Save itemPrice Label to be used when new bids are processed.
            mapOfItemPrices.put(new Integer(itemId), labelPrice);
            //Save numberOfBids Label to be used when new bids are processed.
            mapOfNumberOfBids.put(new Integer(itemId), labelNumberOfBids);

            //Handle ENTER key
            txtBoxMyBid.addKeyboardListener(new KeyboardListener() {

                public void onKeyUp(Widget sender, char keyCode, int modifiers) {
                    if (keyCode == '\r') {
                        sendNewBid(item, txtBoxMyBid, labelMessage);
                    }
View Full Code Here

Examples of com.google.gwt.user.client.ui.TextBox

            } else {
                if ( methodParameter.nature == FieldNature.TYPE_VARIABLE ) {
                    ListBox list = boundVariable( methodParameter );
                    root.add( list );
                } else {
                    TextBox box = boundTextBox( this.methodParameter );
                    root.add( box );
                }

            }
View Full Code Here

Examples of com.google.gwt.user.client.ui.TextBox

        }
        return listVariable;
    }

    private TextBox boundTextBox(final ActionFieldValue c) {
        final TextBox box = new TextBox();
        box.setStyleName( "constraint-value-Editor" );
        if ( c.value == null ) {
            box.setText( "" );
        } else {
            if ( c.value.trim().equals( "" ) ) {
                c.value = "";
            }
            box.setText( c.value );
        }

        if ( c.value == null || c.value.length() < 5 ) {
            box.setVisibleLength( 6 );
        } else {
            box.setVisibleLength( c.value.length() - 1 );
        }

        box.addChangeHandler( new ChangeHandler() {

            public void onChange(ChangeEvent event) {
                c.value = box.getText();
                if ( onValueChangeCommand != null ) {
                    onValueChangeCommand.execute();
                }
                makeDirty();
            }

        } );

        box.addKeyUpHandler( new KeyUpHandler() {

            public void onKeyUp(KeyUpEvent event) {
                box.setVisibleLength( box.getText().length() );
            }
        } );

        if ( methodParameter.type.equals( SuggestionCompletionEngine.TYPE_NUMERIC ) ) {
            box.addKeyPressHandler( new NumbericFilterKeyPressHandler( box ) );
        }

        return box;
    }
View Full Code Here

Examples of com.google.gwt.user.client.ui.TextBox

        int codeTableRow = 0;
        int codeTableCol = 0;

        codeTable.setWidget(codeTableRow, codeTableCol++, new HTML("<div class='form-field'>Init:</div>"));
       
        final TextBox initField = new TextBox();
        initField.setTitle("init code");
        initField.setText(getFromAccumulatePattern().getInitCode());
        initField.setEnabled(!this.readOnly);
        codeTable.setWidget(codeTableRow++, codeTableCol--, initField);

        codeTable.setWidget(codeTableRow, codeTableCol++, new HTML("<div class='form-field'>Action:</div>"));
        final TextBox actionField = new TextBox();
        actionField.setTitle("action code");
        actionField.setText(getFromAccumulatePattern().getActionCode());
        actionField.setEnabled(!this.readOnly);
        codeTable.setWidget(codeTableRow++, codeTableCol--, actionField);

        codeTable.setWidget(codeTableRow, codeTableCol++, new HTML("<div class='form-field'>Reverse:</div>"));
        final TextBox reverseField = new TextBox();
        reverseField.setTitle("reverse code.");
        reverseField.setText(getFromAccumulatePattern().getReverseCode());
        reverseField.setEnabled(!this.readOnly);
        codeTable.setWidget(codeTableRow++, codeTableCol--, reverseField);

        codeTable.setWidget(codeTableRow, codeTableCol++, new HTML("<div class='form-field'>Result:</div>"));
        final TextBox resultField = new TextBox();
        resultField.setTitle("result code");
        resultField.setText(getFromAccumulatePattern().getResultCode());
        resultField.setEnabled(!this.readOnly);
        codeTable.setWidget(codeTableRow++, codeTableCol--, resultField);


        //panel.setWidget(r++, 0, codeTable);
        ScrollPanel codePanel = new ScrollPanel();
        codePanel.add(codeTable);
       
        tPanel.add(codePanel,"Custom Code");

        DirtyableFlexTable functionTable = new DirtyableFlexTable();

        functionTable.setWidget(0, 0, new HTML("<div class='form-field'>Function:</div>"));
        final TextBox functionField = new TextBox();
        functionField.setTitle("function code");
        functionField.setText(getFromAccumulatePattern().getFunction());
        functionField.setEnabled(!this.readOnly);
        functionTable.setWidget(0, 1, functionField);

//        panel.setWidget(r++, 0, functionTable);

        ScrollPanel functionPanel = new ScrollPanel();
        functionPanel.add(functionTable);
       
       
        tPanel.add(functionPanel,"Function");
        ChangeHandler changehandler = new ChangeHandler() {

            public void onChange(ChangeEvent event) {
                Widget sender = (Widget)event.getSource();
                TextBox senderTB = (TextBox) event.getSource();
                String code = senderTB.getText();
                setModified(true);
                if (sender == initField) {
                    getFromAccumulatePattern().setFunction(null);
                    functionField.setText("");
                    getFromAccumulatePattern().setInitCode(code);
View Full Code Here

Examples of com.google.gwt.user.client.ui.TextBox

        pred.add( img );
        if ( c.getValue() == null ) {
            c.setValue( "" );
        }

        final TextBox box = new TextBox();
        box.setText( c.getValue() );

        if ( !this.readOnly ) {
            box.addChangeHandler( new ChangeHandler() {

                public void onChange(ChangeEvent event) {
                    setModified( true );
                    c.setValue( box.getText() );
                    getModeller().makeDirty();
                }
            } );
            box.setWidth( "100%" );
            pred.add( box );
        } else {
            pred.add( new SmallLabel( c.getValue() ) );
        }
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.