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

Java RowLayout类代码示例

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

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



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

示例1: initialize

import com.extjs.gxt.ui.client.widget.layout.RowLayout; //导入依赖的package包/类
@Override
public void initialize() {
	this.parents = new HashMap<Integer, TreeGridFileModel>();
	
	this.uploadPanel = createGridPanel(
		I18N.CONSTANTS.sigmahOfflinePrepareOfflineFileTransferPopupUploads(), 
		IconImageBundle.ICONS.right());
	
	this.downloadPanel = createGridPanel(
		I18N.CONSTANTS.sigmahOfflinePrepareOfflineFileTransferPopupDownloads(), 
		IconImageBundle.ICONS.left());
	
	final LayoutContainer container = new LayoutContainer(new RowLayout(Style.Orientation.VERTICAL));
	container.add(uploadPanel);
	container.add(downloadPanel);
	
	this.cancelButton = Forms.button(I18N.CONSTANTS.cancel());
	this.transferFilesButton = Forms.button(I18N.CONSTANTS.sigmahOfflinePrepareOfflineFileTransferButtonTransferFiles(),
		IconImageBundle.ICONS.transfer());
	
	getPopup().addButton(cancelButton);
	getPopup().addButton(transferFilesButton);
	
	initPopup(container);
}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:26,代码来源:FileSelectionView.java


示例2: init

import com.extjs.gxt.ui.client.widget.layout.RowLayout; //导入依赖的package包/类
private void init() {
    	System.out.println("initlizing... "+this.getClass().getName());
        super.add(contentPanel);
        
        contentPanel.setLayout(new RowLayout(Orientation.VERTICAL));
        
        // Add the name
//        HTML nameWidget = new HTML("<b>"+getName()+"</b>");
        // nameWidget.setStyleName(DEFAULT_STYLE_NAME + "-name");
        contentPanel.setHeaderVisible(false);

        // Add the description
        //HTML descWidget = new HTML(getDescription());
        // descWidget.setStyleName(DEFAULT_STYLE_NAME + "-description");
        // contentPanel.add(descWidget);
        
        table.setCellSpacing(6);
        
        contentPanel.add(table);
    }
 
开发者ID:jbosschina,项目名称:jcommerce,代码行数:21,代码来源:ContentWidget.java


示例3: onModuleLoad

import com.extjs.gxt.ui.client.widget.layout.RowLayout; //导入依赖的package包/类
public void onModuleLoad()
{
    // menu panel
    menuPanel = new ContentPanel(new FillLayout());
    menuPanel.setHeaderVisible(false);
    menuPanel.setBorders(false);

    refreshMenu();

    viewport = new Viewport();
    viewport.setLayout(new RowLayout(Orientation.VERTICAL));
    // title panel
    topPanel = new ContentPanel();
    HBoxLayout titleLayout = new HBoxLayout();
    titleLayout.setPadding(new Padding(5));
    titleLayout.setHBoxLayoutAlign(HBoxLayoutAlign.TOP);
    topPanel.setLayout(titleLayout);
    topPanel.setHeight(25);
    topPanel.setHeaderVisible(false);
    topPanel.setBorders(false);
    refreshTopPanel();
    viewport.add(topPanel, new RowData(1, -1));
    //menu panel
    viewport.add(menuPanel, new RowData(1, -1));
    //main panel
    mainPanel = new ContentPanel(new FillLayout());
    mainPanel.setHeaderVisible(false);
    viewport.add(mainPanel, new RowData(1, 1));
    
    RootPanel.get().add(viewport);

    log.info(textMessages.webpasswordsafeTitle(Constants.VERSION));
    pingServer(this);
}
 
开发者ID:alfameCom,项目名称:salasanasiilo,代码行数:35,代码来源:WebPasswordSafe.java


示例4: init

