Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8418549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:21:59+00:00 2026-06-10T02:21:59+00:00

I am trying to implement the cut, copy and paste functionality for a page

  • 0

I am trying to implement the cut, copy and paste functionality for a
page that has around 70 widgets including text boxes, list boxes,
labels, containers, panels and so on. The cut, copy and paste buttons
are part of these. When a User selects text in some text box in the
page and clicks on copy, the text box loses focus and the copy button
now has it. I need the text to call a method that has some Javascript
call in it like:

$wnd.window.clipboardData.setData(“Text”,text);

In order for me to do that I need text from the text box and because
the copy button now has it, I do not know where it has been selected
from.

Can anyone let me know if they have done anything similar before using
GWT?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T02:22:01+00:00Added an answer on June 10, 2026 at 2:22 am

    A little late but finally I am posting how i worked around this issue last year itself.

    I created MouseOverHandlers for the cut, copy and paste buttons and when the User hovers over any of those widgets, in the handling logic I am using some native javaScript code to find the active element in DOM and am converting it to a GWT element using GQuery.

    After converting it, I check if it is an instance of TextBoxBase and if it is, I just pick up the text from that field to cut, copy. Paste works similarly except I paste only when the widget is an instance of TextBoxBase (so that TextBox and TextArea widgets are covered.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to implement in C++ a function that determines the cut of
Im trying to implement a destructor for the objects of linked-list Iv created. I
SetFocus I'm trying implement the above Se Focus code in a Class Library that
I'm trying to implement OpenID. I've cut my code right back to try and
I am trying to implement a generic (template) bidirectional linked list, similar to C#.NET
I'm trying implement a custom login page to use in my JSF 2.0 application.
Trying to implement a MSMQ-backed WCF PubSub. I understand that net.msmq is one-way; however
Trying to implement a timer for my game that I'm making. I have a
Trying to implement a simple print in SL4. I have a DataGrid that I
I'm trying implement A* Start path finding in my games(which are written with JavaScript,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.