Add setReadOnly() to CopyableLabel
Added setReadOnly() so the TextBox can be made non-editable. Change-Id: Ic9418e120264352d17e27d0c9a428918b7abc1c1
This commit is contained in:
committed by
Shawn Pearce
parent
1ee35db3d6
commit
ced6c359f5
@@ -178,6 +178,7 @@ public class CopyableLabel extends Composite implements HasText {
|
||||
textBox = new TextBox();
|
||||
textBox.setText(getText());
|
||||
textBox.setVisibleLength(visibleLen);
|
||||
textBox.setReadOnly(true);
|
||||
textBox.addKeyPressHandler(new KeyPressHandler() {
|
||||
@Override
|
||||
public void onKeyPress(final KeyPressEvent event) {
|
||||
|
||||
Reference in New Issue
Block a user