import com.extjs.gxt.ui.client.widget.layout.RowLayout; //导入依赖的package包/类
public void init() {
	setLayout(new RowLayout());
	editContainer = new ContentPanel();
	editContainer.setHeight("150px");
	editContainer.setLayout(new RowLayout());
	editContainer.setLayoutOnChange(true);
	
	refTree = new CIInstanceReferenceTree(this.mdr, this.model);
	refTree.setPermission(permissions);
	/*
	refTree.setReadonly(readonly);
	refTree.setDeletable(deletable);
	*/
	add(refTree, new RowData(1,1));
	add(editContainer, new RowData(1,-1));
	
	refTree.addListener(CIInstanceReferenceTree.CI_SELECTED_EVENT, new Listener<BaseEvent>() {

		public void handleEvent(BaseEvent be) {
			if (be.source instanceof CIModel) {
				modelLocal = (CIModel)be.source;
				modelBase = modelLocal.copy();
				editCI = new EditableSingleCIGrid(mdr, modelLocal);
				editCI.setPermissions(permissions);
				//editCI.setReadonly(readonly);
				editContainer.removeAll();
				editContainer.setHeading("Attributes for " + modelLocal.getDisplayName());
				editContainer.add(getToolBar(), new RowData(1,-1));
				editContainer.add(editCI, new RowData(1,1));
				editContainer.layout();
				CIInstanceEditableReferenceTree.this.layout();
			}
		}
		
	});
}
 
开发者ID:luox12,项目名称:onecmdb,代码行数:37,代码来源:CIInstanceEditableReferenceTree.java


示例5: getDialog

import com.extjs.gxt.ui.client.widget.layout.RowLayout; //导入依赖的package包/类
private static Dialog getDialog() {

		if (keyQuestionDialog == null) {
			final Dialog dialog = new Dialog();
			dialog.setButtons(Dialog.OKCANCEL);
			dialog.setModal(true);

			dialog.setWidth("640px");
			dialog.setResizable(false);

			dialog.setLayout(new RowLayout(Orientation.VERTICAL));

			// Question label
			final Label questionLabel = new Label("key-question");
			questionLabel.addStyleName("project-report-key-question-label");
			dialog.add(questionLabel);

			// Text area
			final RichTextArea textArea = new RichTextArea();
			textArea.setStyleName("project-report-key-question");
			dialog.add(textArea);

			// Toolbar
			final ToolBar toolBar = new ToolBar();
			ReportsView.createRichTextToolbar(toolBar, new RichTextArea.Formatter[] {textArea.getFormatter()});
			dialog.setTopComponent(toolBar);

			// Cancel button
			dialog.getButtonById(Dialog.CANCEL).addSelectionListener(new SelectionListener<ButtonEvent>() {

				@Override
				public void componentSelected(ButtonEvent ce) {
					dialog.hide();
				}
			});

			keyQuestionDialog = dialog;
		}
		return keyQuestionDialog;
	}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:41,代码来源:KeyQuestionDialog.java


示例6: DepartmentPanel

import com.extjs.gxt.ui.client.widget.layout.RowLayout; //导入依赖的package包/类
public DepartmentPanel(){
	this.setHeaderVisible(false);
	setLayout(new RowLayout(Orientation.HORIZONTAL));
	setFrame(true);

	add(doLeftPanel());
	add(doRightPanel());
	
}
 
开发者ID:treblereel,项目名称:Opensheet,代码行数:10,代码来源:DepartmentPanel.java


示例7: doUserAssignmentContentPanel

import com.extjs.gxt.ui.client.widget.layout.RowLayout; //导入依赖的package包/类
private ContentPanel doUserAssignmentContentPanel(){
	
	 ContentPanel userAssignmentContentPanel  = new ContentPanel();
	 userAssignmentContentPanel.setFrame(true);
	 userAssignmentContentPanel.setWidth(724);
	 userAssignmentContentPanel.setHeight(600);
	 userAssignmentContentPanel.setLayout(new RowLayout());
	 userAssignmentContentPanel.setHeadingHtml("Users in assignment: ");
	 userAssignmentContentPanel.add(doUserAssignmentCheckGrid());
	 userAssignmentContentPanel.add(doUserAssignmentDetailsContentPanel());

	return userAssignmentContentPanel;
}
 
