GWT-EXT TREE (Panel) linkage scroll bar implementation.

GWT-EXT is not found find the "scroll" Listener, directly above the Canadian

treePanel.addListener("scroll", new Function(){

                        @Override
                        public void execute() {
                                MessageBox.alert("test scroll");
                        }});

Will not trigger the scroll of events.

Solution:

treePanel.addListener(new PanelListenerAdapter() {
                        public void onRender(Component component) {
                                treePanel.getBody().addListener("scroll",
                                                new EventCallback() {
                                                        @Override
                                                        public void execute(EventObject e) {
                                                                int a[] = treePanel.getBody().getScroll();

                                                                Panel ganttPanel = UiManager.panelUIMap.get("ganttPanel");

                                                                ganttPanel.getBody().setScrollTop(a[1]);

                                                        }
                                                });
                        }
                });

Must

onRender

After his Bod add Listener in order to respond to scroll events.

Linkage segment of simple, first of all for being linkage components.

Panel ganttPanel = UiManager.panelUIMap.get("ganttPanel");

The value of the current component scroll to the need for linkage of the components, do not be able to realize the linkage between the two.

分类:Web 时间:2009-02-20 人气:413
分享到:
blog comments powered by Disqus

相关文章

  • public void testStatementAddBatch () public void testConnCommit () 2011-09-01

    public void testStatementAddBatch() { Connection conn = null; Statement stmt = null; try { conn = getDBConnectionMsSqlBySuperAdmin(); stmt = conn.createStatement(); for(int i = 0; i < 100; i++) { String sql = " sql " + i; stmt.addBatch(sql);

  • Hibernate component (Component) map 2010-03-28

    Component (Component) map Component (component) is a contained object that is persisted as a value type, rather than a quoted entity. "Component (component)" The term refers to the synthesis of object-oriented concepts (not to architecture-level

  • Implementation of public documents download page! 2010-12-02

    In the web system, we usually need to download the file, we can jump through the page to achieve the appropriate download.jsp page, simply add the url or action in the file name of the parameters can be obtained. Implement the following jsp files to

  • Flex 3 Getting Started (20): build a custom component in MXML components to construct 2010-08-26

    In a typical application, does not capture all of the code are written to a file. This will give developers more than a project with colleagues in the development and debugging very difficult, would also hinder code reuse. Instead, use of multiple MX

  • FLEX Component Component Summary 2011-05-23

    Combox default object property named label labelField used as a display ComboBox stored in the list (this list refers to array / arraylist / arraycollection, etc.), if the label list in the Object has this property, then you do not have to specify th

  • Iteration the selected component (component) 2010-04-26

    We already know how to select the object, but if the object is a component, let's how to use api to select points, edges, surfaces, etc. component then? Create a polygon in the scene object, and then select it in the points, edges, surfaces, or UV, s

  • [Original] Flash upload component form (Annex components) 2010-06-07

    Function: 1. To xtype: "flashfile" create components 2. Can limit the file types allowed to choose 3. Upload show progress 4. N one can upload files 5. Can choose whether to upload the files to delete Note: Because of the time, being unable to p

  • Turn: pentaho source code analysis 2011-03-01

    Transfer: http://blog.csdn.net/wengyupeng/archive/2008/07/16/2659662.aspx Pentaho project is divided into three parts: ü pentaho engine (which is part of the basic little after the change) ü pentaho-solution (solution, that is, depending on the needs

  • Inversion of Control and the container (1) 2010-03-29

    IoC (Inversion of control, inversion of control) is a universal design principles, while the DI (Dependency Injection, Dependency Injection) is a specific design pattern, which fully embodies the design principles of IoC is a typical IoC implementati

  • j2me under the low-level UI Style Box (multi-Palace grid) drawing method 2010-03-29

    The code is as follows, this is a project where I wrote one, and realized the next page results, there is no next page, and event handling to achieve drag and drop interface. Variable definitions: /** There are animated version of the page */ private

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 黔ICP备15002463号-1

processed in 0.288 (s). 12 q(s)