code: protected void editTitle() {
  
          m_title.setVisible(false);
          final TextBox box = new TextBox();
          box.setText(m_title.getText());
          box.getElement().setAttribute("size", "45");
          box.addStyleName(I_CmsInputLayoutBundle.INSTANCE.inputCss().labelInput());
          box.addStyleName(I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().titleInput());
          final String originalTitle = m_title.getText();
          // wrap the boolean flag in an array so we can change it from the event handlers
          final boolean[] checked = new boolean[] {false};
          final boolean restoreUnselectable = CmsDomUtil.hasClass(
              I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().unselectable(),
              m_contentPanel.getElement());
          m_contentPanel.removeStyleName(I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().unselectable());
          box.addBlurHandler(new BlurHandler() {
  
              /**
               * @see com.google.gwt.event.dom.client.BlurHandler#onBlur(com.google.gwt.event.dom.client.BlurEvent)
               */
              public void onBlur(BlurEvent event) {
  
                  if (restoreUnselectable) {
                      setUnselectable();
                  }
                  if (checked[0]) {
                      return;
                  }
  
                  onEditTitleTextBox(box);
                  checked[0] = true;
              }
          });
  
          box.addKeyPressHandler(new KeyPressHandler() {
  
              /**
               * @see com.google.gwt.event.dom.client.KeyPressHandler#onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent)
               */
              public void onKeyPress(KeyPressEvent event) {
  
                  if (checked[0]) {
                      return;
                  }
  
                  int keycode = event.getNativeEvent().getKeyCode();
  
                  if ((keycode == 10) || (keycode == 13)) {
                      onEditTitleTextBox(box);
                      checked[0] = true;
                  }
                  if (keycode == 27) {
                      box.setText(originalTitle);
                      onEditTitleTextBox(box);
                      checked[0] = true;
  
                  }
              }
          });
          m_titleBox.insert(box, 2);
          box.setFocus(true);
      }
docs: Internal method which is called when the user clicks on an editable title field.<p>