本文整理汇总了Java中com.extjs.gxt.ui.client.widget.layout.RowLayout类的典型用法代码示例。如果您正苦于以下问题:Java RowLayout类的具体用法?Java RowLayout怎么用?Java RowLayout使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RowLayout类属于com.extjs.gxt.ui.client.widget.layout包,在下文中一共展示了RowLayout类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例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);
}
示例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);
}
示例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();
}
}
});
}
示例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;
}
示例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());
}
示例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;
}
示例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();
}
示例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();
}
示例10: TemplateIdentForm
import com.extjs.gxt.ui.client.widget.layout.RowLayout; //导入依赖的package包/类
public TemplateIdentForm(CIModel model) {
this.model = model;
setLayout(new RowLayout());
}
示例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()));
}
示例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()));
}
示例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()));
}
示例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();
}
示例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);
}