• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java Overflow类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.smartgwt.client.types.Overflow的典型用法代码示例。如果您正苦于以下问题:Java Overflow类的具体用法?Java Overflow怎么用?Java Overflow使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Overflow类属于com.smartgwt.client.types包,在下文中一共展示了Overflow类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: buildAccordion

import com.smartgwt.client.types.Overflow; //导入依赖的package包/类
private void buildAccordion() {
          
    // Accordion Behavior 
    accordion.setVisibilityMode(VisibilityMode.MUTEX);
    accordion.setOverflow(Overflow.HIDDEN);
    accordion.setShowExpandControls(Boolean.FALSE);
    accordion.setShowResizeBar(Boolean.TRUE);
    accordion.setCanReorderSections(Boolean.FALSE);
    accordion.setCanResizeSections(Boolean.FALSE);
    
    // Animation currently doesn't appear to work
    accordion.setAnimateSections(Boolean.TRUE);
    accordion.setAnimateMemberTime(300);
    
    // Accordion Size 
    accordion.setWidth(ACCORDION_BUTTON_WIDTH + 10);  
    accordion.setHeight100();
}
 
开发者ID:will-gilbert,项目名称:OSWf-OSWorkflow-fork,代码行数:19,代码来源:AccordionPresenter.java


示例2: CkEditor

import com.smartgwt.client.types.Overflow; //导入依赖的package包/类
/**
 * Constructor for {@link CkEditor}. Handles necessary {@link Canvas}
 * parameters and adds a {@link ResizeHandler} which handles resizes of the
 * canvas
 */
/*
 * this.setRedrawOnResize is necessary since every redraw would destroy the
 * current CKEditor instance Therefore the ResizedHandler is necessary to
 * fit the size of the editor to its encapsulating canvas
 */
public CkEditor(boolean showToolbar,
		CkEditorInitListener... initListeners) {
	this.ck_id = this.getID() + "_ckEditor";
	this.showToolbar = showToolbar;
	this.initListeners = initListeners;
	this.setRedrawOnResize(false);
	this.setOverflow(Overflow.HIDDEN);
	this.addResizedHandler(new ResizedHandler() {

		@Override
		public void onResized(ResizedEvent event) {
			if (CkEditor.this.isDrawn())
				ckEditorJsObj.resize(getInnerContentWidth(),
						getInnerContentHeight());
		}
	});
}
 
开发者ID:UKPLab,项目名称:naacl-bea2016-writing-study,代码行数:28,代码来源:CkEditor.java


示例3: MarkerControlDynamicForm

import com.smartgwt.client.types.Overflow; //导入依赖的package包/类
/**
 * Initializes the elements of this {@link MarkerControlDynamicForm}
 */
public MarkerControlDynamicForm(Set<Feature> initialFeatures,
		MarkerType markerType, VersionManagement versionManagement,
		MarkerManagement markerManagement) {
	this.markerType = markerType;
	for (Feature feature : Feature.values()) {
		if (feature.getMarkerType() == this.markerType) {
			this.checkBoxItems.put(feature, createFeatureCheckbox(feature,
					initialFeatures.contains(feature),
					versionManagement, markerManagement));
		}
	}

	this.setPadding(10);
	this.setOverflow(Overflow.AUTO);
	this.setAlign(Alignment.LEFT);
	this.setBorder(Constants.CLIENT.GUI.CSS_BORDER);
	this.setFields(checkBoxItems.values().toArray(
			new CheckboxItem[0]));
}
 
开发者ID:UKPLab,项目名称:naacl-bea2016-writing-study,代码行数:23,代码来源:MarkerControlDynamicForm.java


示例4: MultiFeatureListGrid

