本文整理匯總了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));
}
}