本文整理汇总了Java中com.sencha.gxt.core.client.dom.ScrollSupport类的典型用法代码示例。如果您正苦于以下问题:Java ScrollSupport类的具体用法?Java ScrollSupport怎么用?Java ScrollSupport使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ScrollSupport类属于com.sencha.gxt.core.client.dom包,在下文中一共展示了ScrollSupport类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getHelpPanel
import com.sencha.gxt.core.client.dom.ScrollSupport; //导入依赖的package包/类
private HorizontalLayoutContainer getHelpPanel(final HTML data) {
HorizontalLayoutContainer panel = new HorizontalLayoutContainer();
panel.setSize("400px", "400px");
panel.add(data);
ScrollSupport scrollSupport = panel.getScrollSupport();
scrollSupport.setScrollMode(ScrollMode.AUTO);
return panel;
}
示例2: create
import com.sencha.gxt.core.client.dom.ScrollSupport; //导入依赖的package包/类
protected void create() {
setSize(WIDTH, HEIGHT);
setVisible(false);
getElement().getStyle().setPosition(Position.ABSOLUTE);
getElement().getStyle().setRight(5, Unit.PX);
getElement().getStyle().setTop(70, Unit.PX);
ScrollSupport scrollSupport = getScrollSupport();
scrollSupport.setScrollMode(ScrollMode.AUTO);
createContentPanel();
add(contentPanel);
new Draggable(this);
}
示例3: getPanel
import com.sencha.gxt.core.client.dom.ScrollSupport; //导入依赖的package包/类
private HorizontalLayoutContainer getPanel(final HTML data) {
HorizontalLayoutContainer panel = new HorizontalLayoutContainer();
panel.setSize("400px", "400px");
panel.add(data);
ScrollSupport scrollSupport = panel.getScrollSupport();
scrollSupport.setScrollMode(ScrollMode.AUTO);
return panel;
}
示例4: EditorPanel
import com.sencha.gxt.core.client.dom.ScrollSupport; //导入依赖的package包/类
public EditorPanel(ClassEditor<?> editor) {
this.editor = editor;
setScrollMode(ScrollSupport.ScrollMode.AUTO);
for (Map.Entry<String, Field<?>> entry : editor.getFieldsEditors().entrySet()) {
add(new FieldLabel(entry.getValue(), entry.getKey()), new VerticalLayoutData(1, -1));
}
}