开发者ID:treblereel,项目名称:Opensheet,代码行数:14,代码来源:DepartmentPanel.java


示例8: initUI

import com.extjs.gxt.ui.client.widget.layout.RowLayout; //导入依赖的package包/类
protected void initUI() {
	// Layout Fields.
	setLayout(new BorderLayout());  
	
	List<ColumnConfig> internalAttr = new ArrayList<ColumnConfig>();
	List<ColumnConfig> ciAttr = new ArrayList<ColumnConfig>();
	/*
	for (AttributeColumnConfig aConfig : gridConfig.getColumnConfig()) {
		ColumnConfig cfg = EditorFactory.getColumnConfig(aConfig, false);
		if (aConfig.isInternal()) {
			internalAttr.add(cfg);
		} else {
			ciAttr.add(cfg);
		}
	}
	*/
	
	LayoutContainer internalPanel = getForm(internalAttr, 2, LabelAlign.LEFT);
	LayoutContainer ciPanel = getForm(ciAttr, 3, LabelAlign.TOP);
	
	ContentPanel internalCp = new ContentPanel(); 

	internalCp.setLayout(new FitLayout());
	internalCp.setAutoWidth(true);
	internalCp.setAutoHeight(true);
	internalCp.setHeading("Internal Attributes");  
	internalCp.setCollapsible(true);
	internalCp.add(internalPanel);
	
	
	ContentPanel attrCp = new ContentPanel();
	
	ToolBar toolbar = new ToolBar();
	attrCp.setTopComponent(toolbar);
	toolbar.add(new FillToolItem());
	toolbar.add(new TextToolItem("Ok"));		
	toolbar.add(new TextToolItem("Cancel"));
	attrCp.setLayout(new FitLayout());
	attrCp.setScrollMode(Scroll.ALWAYS);
	attrCp.setLayoutOnChange(true);
	attrCp.setCollapsible(true);
	attrCp.add(ciPanel);
	attrCp.setHeading("Attributes");
	
	TabPanel infoTab = new TabPanel();  
	descriptionTab = new TabItem("Description");
	descriptionTab.setStyleName("property-panel-background");

	infoTab.add(descriptionTab);
	
	historyTab = new TabItem("History");
	historyTab.setStyleName("property-panel-background");
	infoTab.add(historyTab);
	
	
	BorderLayoutData centerData = new BorderLayoutData(LayoutRegion.CENTER);  
    centerData.setMargins(new Margins(0, 5, 0, 5));  
       
    /*   
    BorderLayoutData northData = new BorderLayoutData(LayoutRegion.NORTH);  
    northData.setSplit(false);  
    northData.setCollapsible(true);  
    northData.setMargins(new Margins(5));  
    */
    BorderLayoutData southData = new BorderLayoutData(LayoutRegion.SOUTH, 0.3f);  
    southData.setSplit(true);  
    southData.setCollapsible(true);  
    southData.setMargins(new Margins(5));  
	
    LayoutContainer fieldCont = new LayoutContainer();
    fieldCont.setLayout(new RowLayout());
    fieldCont.add(internalCp, new RowData(1,-1));
    fieldCont.add(attrCp, new RowData(1,1));
    
    
    add(fieldCont, centerData);
	add(infoTab, southData);
	
	layout();
}
 
开发者ID:luox12,项目名称:onecmdb,代码行数:81,代码来源:CIValueForm.java


示例9: updateModel

import com.extjs.gxt.ui.client.widget.layout.RowLayout; //导入依赖的package包/类
protected void updateModel(CIModel model) {
	this.modelBase = model.copy();
	this.modelLocal = model;
	center.removeAll();
	center.setHeading("Template " + model.getAlias());
	
	TabPanel panel = new TabPanel();
	center.add(panel);
	
	{
		TabItem attr = new TabItem("Attributes");
		attr.setLayout(new RowLayout());

		attr.add(getToolBar(), new RowData(1,-1));

		CIIdentityForm idForm = new CIIdentityForm(model);
		idForm.setPermission(permission);
		attr.add(idForm, new RowData(1, -1));
		attributeGrid = new AttributeGrid(mdr, model, rootType, rootReferenceType);
		attributeGrid.setPermission(permission);
		attr.add(attributeGrid, new RowData(1, 1));

		ContentPanel defaultPanel = new ContentPanel();
		defaultPanel.setHeading("Default values for " + model.getAlias());
		defaultPanel.setLayout(new FitLayout());
		defaultValueGrid = new EditableSingleCIGrid(mdr, model);
		defaultValueGrid.setPermissions(permission);
		defaultPanel.setHeight(120);
		defaultPanel.add(defaultValueGrid);
		attr.add(defaultPanel, new RowData(1,-1));

		panel.add(attr);

	}
	{
		TabItem refs = new TabItem("References");
		refs.setLayout(new FitLayout());
		CITemplateReferenceTree tree = new CITemplateReferenceTree(mdr, modelBase);
		tree.setPermission(permission);
		refs.add(tree);
		panel.add(refs);
		
	}
	center.layout();
	layout();
}
 
开发者ID:luox12,项目名称:onecmdb,代码行数:47,代码来源:CIModelInternalBrowser.java


示例10: TemplateIdentForm

import com.extjs.gxt.ui.client.widget.layout.RowLayout; //导入依赖的package包/类
public TemplateIdentForm(CIModel model) {
	this.model = model;
	setLayout(new RowLayout());
}
 
开发者ID:luox12,项目名称:onecmdb,代码行数:5,代码来源:TemplateIdentForm.java


示例11: createContents

import com.extjs.gxt.ui.client.widget.layout.RowLayout; //导入依赖的package包/类
/**
 * Builds the UI
 */
private void createContents()
{
	setSize("254", "100");
	setMinimizable(true);
	setHeading("Alliance Search");
	setLayout(new RowLayout(Orientation.VERTICAL));
	
	this.frmSearch = new FormPanel();
	this.frmSearch.setBodyBorder(false);
	this.frmSearch.setLabelWidth(35);
	this.frmSearch.setHeaderVisible(false);
	this.frmSearch.setHeading("New FormPanel");
	
	this.btnSearch = new Button("Search");
	
	this.btnSearch.addSelectionListener(new SelectionListener<ButtonEvent>() 
		{
			public void componentSelected(ButtonEvent ce) 
			{
				executeSearch();
			}
		});
	
	this.btnSearch.setTabIndex(2);
	this.frmSearch.addButton(btnSearch);
	this.btnSearch.setWidth("68px");
	
	this.cboAllianceName = new ComboBox<BeanModel>();
	this.cboAllianceName.setTabIndex(1);
	this.cboAllianceName.setStore(new ListStore<BeanModel>());
	cboAllianceName.setMessageTarget("tooltip");
	cboAllianceName.setAllowBlank(false);
	cboAllianceName.setTriggerAction(TriggerAction.ALL);
	cboAllianceName.setSelectOnFocus(true);
	cboAllianceName.setForceSelection(true);
	cboAllianceName.setTypeAheadDelay(100);
	cboAllianceName.setTypeAhead(true);
	cboAllianceName.addListener(Events.KeyPress, new Listener<FieldEvent>() 
		{		
			@Override
			public void handleEvent(FieldEvent e)
			{
				if (e.getKeyCode() == KeyCodes.KEY_ENTER)
				{
					executeSearch();					
				}				
			}
		});
	
	this.frmSearch.add(this.cboAllianceName, new FormData("100%"));
	this.cboAllianceName.setFieldLabel("Name");
	add(this.frmSearch, new RowData(Style.DEFAULT, 1.0, new Margins()));
}
 
开发者ID:recon-null,项目名称:eve_finger,代码行数:57,代码来源:WinSearchAlliance.java


示例12: createContents

import com.extjs.gxt.ui.client.widget.layout.RowLayout; //导入依赖的package包/类
/**
 * Builds the UI
 */
private void createContents()
{
       setSize("254", "100");
	setMinimizable(true);
	setHeading("Character Search");
	setLayout(new RowLayout(Orientation.VERTICAL));
	
	this.frmSearch = new FormPanel();
	this.frmSearch.setBodyBorder(false);
	this.frmSearch.setLabelWidth(35);
	this.frmSearch.setHeaderVisible(false);
	this.frmSearch.setHeading("New FormPanel");
	
	this.txtCharName = new TextField<String>();
	this.txtCharName.setSelectOnFocus(true);
	this.txtCharName.addListener(Events.KeyPress, new Listener<FieldEvent>() {
		public void handleEvent(FieldEvent e) 
		{
			if (e.getKeyCode() == KeyCodes.KEY_ENTER)
			{
				executeSearch();					
			}
		}
	});
	this.txtCharName.setTabIndex(1);
	this.frmSearch.add(this.txtCharName, new FormData("100%"));
	this.txtCharName.setFieldLabel("Name");
	
	this.btnSearch = new Button("Search");
	
	this.btnSearch.addSelectionListener(new SelectionListener<ButtonEvent>() 
		{
			public void componentSelected(ButtonEvent ce) 
			{
				executeSearch();
			}
		});
	
	this.btnSearch.setTabIndex(2);
	this.frmSearch.addButton(btnSearch);
	this.btnSearch.setWidth("68px");
	add(this.frmSearch, new RowData(Style.DEFAULT, 1.0, new Margins()));
}
 
开发者ID:recon-null,项目名称:eve_finger,代码行数:47,代码来源:WinSearchChar.java


示例13: createContents

import com.extjs.gxt.ui.client.widget.layout.RowLayout; //导入依赖的package包/类
/**
 * Builds the GUI.
 */
private void createContents()
{
	setModal(true);
	setBlinkModal(false);		
	this.setClosable(false);
	this.setSize("300px", "125px");
	this.setHeading("Login");
	this.setLayout(new RowLayout(Orientation.VERTICAL));
	
	frmLogin = new FormPanel();
	frmLogin.setBodyBorder(false);
	frmLogin.setHeaderVisible(false);
	frmLogin.setHeading("");
	
	this.txtUsername = new TextField<String>();
	this.txtUsername.setId("username");
	this.txtUsername.setSelectOnFocus(true);
	this.txtUsername.setTabIndex(1);
	this.txtUsername.setMaxLength(50);
	frmLogin.add(txtUsername, new FormData("100%"));
	this.txtUsername.setFieldLabel("Username");
	
	this.txtPassword = new TextField<String>();
	this.txtPassword.setId("passwd");
	this.txtPassword.addListener(Events.KeyPress, new Listener<FieldEvent>() {
		public void handleEvent(FieldEvent e) 
		{
			if (e.getKeyCode() == KeyCodes.KEY_ENTER)
			{
				executeLogin();
			}
		}
	});
	this.txtPassword.setMaxLength(50);
	this.txtPassword.setTabIndex(2);
	this.txtPassword.setSelectOnFocus(true);
	this.txtPassword.setPassword(true);
	frmLogin.add(txtPassword, new FormData("100%"));
	this.txtPassword.setFieldLabel("Password");

	btnLogin = new Button("Login");
	frmLogin.addButton(btnLogin);
	btnLogin.addSelectionListener(new SelectionListener<ButtonEvent>() 
		{
			public void componentSelected(ButtonEvent ce) 
			{					
				executeLogin();
			}
		});
	
	btnLogin.setTabIndex(3);		
	this.add(frmLogin, new RowData(1.0, 1.0, new Margins()));
}
 
开发者ID:recon-null,项目名称:eve_finger,代码行数:57,代码来源:WinLogin.java


示例14: AssignmentTreeUserGrid

import com.extjs.gxt.ui.client.widget.layout.RowLayout; //导入依赖的package包/类
public AssignmentTreeUserGrid(){
	setFrame(true);  
    setSize(1024, 600);  
    setLayout(new RowLayout(Orientation.HORIZONTAL));  
    setHeaderVisible(false);
    
    
    getAssignmentTreeGrid();
    loadAssignmentTreeGrid();
    addUserLists();
    
    
}
 
开发者ID:treblereel,项目名称:Opensheet,代码行数:14,代码来源:AssignmentTreeUserGrid.java


示例15: ProjectPanel

import com.extjs.gxt.ui.client.widget.layout.RowLayout; //导入依赖的package包/类
public ProjectPanel() {
		
		this.addListener(Events.Attach, new Listener<BaseEvent>(){
			@Override	public void handleEvent(BaseEvent be) {
				loadAssignments();

			}
			
		});
		
		
		
		
		
		
		setLayout(new RowLayout(Orientation.VERTICAL));
		setFrame(true);
		setHeaderVisible(false);
		
		ContentPanel north = new ContentPanel();
		south = new ContentPanel();
		
		
		north.setLayout(new RowLayout(Orientation.HORIZONTAL));
		north.setWidth(1024);
		north.setHeight(330);
		north.setHeaderVisible(false);

		
		
//		south.setLayout(new RowLayout(Orientation.HORIZONTAL));
		south.setWidth(1024);
		south.setHeight(265);
		south.setHeaderVisible(false);
		south.setFrame(true);
		south.setScrollMode(Scroll.AUTO);
	
//		assignmentQuickReportContentPanel =  new AssignmentQuickReportContentPanel(south);
		
		
		ContentPanel temp = new ContentPanel();
		temp.setWidth(20);
		temp.setHeight(330);
		temp.setFrame(true);
		temp.setBorders(false);
		temp.setHeaderVisible(false);
		
		north.add(drawAssignemntTree());
		north.add(temp);
		north.add(tabPanel());
		

		
		add(north);
		add(south);
	}
 
开发者ID:treblereel,项目名称:Opensheet,代码行数:57,代码来源:ProjectPanel.java


示例16: NotePanelSheetPanel

import com.extjs.gxt.ui.client.widget.layout.RowLayout; //导入依赖的package包/类
public NotePanelSheetPanel(){

	this.setWidth(590);
	this.setHeight(180);

	this.setHeadingHtml(myConstants.hour_note());
	this.setLayout(new RowLayout());


	
	
	a = new HtmlEditor();  
    a.setHeight(165);
    a.setWidth(580);
    a.disable();

    add(a, new FormData("100%"));

    
    
    saveBtn = new Button(myConstants.save());
    saveBtn.setIcon(Resources.ICONS.add());
    saveBtn.addListener(Events.Select,new Listener<BaseEvent>(){
		@Override	public void handleEvent(BaseEvent be) {
			
			hourService.setNote(userDTO.getId(), assignmentId, date, a.getValue(),new AsyncCallback<Void>(){

				@Override
				public void onFailure(Throwable caught) {
                    MessageBox.alert(opensheetErrorConstants.cannot_save_note(), caught.getMessage(), null);
				}
				@Override
				public void onSuccess(Void result) {
                  	 Info.display("Note Has Been saved", "Succesfull");
				}
			});
		}
    });
    
    
    this.setButtonAlign(HorizontalAlignment.CENTER);
    this.addButton(saveBtn);

}
 
开发者ID:treblereel,项目名称:Opensheet,代码行数:45,代码来源:NotePanelSheetPanel.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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