import com.smartgwt.client.types.Overflow; //导入依赖的package包/类
public MultiFeatureListGrid(MapWidget map) {
	super();
	this.map = map;

	tabset = new TabSet();
	tabset.setWidth100();
	tabset.setHeight100();
	tabset.setOverflow(Overflow.HIDDEN);
	tabset.addCloseClickHandler(new CloseClickHandler() {

		public void onCloseClick(TabCloseClickEvent event) {
			setEmpty((tabset.getTabs().length == 1));
		}
	});
	this.addChild(tabset);

	empty = new Label(MESSAGES.multiFeatureListGridNoData());
	empty.setWidth100();
	empty.setAlign(Alignment.CENTER);
	empty.setPadding(15);
	this.addChild(empty);
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:23,代码来源:MultiFeatureListGrid.java


示例5: createLegendInfo

import com.smartgwt.client.types.Overflow; //导入依赖的package包/类
private Canvas createLegendInfo(RasterLayer layer) {
		final HTMLPane legendPane = new HTMLPane();
		String url = LayerIconUtil.getLegendUrl(layer);
		if (url != null) {
			legendPane.setContents("<img src=\"" + url + "\" border=\"0\">");
			legendPane.setOverflow(Overflow.AUTO);
//			legendPane.addDomHandler(new LoadHandler() {
//				public void onLoad(LoadEvent event) {
//					legendPane.markForRedraw();
//				}
//			}, LoadEvent.getType());
		} else {
			legendPane.setContents("<br /><div style=\"text-align: center\">"
					+ MESSAGES.layerInfoLayerInfoLegendNoLegend() +	"</div>");
		}
		return legendPane;
	}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:18,代码来源:LayerInfo.java


示例6: RasterLayerAttributeWindow

import com.smartgwt.client.types.Overflow; //导入依赖的package包/类
/**
 * @param rasterFeature
 */
public RasterLayerAttributeWindow(Feature rasterFeature) {
	super();
	setWidth(300);
	setHeight(200);
	setCanDragReposition(true);
	setCanDragResize(true);
	setOverflow(Overflow.AUTO);
	setKeepInParentRect(true);
	if (rasterFeature.getLabel() != null) {
		setTitle("Object Detail - " + rasterFeature.getLabel());
	} else {
		setTitle("Object Detail");
	}
	addItem(new RasterLayerAttributeCanvas(rasterFeature));
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:19,代码来源:RasterLayerAttributeWindow.java


示例7: buildWidget

import com.smartgwt.client.types.Overflow; //导入依赖的package包/类
private Widget buildWidget() {
    layout.setWidth100();
    layout.setHeight100();
    layout.setOverflow(Overflow.SCROLL);
    layout.setBackgroundColor("#f6f6DE");
    
    return layout;
}
 
开发者ID:will-gilbert,项目名称:OSWf-OSWorkflow-fork,代码行数:9,代码来源:GraphvizView.java


示例8: initVarsLayout

import com.smartgwt.client.types.Overflow; //导入依赖的package包/类
private void initVarsLayout() {
    varsLayout = new VLayout();
    varsLayout.setIsGroup(true);
    varsLayout.setGroupTitle("2. Fill workflow variables");
    varsLayout.setWidth100();
    varsLayout.setHeight("100px");
    varsLayout.setMaxHeight(100);
    varsLayout.setPadding(5);
    varsLayout.setOverflow(Overflow.AUTO);
}
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:11,代码来源:SubmitWindow.java


示例9: build

import com.smartgwt.client.types.Overflow; //导入依赖的package包/类
Canvas build() {
    this.root = new HLayout();
    root.setWidth100();
    root.setHeight100();
    root.setOverflow(Overflow.AUTO);
    return root;
}
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:8,代码来源:CompactView.java


示例10: DeviceManagerWidget

import com.smartgwt.client.types.Overflow; //导入依赖的package包/类
public DeviceManagerWidget(ClientMessages i18n) {
    this.i18n = i18n;
    actionSource = new ActionSource(this);
    widget = new VLayout();

    Label lblHeader = new Label();
    String title = ClientUtils.format("<b>%s</b>", i18n.DeviceManager_Title());
    lblHeader.setContents(title);
    lblHeader.setAutoHeight();
    lblHeader.setPadding(4);
    lblHeader.setStyleName(Editor.CSS_PANEL_DESCRIPTION_TITLE);

    ToolStrip toolbar = createToolbar(i18n);
    deviceList = createDeviceList(i18n);
    form = createForm();
    descriptionForm = createDescriptionForm();
    valuesManager = new ValuesManager();
    valuesManager.addMember(form);
    valuesManager.addMember(descriptionForm);
    valuesManager.setDataSource(DeviceDataSource.getInstance());
    VLayout forms = new VLayout();
    forms.setOverflow(Overflow.AUTO);
    forms.setMembers(form, descriptionForm);

    HLayout hLayout = new HLayout();
    deviceList.setWidth100();
    forms.setWidth100();
    hLayout.setMembers(deviceList, forms);

    widget.addMember(lblHeader);
    widget.addMember(toolbar);
    widget.addMember(hLayout);
}
 
开发者ID:proarc,项目名称:proarc,代码行数:34,代码来源:DeviceManager.java


示例11: getFormPanel

import com.smartgwt.client.types.Overflow; //导入依赖的package包/类
@Override
public Canvas getFormPanel() {
    if (panel == null) {
        panel = editor.getFormPanel();
        panel.setWidth100();
        panel.setHeight100();
        panel.setOverflow(Overflow.AUTO);
    }
    return panel;
}
 
开发者ID:proarc,项目名称:proarc,代码行数:11,代码来源:ModsBatchEditor.java


示例12: ModsCustomEditor

import com.smartgwt.client.types.Overflow; //导入依赖的package包/类
public ModsCustomEditor(ClientMessages i18n) {
    this.i18n = i18n;
    this.editorCache = new HashMap<String, DynamicForm>();
    this.widget = new VLayout();
    this.widget.setOverflow(Overflow.AUTO);

    String wmsg = ClientUtils.format("<div class='proarcMetadataFormWarning'>%s</div>",
            i18n.DigitalObjectEditor_DescriptionFormEditor_FormSaveWarning_Msg());
    warning.setContents(wmsg);
    warning.setAutoHeight();
}
 
开发者ID:proarc,项目名称:proarc,代码行数:12,代码来源:ModsCustomEditor.java


示例13: createAdvancedOptions

import com.smartgwt.client.types.Overflow; //导入依赖的package包/类
private Canvas createAdvancedOptions() {
        formCatalog = createCatalogForm();

        lgResult = new ListGrid();
        lgResult.setDataSource(BibliographyQueryDataSource.getInstance());
//        lgResult.setUseAllDataSourceFields(true);
        ListGridField preview = new ListGridField(BibliographyQueryDataSource.FIELD_PREVIEW,
                i18n.CatalogBrowser_HeaderPreview_Title());
        ListGridField title = new ListGridField(BibliographyQueryDataSource.FIELD_TITLE,
                i18n.CatalogBrowser_HeaderTitle_Title());
        lgResult.setDetailField(BibliographyQueryDataSource.FIELD_PREVIEW);
        lgResult.setFields(title, preview);
//        lgResult.setAutoFetchData(true);
        lgResult.setHeight100();
        lgResult.setWidth100();
        lgResult.setCanExpandRecords(true);
        lgResult.setCanExpandMultipleRecords(false);
        lgResult.setExpansionMode(ExpansionMode.DETAIL_FIELD);
        lgResult.setSelectionType(SelectionStyle.SINGLE);
//        lgResult.setSelectionAppearance(SelectionAppearance.CHECKBOX);
        lgResult.setAlternateRecordStyles(true);
        lgResult.addDataArrivedHandler(new DataArrivedHandler() {

            @Override
            public void onDataArrived(DataArrivedEvent event) {
                if (event.getStartRow() == 0 && event.getEndRow() > 0) {
                    lgResult.focus();
                    lgResult.selectSingleRecord(0);
                }
            }
        });

        VLayout layout = new VLayout();
        layout.setMembers(formCatalog, lgResult);
        layout.setMargin(4);
        layout.setMembersMargin(4);
        layout.setOverflow(Overflow.AUTO);
        return layout;
    }
 
开发者ID:proarc,项目名称:proarc,代码行数:40,代码来源:CatalogBrowser.java


示例14: ImageLoadTask

import com.smartgwt.client.types.Overflow; //导入依赖的package包/类
public ImageLoadTask(Layout display, Zoom zoom, boolean focus, ClientMessages i18n) {
            this.imgContainer = new VLayout();
            this.imgContainer.setLayoutMargin(4);
            // center vertically
            this.imgContainer.setAlign(Alignment.CENTER);
            // center horizontally
            // #461: do not try to center horizontally as browsers crop large images in small containers
//            this.imgContainer.setDefaultLayoutAlign(Alignment.CENTER);
            this.imgContainer.setOverflow(Overflow.AUTO);
            this.display = display;
            this.i18n = i18n;
            this.zoom = zoom;
            this.focus = focus;
        }
 
开发者ID:proarc,项目名称:proarc,代码行数:15,代码来源:DigitalObjectPreview.java


示例15: createMainLayout

import com.smartgwt.client.types.Overflow; //导入依赖的package包/类
private Canvas createMainLayout() {
    VLayout forms = new VLayout();
    forms.setOverflow(Overflow.AUTO);
    forms.addMember(createForm());
    forms.addMember(createParameterList());
    forms.setShowResizeBar(true);
    forms.setResizeBarTarget("next");

    VLayout main = new VLayout();
    main.addMember(createTaskToolbar());
    main.addMember(forms);
    main.addMember(createMaterialList());
    return main;
}
 
开发者ID:proarc,项目名称:proarc,代码行数:15,代码来源:WorkflowTaskFormView.java


示例16: ImportParentChooser

import com.smartgwt.client.types.Overflow; //导入依赖的package包/类
public ImportParentChooser(ClientMessages i18n) {
    this.i18n = i18n;
    this.widget = new VLayout(4);
    widget.setWidth100();
    widget.setHeight100();
    widget.setOverflow(Overflow.AUTO);

    selectionView = createSelectionView(i18n);
    foundView = new DigitalObjectSearchView(i18n);
    treeView = new DigitalObjectTreeView(i18n);

    foundView.getGrid().setSelectionType(SelectionStyle.SINGLE);
    foundView.getGrid().addSelectionUpdatedHandler(new SelectionUpdatedHandler() {

        @Override
        public void onSelectionUpdated(SelectionUpdatedEvent event) {
            final ListGridRecord selectedRecord = foundView.getGrid().getSelectedRecord();
            if (selectedRecord != null) {
                String pid = selectedRecord.getAttribute(RelationDataSource.FIELD_PID);
                treeView.setRoot(pid);
            }
        }
    });

    widget.addMember(selectionView);
    Canvas foundViewWidget = foundView.asWidget();
    foundViewWidget.setShowResizeBar(true);
    widget.addMember(foundViewWidget);
    widget.addMember(treeView.asWidget());
    createActions();
    initToolbar(foundView.getToolbar(), foundView);
    initToolbar(treeView.getToolbar(), treeView);
    initContextMenu(foundView.getGrid().getContextMenu(), foundView);
    initContextMenu(treeView.getTree().getContextMenu(), treeView);
}
 
开发者ID:proarc,项目名称:proarc,代码行数:36,代码来源:ImportParentChooser.java


示例17: FileReferencesEditor

import com.smartgwt.client.types.Overflow; //导入依赖的package包/类
public FileReferencesEditor() {
    super("Edit File References");
    layout = new VStack();
    layout.setWidth100();
    layout.setHeight100();
    layout.setOverflow(Overflow.AUTO);

    setItems(layout);
}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:10,代码来源:FileReferencesEditor.java


示例18: createWindow

import com.smartgwt.client.types.Overflow; //导入依赖的package包/类
private Window createWindow() {
	VLayout layout = new VLayout(5);
	layout.setLayoutAlign(Alignment.CENTER);
	layout.setAlign(Alignment.CENTER);
	layout.setWidth100();
	Label label = new Label(messages.searchControllerSearchingMessage());
	label.setWidth100();
	label.setHeight(30);
	label.setAlign(Alignment.CENTER);
	layout.addMember(label);

	HTMLPane img = new HTMLPane();
	img.setLayoutAlign(Alignment.CENTER);
	img.setAlign(Alignment.CENTER);
	img.setWidth(20);
	img.setHeight(20);
	img.setOverflow(Overflow.HIDDEN);
	img.setContents("<img src=\"" + Geomajas.getIsomorphicDir()
			+ "/geomajas/ajax-loader.gif\" width=\"18\" height=\"18\" />");
	layout.addMember(img);
	Window w = new DockableWindow();
	w.setTitle(messages.searchControllerSearchingTitle());
	w.setAlign(Alignment.CENTER);
	w.setPadding(5);
	w.setHeight(100);
	w.setWidth(300);
	w.addItem(layout);
	w.setShowMinimizeButton(false);
	w.setShowCloseButton(false);
	w.setKeepInParentRect(true);
	w.setAutoCenter(true);
	return w;
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:34,代码来源:SearchController.java


示例19: ExpandingThemeWidget

import com.smartgwt.client.types.Overflow; //导入依赖的package包/类
public ExpandingThemeWidget(MapWidget mapWidget) {
	super(mapWidget);
	setPadding(5);
	setHeight(IMAGE_SIZE + 12);
	setWidth(160);
	setBackgroundImage(BACKGROUND_IMG);
	setShowShadow(true);
	setOverflow(Overflow.HIDDEN);
	setKeepInParentRect(true);
	addStyleName("themeWidget");
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:12,代码来源:ExpandingThemeWidget.java


示例20: LayerInfo

import com.smartgwt.client.types.Overflow; //导入依赖的package包/类
/**
 * Constructor.
 *
 * @param layer layer
 */
public LayerInfo(Layer<?> layer) {
	super();
	setTitle(MESSAGES.layerInfoWindowLegendTitle() + " - " + layer.getLabel());
	setAutoCenter(true);
	setWidth(WINDOW_WIDTH);
	setHeight(WINDOW_HEIGHT);
	setKeepInParentRect(true);
	setCanDragResize(true); // resize

	VLayout layout = new VLayout();
	layout.setWidth100();
	layout.setHeight100();
	layout.setPadding(5);
	layout.setMembersMargin(5);
	layout.setOverflow(Overflow.AUTO);

	if (layer instanceof VectorLayer) {
		layout.addMember(createVectorLegend((VectorLayer) layer));
		layout.addMember(createFeatureInfo((VectorLayer) layer));
	} else if (layer instanceof RasterLayer) { // handle unchecked cast below
		Canvas c = createLegendInfo((RasterLayer) layer);
		if (c != null) {
			layout.addMember(c);
			layout.setPadding(1);
		}
	}

	// ----------------------------------------------------------

	addItem(layout);
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:37,代码来源:LayerInfo.java



注:本文中的com.smartgwt.client.types.Overflow类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java MaterialLabel类代码示例发布时间:2022-05-23
下一篇:
Java SchemaDocument类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap