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

Java Alignment类代码示例

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

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



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

示例1: buildLayout

import com.smartgwt.client.types.Alignment; //导入依赖的package包/类
/**
 * Builds the view content.
 * @return a layout containing the view content.
 */
@Override
public Layout buildLayout() {

    this.jobsTotalLabel = new Label();
    setTotalJobsLabel();
    this.jobsTotalLabel.setAlign(Alignment.CENTER);
    this.jobsTotalLabel.setWidth100();
    this.jobsTotalLabel.setMinWidth(40);
    this.jobsTotalLabel.setMargin(4);

    HLayout labelLayout = new HLayout();
    labelLayout.addStyleName("labelPaginationLayout");
    labelLayout.addMember(this.jobsTotalLabel);

    ToolStrip paginationLayout = getToolStripPaginationLayout();

    paginationLayout.addMember(this.pageFirstButton);
    paginationLayout.addMember(this.pagePreviousButton);
    paginationLayout.addMember(labelLayout);
    paginationLayout.addMember(this.pageLastButton);
    paginationLayout.addMember(this.pageNextButton);

    return paginationLayout;
}
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:29,代码来源:JobsPaginationView.java


示例2: AMarkerDescription

import com.smartgwt.client.types.Alignment; //导入依赖的package包/类
public AMarkerDescription(AMarker parentMarker, String htmlDescription, String borderCss){
		this.parentMarker = parentMarker;
		this.borderCss = borderCss;

		this.setWidth100();
		this.setAlign(Alignment.RIGHT);
		//this.setHeight(150);
		this.setBorder(borderCss); // deactivate?
		//this.setOverflow(Overflow.AUTO);

		descriptionFlow = new HTMLFlow();
		descriptionFlow.setStyleName("markerDescriptionFlow");
		descriptionFlow.setContents(htmlDescription);
		//descriptionFlow.setSize("100%", "*");
		descriptionFlow.setWidth100();
//		descriptionFlow.setHeight100();
//		descriptionFlow.setOverflow(Overflow.AUTO);

		/*HLayout margin = new HLayout();
		margin.setSize("100%", "1px");
		margin.setBackgroundColor("#C0C0C0");
		margin.setAlign(Alignment.CENTER);*/

		this.addMember(descriptionFlow);
	}
 
开发者ID:UKPLab,项目名称:naacl-bea2016-writing-study,代码行数:26,代码来源:AMarkerDescription.java


示例3: MarkerControlDynamicForm

import com.smartgwt.client.types.Alignment; //导入依赖的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: buildOutputPane

import com.smartgwt.client.types.Alignment; //导入依赖的package包/类
protected VLayout buildOutputPane() {
    this.label = new Label();
    this.label.setWidth100();
    this.label.setAlign(Alignment.CENTER);
    this.label.hide();

    this.text = new HTMLPane();
    this.text.setHeight100();
    this.text.setWidth100();
    this.text.setShowEdges(true);
    this.text.hide();

    VLayout textLayout = new VLayout();
    textLayout.addMember(this.label);
    textLayout.addMember(this.text);
    textLayout.setWidth100();

    return textLayout;
}
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:20,代码来源:AbstractOutputDisplayView.java


示例5: buildContent

import com.smartgwt.client.types.Alignment; //导入依赖的package包/类
protected Layout buildContent() {
    VLayout layout = new VLayout();
    this.buildGrid();

    this.loadingLabel = new Label("fetching " + this.itemName + "...");
    this.loadingLabel.setIcon("loading.gif");
    this.loadingLabel.setWidth100();
    this.loadingLabel.setHeight100();
    this.loadingLabel.setAlign(Alignment.CENTER);
    this.loadingLabel.hide();

    this.errorLabel = new Label("");
    this.errorLabel.setWidth100();
    this.errorLabel.setAlign(Alignment.CENTER);
    this.errorLabel.hide();

    layout.addMember(this.itemsGrid);
    layout.addMember(this.loadingLabel);
    layout.addMember(this.errorLabel);

    return layout;
}
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:23,代码来源:AbstractGridItemsView.java


示例6: setRoot

