Re: TableView Objects with nested Objects

2013-05-23 Thread Roger Whitcomb
Very cool. Let us know if you have more difficulties. ~Roger Whitcomb

RE: TableView Objects with nested Objects

2013-05-23 Thread Separovic, Jason
Thanks Roger, got it working. public void render(Object item, int index, ListView listView, boolean selected, boolean checked, boolean highlighted, boolean disabled) { renderStyles(listView, selected, highlighted, disabled); if(item==null) { la

Re: TableView Objects with nested Objects

2013-05-23 Thread Roger Whitcomb
Renderers get their "render" method called. In that method, cast the data object to your type and call the "getName" method of your data object. I'm not at my computer right now, but there are several tutorials and demos that use custom renderers that you can look at. ~Roger Whitcomb Sent fr

Re: TableView Objects with nested Objects

2013-05-23 Thread Roger Whitcomb
Hi Jason, There are actually two renderers you need to set/change: the ItemRenderer is for the drop down items in the list and the (Button) DataRenderer is for the button itself (i.e., the part that is always displayed). If you need help coding those, let us know. But should be pretty sim

RE: TableView Objects with nested Objects

2013-05-23 Thread Separovic, Jason
I tried to set the Item Renderer with my own implementation but it does not seem to call the toString method: OrderHandler handler = psfServer.getOrderHandler(); GenericDao dao = new GenericDao(handler.getEntityManager(), handler.getUserTransaction()); ListButton listButton

RE: TableView Objects with nested Objects

2013-05-23 Thread Separovic, Jason
Hi Roger, Thanks for the response. I was just missing the setSelectedItemKey bit as per the tutorial. So my nested object is now binding correctly thanks. ListButton listButton = new ListButton(); ArrayList listData = new ArrayList(); listData.add(null); for(Object o : dao.getAll(f.getTy

RE: TableView Objects with nested Objects

2013-05-23 Thread Roger L. Whitcomb
Hi Jason, In a short word, yes, the row editors rely on data binding. For instance, the TableViewRowEditor.beginEdit method has this code: // Get the data being edited List tableData = tableViewArgument.getTableData(); Object tableRow = tableData.get(row

Re: ScrollPane is not visible - implementation in Java (not using *.bxml)

2013-05-23 Thread Roger and Beth Whitcomb
The only thing wrong (that I can see) is that you should set the "view" of the ScrollPane to its content, instead of doing an "add". So, change this: scrollPane.add(tablePane); To this: scrollPane.setView(tablePane); HTH, ~Roger Whitcomb On 5/23/13 7:51 AM, marianciu wrote: Hi I wont impleme

ScrollPane is not visible - implementation in Java (not using *.bxml)

2013-05-23 Thread marianciu
Hi I wont implementation some view in Java (not using *.bxml). I'm not sure what exactly do it wrong. I called below method: private void initialMidleColumn() { border = new Border(); ScrollPane scrollPane = new ScrollPane(); scrollPane