Thanks again for the help.
However, when I subclass the row editor:

public class myRowEditor extends TableViewRowEditor {

        @Override
        public boolean keyPressed(int keyCode, Keyboard.KeyLocation kl) {
                boolean consumed = false;
                System.out.println("key pressed");
                if (keyCode == Keyboard.KeyCode.KEYPAD_DOWN || keyCode ==
Keyboard.KeyCode.KEYPAD_UP) {
                        close(true);
                        consumed = true;
                }
                return consumed;
        }
}

and change the bxml accordingly:

<rowEditor>
  <mycode:myRowEditor>
...
</mycode:myRowEditor>
</rowEditor>

I get the following serialization error:
org.apache.pivot.serialization.SerializationException: Property elements
cannot have a namespace prefix.
        at
org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.java:767)
        at
org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:435)
        at
org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:614)
        at
org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:568)
        at
org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:534)

My namespace is properly added to the xml file, so I don't understand where
is the problem.

-- 
View this message in context: 
http://apache-pivot-users.399431.n3.nabble.com/TableView-selectedRowChanged-tp1992938p1997629.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Reply via email to