import com.smartgwt.client.types.Alignment; //导入依赖的package包/类
public void setRoot(Layout layout) {

        wrapper = new VLayout();
        wrapper.setWidth100();
        wrapper.setHeight100();

        this.noJobSelectedMessage = new Label("No job selected.");
        this.noJobSelectedMessage.setAlign(Alignment.CENTER);
        this.noJobSelectedMessage.setWidth100();
        wrapper.addMember(noJobSelectedMessage);

        htmlPanel = new HTML();
        htmlPanel.getElement().setId("html-view");
        wrapper.addMember(htmlPanel);

        layout.addMember(wrapper);
    }
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:18,代码来源:VisualizationViewHtml.java


示例7: LoadingMessage

import com.smartgwt.client.types.Alignment; //导入依赖的package包/类
public LoadingMessage() {
    super();
    Label label = new Label("Reconnecting...");
    label.setIcon("loading.gif");
    label.setMargin(20);

    HLayout hlayout = new HLayout();
    hlayout.setWidth100();
    hlayout.setAlign(Alignment.CENTER);
    hlayout.addMember(label);

    this.setHeight100();
    this.setWidth100();
    this.setAlign(VerticalAlignment.CENTER);
    this.addMember(hlayout);
}
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:17,代码来源:LoadingMessage.java


示例8: createButtons

import com.smartgwt.client.types.Alignment; //导入依赖的package包/类
private Canvas createButtons() {
    IButton btnSubmit = new IButton(i18nSgwt.dialog_LoginButtonTitle(), new ClickHandler() {

        @Override
        public void onClick(ClickEvent event) {
            submitCredentials();
        }
    });

    HStack btnLayout = new HStack(5);
    btnLayout.setAutoHeight();
    btnLayout.setLayoutTopMargin(20);
    btnLayout.setLayoutAlign(Alignment.CENTER);
    btnLayout.setMembers(btnSubmit);
    return btnLayout;
}
 
开发者ID:proarc,项目名称:proarc,代码行数:17,代码来源:LoginWindow.java


示例9: DigitalObjectPreview

import com.smartgwt.client.types.Alignment; //导入依赖的package包/类
public DigitalObjectPreview(ClientMessages i18n) {
    this.i18n = i18n;
    zoomValues = new ValuesManager();
    zoomValues.setValue(FIELD_ZOOM, Zoom.FIT_PANEL);
    VLayout imgContainer = new VLayout();
    imgContainer.setAlign(Alignment.CENTER);

    windowContainer = new VLayout();
    windowContainer.setAlign(Alignment.CENTER);
    windowContainer.setWidth100();
    windowContainer.setHeight100();
    imageWindow = createFullImageWindow(windowContainer);

    previewLayout = new VLayout();
    previewLayout.setBackgroundColor(BACKGROUND_COLOR);
    previewLayout.addMember(imgContainer);
    previewLoadTask = new ImageLoadTask(imgContainer,
            new Zoom(zoomValues.getValueAsString(FIELD_ZOOM)), false, i18n);
}
 
开发者ID:proarc,项目名称:proarc,代码行数:20,代码来源:DigitalObjectPreview.java


示例10: getPreviewZoomer

import com.smartgwt.client.types.Alignment; //导入依赖的package包/类
/**
 * Gets widget to zoom image in the preview panel.
 * @return
 */
public Canvas getPreviewZoomer() {
    SelectItem zoomItem = createZoomForm();
    zoomItem.addChangedHandler(new ChangedHandler() {

        @Override
        public void onChanged(ChangedEvent event) {
            onZoomChange(event);
        }
    });
    DynamicForm form = new DynamicForm();
    form.setValuesManager(zoomValues);
    form.setFields(zoomItem);
    form.setLayoutAlign(Alignment.CENTER);
    return form;
}
 
开发者ID:proarc,项目名称:proarc,代码行数:20,代码来源:DigitalObjectPreview.java


示例11: getWindowZoomer

import com.smartgwt.client.types.Alignment; //导入依赖的package包/类
/**
 * Gets widget to zoom image in the window.
 * @return
 */
public Canvas getWindowZoomer() {
    SelectItem zoomItem = createZoomForm();
    zoomItem.setHeight(15);
    zoomItem.setPickerIconSrc("[SKIN]/headerIcons/zoom.png");
    zoomItem.setPickerIconHeight(15);
    zoomItem.setPickerIconWidth(15);
    zoomItem.addChangedHandler(new ChangedHandler() {

        @Override
        public void onChanged(ChangedEvent event) {
            onZoomChange(event);
        }
    });
    DynamicForm form = new DynamicForm();
    form.setValuesManager(zoomValues);
    form.setFields(zoomItem);
    form.setLayoutAlign(Alignment.CENTER);
    return form;
}
 
开发者ID:proarc,项目名称:proarc,代码行数:24,代码来源:DigitalObjectPreview.java


示例12: loadImage

import com.smartgwt.client.types.Alignment; //导入依赖的package包/类
/**
         * Shows a resource as the {@code <img>} element.
         */
        public void loadImage(String url) {
            ClientUtils.setMembers(display, imgContainer);
            image = new Image();
            image.addLoadHandler(this);
            image.addErrorHandler(this);
            image.setUrl(url);
            drawHandler = imgContainer.addDrawHandler(this);
            resizedHandler = imgContainer.addResizedHandler(this);
            ClientUtils.fine(LOG, "loadImage url: %s, width: %s", url, image.getWidth());
            if (image.getWidth() == 0) {
                WidgetCanvas widgetCanvas = new WidgetCanvas(image);
                widgetCanvas.setVisible(false);
                widgetCanvas.setWidth(1);
                widgetCanvas.setHeight(1);
                widgetCanvas.draw();
                Img loadingImg = new Img("[SKIN]/loadingSmall.gif", 16, 16);
//                Img loadingImg = new Img("[SKIN]/shared/progressCursorTracker.gif", 16, 16);
                loadingImg.setAltText(i18n.ImportBatchDataSource_State_LOADING());
                loadingImg.setPrompt(i18n.ImportBatchDataSource_State_LOADING());
                loadingImg.setLayoutAlign(Alignment.CENTER);
                imgContainer.setMembers(loadingImg, widgetCanvas);
            }
            scheduleForRender();
        }
 
开发者ID:proarc,项目名称:proarc,代码行数:28,代码来源:DigitalObjectPreview.java


示例13: createButtons

import com.smartgwt.client.types.Alignment; //导入依赖的package包/类
public void createButtons() {
	final IButton createRunButton = new IButton("Create Run");
	final IButton copyButton = new IButton("Copy Game");
	
	buttonLayout = new HLayout();
	buttonLayout.setAlign(Alignment.CENTER);
	buttonLayout.setLayoutMargin(6);
	buttonLayout.setMembersMargin(6);
	buttonLayout.setHeight(30);
	buttonLayout.addMember(createRunButton);
	buttonLayout.addMember(copyButton);
	
	createRunButton.addClickHandler(new ClickHandler() {
		public void onClick(ClickEvent event) {
			
		}
	});
}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:19,代码来源:GameDisplay.java


示例14: buildUi

import com.smartgwt.client.types.Alignment; //导入依赖的package包/类
public void buildUi() {
	setGetPane();
	setPostPane();
	// createToolstrip();
	toolStrip = new NetworkToolbar(this);

	VLayout vertical = new VLayout();
	vertical.setWidth100();
	vertical.setHeight100();
	vertical.addMember(toolStrip);
	createNetworkPane();

	VLayout verticalGrid = new VLayout();

	verticalGrid.setLayoutAlign(Alignment.CENTER);
	verticalGrid.setAlign(Alignment.CENTER);
	verticalGrid.setDefaultLayoutAlign(Alignment.CENTER);

	verticalGrid.setWidth100();
	verticalGrid.setHeight("*");
	verticalGrid.addMember(networkLayout);

	vertical.addMember(verticalGrid);
	RootPanel.get("network").add(vertical);

}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:27,代码来源:NetworkPage.java


示例15: loadPage

import com.smartgwt.client.types.Alignment; //导入依赖的package包/类
public void loadPage() {
//		createToolstrip();
		toolStrip = new ToolBar(false);

		
		VLayout vertical = new VLayout();
		vertical.setWidth100();
		vertical.setHeight100();
		vertical.addMember(toolStrip);
		createButtons();
		
		VLayout verticalGrid = new VLayout();
		
		verticalGrid.setLayoutAlign(Alignment.CENTER);
		verticalGrid.setAlign(Alignment.CENTER);  
		verticalGrid.setDefaultLayoutAlign(Alignment.CENTER); // As promised!  

		verticalGrid.setWidth100();
		verticalGrid.setHeight("*");
//		verticalGrid.setBorder("1px solid gray");
		verticalGrid.addMember(tileGrid);
		
		vertical.addMember(verticalGrid);
		RootPanel.get("portal").add(vertical);

	}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:27,代码来源:PortalPage.java


