0

How to set listbox.pagingPosition in Java

asked 2020-12-15 20:57:25 +0800

54patman gravatar image 54patman
13 3

I'm developing mostly in Java and the property listbox.pagingPosition is not in the Listbox class. How do I programmatically set this property. I search a long time.

Thanks in advance.

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2020-12-17 09:28:52 +0800

hawk gravatar image hawk
2740 1 5
http://hawkphoenix.blogsp... ZK Team

updated 2020-12-17 09:30:44 +0800

Since some methods are inherited. Please check javadoc, you can find all methods including inherited.

https://www.zkoss.org/javadoc/latest/zk/org/zkoss/zul/Listbox.html

So you can call listbox.setPagingPosition() instead of overriding renderProperties()

link publish delete flag offensive edit
0

answered 2020-12-16 20:24:04 +0800

54patman gravatar image 54patman
13 3

I figured it out:

Listbox rowsOfCardsContent = new Listbox() {    
    protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) throws java.io.IOException {
        super.renderProperties(renderer);
        render(renderer, "pagingPosition", "top");
    }           
};
link publish delete flag offensive edit

Comments

Never mind the pagingPosition is in the MeshElement.

54patman ( 2020-12-16 21:57:54 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2020-12-15 20:57:25 +0800

Seen: 6 times

Last updated: Dec 17 '20

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More