• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java FillToolItem类的典型用法和代码示例

java 1次浏览

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

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

示例1: initUI

点赞 3

import com.extjs.gxt.ui.client.widget.toolbar.FillToolItem; //导入依赖的package包/类
protected void initUI() {
	BaseModel param = item.getParams();
	String url = (String)param.get("url");
	Frame f = new Frame();
	f.setSize("100%", "100%");
	ContentPanel cp = new ContentPanel();
	cp.setHeaderVisible(false);
	cp.setLayout(new FitLayout());
	cp.add(f);
	ToolBar bottom = new ToolBar();
	CheckBox checkBox = new CheckBox();
	checkBox.setBoxLabel("Don't show this again");
	bottom.add(new AdapterToolItem(checkBox));
	bottom.add(new FillToolItem());
	bottom.add(new CloseTextToolItem(this));
	cp.setBottomComponent(bottom);
	add(cp);
	layout();
}
 

开发者ID:afbytes,
项目名称:OneCMDBwithMaven,
代码行数:20,
代码来源:RegistrationWindow.java

示例2: initUI

点赞 3

import com.extjs.gxt.ui.client.widget.toolbar.FillToolItem; //导入依赖的package包/类
public void initUI() {
	setLayout(new FitLayout());
	ContentPanel cp = new ContentPanel();
	//cp.setFrame(true);
	cp.setScrollMode(Scroll.AUTO);
	cp.setLayout(new FitLayout());
	cp.setHeaderVisible(false);
	cp.setUrl("help/mdr/mdr-finish.html");
	ToolBar bar = new ToolBar();
	bar.add(new FillToolItem());
	bar.add(this.save);
	bar.add(this.finish);
	cp.setTopComponent(bar);
	add(cp);
	layout();
	
	
}
 

开发者ID:luox12,
项目名称:onecmdb,
代码行数:19,
代码来源:MDRTransformFinished.java

示例3: createButtons

点赞 3

import com.extjs.gxt.ui.client.widget.toolbar.FillToolItem; //导入依赖的package包/类
@Override
    protected void createButtons()
    {
        super.createButtons();

        this.saveStatus = new SaveStaus();
        this.saveStatus.setAutoWidth(true);

        getButtonBar().add(saveStatus);

        getButtonBar().add(new FillToolItem());

//        this.done = new Button("Done", new SelectionListener<ButtonEvent>() {
//            @Override
//            public void componentSelected(ButtonEvent ce) {
//                hide();
//            }
//        });
//
//        addButton(done);
    }
 

开发者ID:geoserver,
项目名称:geofence,
代码行数:22,
代码来源:RuleDetailsEditDialog.java

示例4: buildToolbar

点赞 3

import com.extjs.gxt.ui.client.widget.toolbar.FillToolItem; //导入依赖的package包/类
/**
 * Builds the actions toolbar.
 * 
 * @return The actions toolbar.
 */
private ToolBar buildToolbar() {

	// Save button.
	saveButton = Forms.button(I18N.CONSTANTS.save(), IconImageBundle.ICONS.save());
	saveButton.setEnabled(false);

	// Actions toolbar.
	final ToolBar toolBar = new ToolBar();
	toolBar.setAlignment(HorizontalAlignment.LEFT);
	toolBar.setBorders(false);

	toolBar.add(saveButton);
	toolBar.add(new FillToolItem());

	return toolBar;
}
 

开发者ID:sigmah-dev,
项目名称:sigmah,
代码行数:22,
代码来源:ProjectDetailsView.java

示例5: buildToolbar

点赞 3

import com.extjs.gxt.ui.client.widget.toolbar.FillToolItem; //导入依赖的package包/类
/**
 * Builds the actions toolbar.
 * 
 * @return The actions toolbar.
 */
private ToolBar buildToolbar() {

	// Save button.
	saveButton = Forms.button(I18N.CONSTANTS.save(), IconImageBundle.ICONS.save());
	saveButton.setEnabled(false);

	// Actions toolbar.
	final ToolBar toolBar = new ToolBar();
	toolBar.setAlignment(HorizontalAlignment.LEFT);
	toolBar.setBorders(false);

	toolBar.add(saveButton);

	// ExportForm button
	exportButton = Forms.button(I18N.CONSTANTS.export(), IconImageBundle.ICONS.excel());
	toolBar.add(new FillToolItem());
	toolBar.add(exportButton);

	return toolBar;
}
 

