You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Young <yc...@gmail.com> on 2013/06/05 12:34:28 UTC
What do I need to do to listen to TableView row editor?
I have a row editor. When a TextInput is double-clicked one of the cell,
it will be selected and a cursor will be blinking. So, it becomes
editable. I want to know what cell becomes editable with blinking
cursor. There should be a listener for it but I could not find in
TableViewRowEidtor or TextInput. The sample code is below.
<rowEditor>
<content:TableViewRowEditor>
<cellEditors>
<marketName>
<TextInput bxml:id="a" textKey="x" prompt="a"/>
</marketName>
<orderDateString>
<TextInput bxml:id="b" textKey="y" prompt="b"/>
</orderDateString>
</cellEditors>
</content:TableViewRowEditor>
</rowEditor>
Re: What do I need to do to listen to TableView row editor?
Posted by ycp101 <yc...@gmail.com>.
I found it by trying a few of listeners.
tableViewFilter.getComponentStateListeners().add(new
ComponentStateListener.Adapter() {
public void focusedChanged(Component component, Component
obverseComponent) {
if (obverseComponent instanceof TextInput) {
TextInput ti = (TextInput) obverseComponent;
// do
}
}
});
Thanks for lots of hints in this mailing list
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/What-do-I-need-to-do-to-listen-to-TableView-row-editor-tp4022611p4022612.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.