Very cool. Let us know if you have more difficulties.
~Roger Whitcomb
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
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
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
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
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
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
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
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