开发者ID:sigmah-dev,
项目名称:sigmah,
代码行数:26,
代码来源:OrgUnitDetailsView.java

示例6: initUI

点赞 2

import com.extjs.gxt.ui.client.widget.toolbar.FillToolItem; //导入依赖的package包/类
public void initUI() {
	add(new FillToolItem());
	TextToolItem next = new TextToolItem("Next");
	next.addSelectionListener(new SelectionListener<ComponentEvent>() {

		@Override
		public void componentSelected(ComponentEvent ce) {
			nextTab.getTabPanel().setSelection(nextTab);
		}
			
	});
	add(next);
	layout();
}
 

开发者ID:luox12,
项目名称:onecmdb,
代码行数:15,
代码来源:TabWizardBar.java

示例7: buildToolbar

点赞 2

import com.extjs.gxt.ui.client.widget.toolbar.FillToolItem; //导入依赖的package包/类
/**
 * Builds the actions toolbar.
 * 
 * @return The actions toolbar.
 */
private ToolBar buildToolbar() {
	// Save or cancel changes button.
	saveButton = Forms.saveSplitButton();
	saveItem = (MenuItem) saveButton.getMenu().getItem(0);
	discardChangesItem = (MenuItem) saveButton.getMenu().getItem(1);
	
	// New indicator group button.
	newIndicatorGroupButton = Forms.button(I18N.CONSTANTS.newIndicatorGroup());
	
	// New indicator button.
	newIndicatorButton = Forms.button(I18N.CONSTANTS.newIndicator());
	
	// Delete button.
	deleteButton = Forms.button(I18N.CONSTANTS.delete());
	
	// Refresh button.
	refreshButton = Forms.button(I18N.CONSTANTS.refreshPreview(), IconImageBundle.ICONS.refresh());
	
	// Export form button.
	exportButton = Forms.button(I18N.CONSTANTS.export(), IconImageBundle.ICONS.excel());

	// Create the toolbar instance and add the buttons.
	final ToolBar toolBar = new ToolBar();
	toolBar.add(saveButton);
	toolBar.add(newIndicatorGroupButton);
	toolBar.add(newIndicatorButton);
	toolBar.add(deleteButton);
	toolBar.add(refreshButton);
	toolBar.add(new FillToolItem());
	toolBar.add(exportButton);
	
	return toolBar;
}
 

开发者ID:sigmah-dev,
项目名称:sigmah,
代码行数:39,
代码来源:ProjectIndicatorManagementView.java

示例8: buildToolbar

点赞 2

import com.extjs.gxt.ui.client.widget.toolbar.FillToolItem; //导入依赖的package包/类
/**
 * Builds the actions toolbar.
 * 
 * @return The actions toolbar.
 */
private ToolBar buildToolbar() {

	// Save button.
	saveButton = Forms.button(I18N.CONSTANTS.save(), IconImageBundle.ICONS.save());
	saveButton.setEnabled(false);

	// Copy button.
	copyButton = Forms.button(I18N.CONSTANTS.copy());
	copyButton.setEnabled(true);

	// Paste button.
	pasteButton = Forms.button(I18N.CONSTANTS.paste());
	pasteButton.setEnabled(false);

	// ExportForm button
	exportButton = Forms.button(I18N.CONSTANTS.export(), IconImageBundle.ICONS.excel());

	// Actions toolbar.
	final ToolBar toolBar = new ToolBar();
	toolBar.setBorders(false);

	toolBar.add(saveButton);
	// Use FillToolItem to align the left 3 buttons on the right
	toolBar.add(new FillToolItem());
	toolBar.add(copyButton);
	toolBar.add(pasteButton);
	toolBar.add(new SeparatorToolItem());
	toolBar.add(exportButton);

	return toolBar;
}
 

开发者ID:sigmah-dev,
项目名称:sigmah,
代码行数:37,
代码来源:ProjectLogFrameView.java

示例9: buildToolbar

点赞 2

import com.extjs.gxt.ui.client.widget.toolbar.FillToolItem; //导入依赖的package包/类
private ToolBar buildToolbar() {
	addTeamMemberButton = Forms.button(I18N.CONSTANTS.addTeamMemberButtonLabel(), IconImageBundle.ICONS.addUser());
	addTeamMemberByProfileButton = Forms.button(I18N.CONSTANTS.addTeamMembersByProfileButtonLabel(), IconImageBundle.ICONS.add());

	// Actions toolbar.
	final ToolBar toolBar = new ToolBar();
	toolBar.setAlignment(Style.HorizontalAlignment.LEFT);
	toolBar.setBorders(false);

	toolBar.add(addTeamMemberButton);
	toolBar.add(addTeamMemberByProfileButton);
	toolBar.add(new FillToolItem());

	return toolBar;
}
 

开发者ID:sigmah-dev,
项目名称:sigmah,
代码行数:16,
代码来源:ProjectTeamMembersView.java

示例10: onRender

点赞 2

import com.extjs.gxt.ui.client.widget.toolbar.FillToolItem; //导入依赖的package包/类
@Override
protected void onRender(Element parent, int index) {
	super.onRender(parent, index);
	
	// Handle parameters...
	BaseModel param = item.getParams();
	String url = (String)param.get("url");
	String replacedURL = ExpressionHandler.replace(url);
	String newWindow = param.get("newWindow");
	
	if ("true".equalsIgnoreCase(newWindow)) {
		String newWindowName = param.get("newWindowName");
		if (newWindowName == null) {
			newWindowName = "OneCMDB_Window";
		}
		String newWindowFeatures = param.get("newWindowFeatures");
		if (newWindowFeatures == null) {
			newWindowFeatures = "";
		}
		newWindowName = newWindowName.replace(" ", "_");
		com.google.gwt.user.client.Window.open(replacedURL, newWindowName, "");
		if (getParent() instanceof Window) {
			((Window)getParent()).close();
		}
		return;
	}
	
	Frame f = new Frame();
	f.setUrl(replacedURL);
	f.setSize("100%", "100%");
	ContentPanel cp = new ContentPanel();
	cp.setHeaderVisible(false);
	cp.setLayout(new FitLayout());
	cp.add(f);
	ToolBar bottom = new ToolBar();
	bottom.add(new FillToolItem());
	bottom.add(new CloseTextToolItem(this));
	cp.setBottomComponent(bottom);
	add(cp);
	layout();
}
 

开发者ID:luox12,
项目名称:onecmdb,
代码行数:42,
代码来源:CMDBURLFrameWidget.java

示例11: initUI

点赞 2

import com.extjs.gxt.ui.client.widget.toolbar.FillToolItem; //导入依赖的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

示例12: getTopToolBar

点赞 2

import com.extjs.gxt.ui.client.widget.toolbar.FillToolItem; //导入依赖的package包/类
private ToolBar getTopToolBar() {
	
	ToolBar bar = new ToolBar();
	TextToolItem addAttribute = new TextToolItem("Add", "add-icon");
	addAttribute.addSelectionListener(getAddValueSelection());
	addAttribute.setToolTip("Add a new value");
	bar.add(addAttribute);
	
	
	
	if (this.config.isComplex()) {
		TextToolItem selectValues = new TextToolItem("Select", "select-icon");
		selectValues.setMenu(getSelectMenu());
				
		//selectValues.addSelectionListener(getSelectValueSelection());
		selectValues.setToolTip("Select multiple values");
		bar.add(selectValues);
	}
	
	new SeparatorToolItem();
	/*
	TextToolItem removeAttribute = new TextToolItem("Remove", "delete-icon");
	removeAttribute.addSelectionListener(getRemoveSelection());
	removeAttribute.setToolTip("Remove checkd values.");
	bar.add(removeAttribute);
	
	new SeparatorToolItem();
	*/
	/*
	TextToolItem restore = new TextToolItem("Undo", "restore-icon");
	restore.addSelectionListener(getUndoSelection());
	restore.setToolTip("Undo");
	bar.add(restore);
	*/
	bar.add(new FillToolItem());
	TextToolItem  save = new TextToolItem("Ok", "commit-icon");
	save.addSelectionListener(getOkSelection());
	save.setToolTip("Ok");
	bar.add(save);
	
	TextToolItem cancel = new TextToolItem("Cancel", "cancel-icon");
	cancel.addSelectionListener(getCancelSelection());
	cancel.setToolTip("Close");
	bar.add(cancel);
	
	return(bar);
}
 

开发者ID:luox12,
项目名称:onecmdb,
代码行数:48,
代码来源:MultiValueGrid.java

示例13: createToolBar

点赞 2

import com.extjs.gxt.ui.client.widget.toolbar.FillToolItem; //导入依赖的package包/类
private void createToolBar() {
	// Save button.
	saveButton = Forms.saveSplitButton();
	saveButtonSeparator = new SeparatorToolItem();

	// Site filter combo box.
	siteFilter = new SiteFilterCombo(dispatcher);
	
	// Indicator filter combo box.
	indicatorFilter = new IndicatorFilterCombo(dispatcher);
	
	// Date filter combo box.
	dateFilter = new DateFilterCombo();
	
	// Set as default view checkbox.
	defaultViewCheckBox = new CheckBox();
	defaultViewCheckBox.addListener(Events.OnClick, new Listener<FieldEvent>() {

		@Override
		public void handleEvent(FieldEvent event) {
			onDefaultCheck(event);
		}
	});

	final Label defaultViewLabel = new Label(I18N.CONSTANTS.defaultView());
	defaultViewLabel.setLabelFor(defaultViewCheckBox.getId());
	
	// Creating the tool bar.
	toolBar = new ToolBar();
	toolBar.addStyleName(ProjectPivotResources.INSTANCE.style().toolbar());
	toolBar.add(saveButton);
	toolBar.add(saveButtonSeparator);
	toolBar.add(new Label(I18N.CONSTANTS.site()));
	toolBar.add(siteFilter);
	toolBar.add(new Label(I18N.CONSTANTS.indicator()));
	toolBar.add(indicatorFilter);
	toolBar.add(new Label(I18N.CONSTANTS.indicatorFilterToolBarLabel()));
	toolBar.add(dateFilter);
	toolBar.add(new FillToolItem());
	toolBar.add(historySelector.getPrevButton());
	toolBar.add(historySelector.getNextButton());
	toolBar.add(defaultViewLabel);
	toolBar.add(defaultViewCheckBox);
}
 

开发者ID:sigmah-dev,
项目名称:sigmah,
代码行数:45,
代码来源:ProjectPivotContainer.java

示例14: initUI

点赞 1

import com.extjs.gxt.ui.client.widget.toolbar.FillToolItem; //导入依赖的package包/类
public void initUI() {
	ContentPanel panel = new ContentPanel();
	panel.setLayout(new BorderLayout());
	
	// Left panel a navigation tree.
	PropertyNavigationTree tree = new PropertyNavigationTree(null, "name");
	
	// Right panel input forms.
	//PropetyInputForm inpoutForm = new PropertyInputForm();
	
	
	
	
	ContentPanel center = new ContentPanel();
	ToolBar toolBar = new ToolBar();
	toolBar.add(new FillToolItem());
	toolBar.add(new TextToolItem("Save"));
	toolBar.add(new TextToolItem("Cancel"));
	center.setBottomComponent(toolBar);

	
	
	// Layout the components.
	BorderLayoutData centerData = new BorderLayoutData(LayoutRegion.CENTER);  
    centerData.setMargins(new Margins(5, 0, 5, 0));  
       
       
    BorderLayoutData westData = new BorderLayoutData(LayoutRegion.WEST, 200);  
    westData.setSplit(true);  
    westData.setCollapsible(true);  
    westData.setMargins(new Margins(5));  
 
	
	add(tree, westData);
	add(center, centerData);
	
}
 

开发者ID:luox12,
项目名称:onecmdb,
代码行数:38,
代码来源:PropertyWidget.java

示例15: createButtons

点赞 1

import com.extjs.gxt.ui.client.widget.toolbar.FillToolItem; //导入依赖的package包/类
@Override
protected void createButtons()
{
    super.createButtons();

    this.saveStatus = new SaveStaus();
    this.saveStatus.setAutoWidth(true);

    getButtonBar().add(saveStatus);

    getButtonBar().add(new FillToolItem());

}
 

开发者ID:geoserver,
项目名称:geofence,
代码行数:14,
代码来源:UserDetailsEditDialog.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)