Package com.google.gwt.event.dom.client

Examples of com.google.gwt.event.dom.client.FocusHandler


        this.sentences = sen;
        filter = new TextBox();
        filter.setWidth( "100%" );
        final String defaultMessage = constants.enterTextToFilterList();
        filter.setText( defaultMessage );
        filter.addFocusHandler( new FocusHandler() {
            public void onFocus(FocusEvent event) {
                filter.setText( "" );
            }
        } );
View Full Code Here


    public DefaultTextBox(final String defaultText) {
      this.defaultText = defaultText;
      resetDefaultText();

      // Add focus and blur handlers.
      addFocusHandler(new FocusHandler() {
        public void onFocus(FocusEvent event) {
          getElement().getStyle().clearColor();
          if (defaultText.equals(getText())) {
            setText("");
          }
View Full Code Here

        m_widget.setValue(value, false);
        m_widget.asWidget().addStyleName(I_LayoutBundle.INSTANCE.form().widget());
        m_widgetHolder.add(m_widget);
        m_widget.setName(getHandler().getAttributeName());
        m_widget.addValueChangeHandler(new ChangeHandler());
        m_widget.addFocusHandler(new FocusHandler() {

            public void onFocus(FocusEvent event) {

                HighlightingHandler.getInstance().setFocusHighlighted(AttributeValueView.this);
            }
View Full Code Here

     */
    public void setDefaultText(final String text)
    {
        textWidget.setText(text);
        textWidget.addStyleName(StaticResourceBundle.INSTANCE.coreCss().defaultClass());
        textWidget.addFocusHandler(new FocusHandler()
        {
            public void onFocus(final FocusEvent inEvent)
            {
                textWidget.setText("");
                textWidget.removeStyleName(StaticResourceBundle.INSTANCE.coreCss().defaultClass());
View Full Code Here

            {
                checkPostBox();
            }
        });

        postBox.addFocusHandler(new FocusHandler()
        {
            public void onFocus(final FocusEvent event)
            {
                postOptions.addClassName(style.visiblePostBox());
            }
View Full Code Here

        postInfoContainer.add(countDown);

        message.setText(defaultText);

        // user clicked in message text box
        message.addFocusHandler(new FocusHandler()
        {
            public void onFocus(final FocusEvent inEvent)
            {
                if ((" " + postContainer.getStyleName() + " ")
                        .contains(StaticResourceBundle.INSTANCE.coreCss().small()))
View Full Code Here

     * Wires up events.
     */
    private void setupEvents()
    {
        // user clicked in message text box
        message.addFocusHandler(new FocusHandler()
        {
            public void onFocus(final FocusEvent inEvent)
            {
                if ((" " + getStyleName() + " ").contains(StaticResourceBundle.INSTANCE.coreCss().small()))
                {
View Full Code Here

    }

    private FocusPanel createLabelPanel(final String url) {
        final FocusPanel panel = new FocusPanel();
        panel.setStyleName("fbFilesDataPanel");
        panel.addFocusHandler(new FocusHandler() {
            @Override
            public void onFocus(FocusEvent event) {
                if (panel.getStyleName().equals("fbFilesDataPanelSelected")) {
                    panel.setStyleName("fbFilesDataPanel");
                    setSelection(null);
View Full Code Here

            public void onBlur(BlurEvent event) {
                wrapper.setValue(false);
                item.reset();
            }
        });
        textBox.addFocusHandler(new FocusHandler() {
            @Override
            public void onFocus(FocusEvent event) {
                wrapper.setValue(true);
            }
        });
View Full Code Here

    public TaskRow(TaskRef ioRef, boolean even) {
        this.ioRef = ioRef;
        addStyleName(even ? "even" : "odd");
        panel.add(new HTML("<strong>" + i18n.FormProcessId() + "</strong> " + ioRef.getProcessId()));
        panel.add(new HTML("<strong>" + i18n.FormTaskId() + "</strong> " + ioRef.getTaskId()));
        this.focus = addFocusHandler(new FocusHandler() {
            @Override
            public void onFocus(FocusEvent event) {
                showInputs();
                showOutputs();
                showMetaData();
View Full Code Here

TOP

Related Classes of com.google.gwt.event.dom.client.FocusHandler

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.