示例16: MapConfigSection

import com.smartgwt.client.types.Alignment; //导入依赖的package包/类
public MapConfigSection() {
    super("Maps, message lists, etc");
    HStack layout = new HStack();

    layout.addMember(getAccessForm());

    LayoutSpacer vSpacer = new LayoutSpacer();
    vSpacer.setWidth(10);
    layout.addMember(vSpacer);
    layout.addMember(getMapTypesForm());

    vSpacer.setWidth(10);
    layout.addMember(vSpacer);
    layout.addMember(getCustomHtmlForm());

    layout.setAlign(Alignment.CENTER);
    layout.setPadding(5);
    setItems(layout);
}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:20,代码来源:MapConfigSection.java


示例17: CollaboratorsConfig

import com.smartgwt.client.types.Alignment; //导入依赖的package包/类
public CollaboratorsConfig() {
		super(constants.addCollaborators());
		VLayout collabLayout = new VLayout();
//		collabLayout.setWidth(200);

		
		HStack layout = new HStack();
		LayoutSpacer vSpacer = new LayoutSpacer();
		vSpacer.setWidth(10);

		layout.addMember(getCollaboratorsGrid());
		layout.addMember(vSpacer);
		layout.addMember(collabLayout);
		
		collabLayout.addMember(getAddPlayerForm());
		collabLayout.addMember(getInviteForm());
		
		layout.setAlign(Alignment.CENTER);
		layout.setPadding(5);
		setItems(layout);
		ContactsDataSource.getInstance().loadDataFromWeb();
	}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:23,代码来源:CollaboratorsConfig.java


示例18: GeneralItemDetailEdit

import com.smartgwt.client.types.Alignment; //导入依赖的package包/类
public GeneralItemDetailEdit(Tab mapTab) {
	this.mapTab = mapTab;
	createEditButton();
	createButtonLayout(saveButton);
	createBasicMetadataEditor();


	HLayout layout = new HLayout();
	layout.addMember(stack);
       stack.setShowResizeBar(true);

       layout.addMember(editor);
	
	setAlign(Alignment.LEFT);
	// setBorder("1px dashed blue");
	
	
	addMember(layout);
	addMember(buttonLayout);
}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:21,代码来源:GeneralItemDetailEdit.java


示例19: GeneralItemDetailView

import com.smartgwt.client.types.Alignment; //导入依赖的package包/类
public GeneralItemDetailView(boolean canEdit) {
	if (canEdit) createEditButton();
	if (canEdit) createButtonLayout(editButton);

	createMetadataViews();
       createExtendedLayout();
       createBasicLayout();
	setHeight100();
	
	HLayout layout = new HLayout();
       layout.setCanDragResize(true);
	layout.addMember(extendedStack);
       layout.addMember(basicStack);
       setAlign(Alignment.LEFT);

	setBorder("1px solid #d6d6d6");
	setPadding(5);

	addMember(layout);
	if (canEdit) addMember(buttonLayout);
}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:22,代码来源:GeneralItemDetailView.java


示例20: TeamConfigurationSection

import com.smartgwt.client.types.Alignment; //导入依赖的package包/类
public TeamConfigurationSection() {
	super(constants.team());
	VLayout collabLayout = new VLayout();
	collabLayout.addMember(getAddPlayerForm());
	
	HStack layout = new HStack();
	LayoutSpacer vSpacer = new LayoutSpacer();
	vSpacer.setWidth(10);

	
	layout.addMember(getTeamGrid());
	layout.addMember(vSpacer);
	layout.addMember(collabLayout);
	layout.setAlign(Alignment.CENTER);
	layout.setPadding(5);
	setItems(layout);
}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:18,代码来源:TeamConfigurationSection.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Java ProfileLookupCallback类代码示例发布时间:2022-05-23
下一篇:
Java AdapterConfig类代码示例发布时间: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