https://sourceforge.net/tracker/?func=detail&aid=2900390&group_id=176962&atid=955896 [ asi editor error]
- the text box should be readonly as in swing
This commit is contained in:
parent
6db1d10b71
commit
4af7a6d33c
|
@ -161,4 +161,11 @@ public class EditorBox extends Div {
|
|||
public void setToolTipText(String tooltiptext) {
|
||||
txt.setTooltiptext(tooltiptext);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Button
|
||||
*/
|
||||
public Button getButton() {
|
||||
return btn;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -292,12 +292,14 @@ public class WPAttributeEditor extends WEditor implements ContextMenuListener
|
|||
|
||||
@Override
|
||||
public boolean isReadWrite() {
|
||||
return !getComponent().getTextbox().isReadonly();
|
||||
return getComponent().getButton().isEnabled();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setReadWrite(boolean readWrite) {
|
||||
getComponent().setEnabled(readWrite);
|
||||
|
||||
getComponent().getTextbox().setReadonly(true);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue