本文整理汇总了Java中com.sencha.gxt.widget.core.client.toolbar.ToolBar类的典型用法代码示例。如果您正苦于以下问题:Java ToolBar类的具体用法?Java ToolBar怎么用?Java ToolBar使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ToolBar类属于com.sencha.gxt.widget.core.client.toolbar包,在下文中一共展示了ToolBar类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createView
import com.sencha.gxt.widget.core.client.toolbar.ToolBar; //导入依赖的package包/类
private void createView() {
container = new FramedPanel();
container.setHeaderVisible(true);
container.setHeadingText("Users");
toolBar = new ToolBar();
deleteButton = new TextButton(" Delete User");
deleteButton.setIcon(ImageResources.IMAGES.iconDelete());
deleteButton.setEnabled(false);
newButton = new TextButton(" New User");
newButton.setIcon(ImageResources.IMAGES.iconNew());
toolBar.add(newButton);
toolBar.add(deleteButton);
container.addTool(toolBar);
VerticalLayoutContainer contentContainer = new VerticalLayoutContainer();
container.add(contentContainer);
contentContainer.add(toolBar,
new VerticalLayoutContainer.VerticalLayoutData(1,
-1,
new Margins(0)));
contentContainer.add(grid,
new VerticalLayoutContainer.VerticalLayoutData(1,
1,
new Margins(0)));
}
示例2: createView
import com.sencha.gxt.widget.core.client.toolbar.ToolBar; //导入依赖的package包/类
private void createView() {
container = new FramedPanel();
container.setHeaderVisible(true);
container.setHeadingText("Users - (v1.5.0 - 22.03.2015)");
toolBar = new ToolBar();
deleteButton = new TextButton(" Delete User");
deleteButton.setIcon(ImageResources.IMAGES.iconDelete());
deleteButton.setEnabled(false);
newButton = new TextButton(" New User");
newButton.setIcon(ImageResources.IMAGES.iconNew());
toolBar.add(newButton);
toolBar.add(deleteButton);
container.addTool(toolBar);
VerticalLayoutContainer contentContainer = new VerticalLayoutContainer();
container.add(contentContainer);
contentContainer.add(toolBar,
new VerticalLayoutContainer.VerticalLayoutData(1,
-1,
new Margins(0)));
contentContainer.add(grid,
new VerticalLayoutContainer.VerticalLayoutData(1,
1,
new Margins(0)));
}
示例3: PaletePanel
import com.sencha.gxt.widget.core.client.toolbar.ToolBar; //导入依赖的package包/类
public PaletePanel(MainPanel mainPanel, ComponentFactory componentFactory) {
this.mainPanel = mainPanel;
palete = new Palete(componentFactory);
toolBar = new ToolBar();
add(toolBar, new VerticalLayoutData(1, -1));
initPalete();
}
示例4: getMainToolbar
import com.sencha.gxt.widget.core.client.toolbar.ToolBar; //导入依赖的package包/类
public ToolBar getMainToolbar() {
return mainToolbar;
}
示例5: getGlobalToolbar
import com.sencha.gxt.widget.core.client.toolbar.ToolBar; //导入依赖的package包/类
public ToolBar getGlobalToolbar() {
return globalToolBar;
}