Java Code Examples for com.smartgwt.client.widgets.layout.VLayout#setTop()
The following examples show how to use
com.smartgwt.client.widgets.layout.VLayout#setTop() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Legend.java From SensorWebClient with GNU General Public License v2.0 | 5 votes |
private void createExportMenu() { exportMenu = new VLayout(); exportMenu.setLeft(exportButton.getAbsoluteLeft()); exportMenu.setTop(30); exportMenu.setStyleName("n52_sensorweb_client_interactionmenu"); exportMenu.setAutoHeight(); exportMenu.setZIndex(1000000); exportMenu.addMember(createPDFLabel()); exportMenu.addMember(createCSVLabel()); exportMenu.setVisible(false); }
Example 2
Source File: ShareFileDialog.java From document-management-software with GNU Lesser General Public License v3.0 | 4 votes |
public ShareFileDialog(boolean export) { super(); this.export = export; setHeaderControls(HeaderControls.HEADER_LABEL, HeaderControls.CLOSE_BUTTON); setTitle(I18N.message("sharefile")); setWidth(350); setHeight(300); setCanDragResize(true); setIsModal(true); setShowModalMask(true); centerInPage(); setPadding(3); VLayout content = new VLayout(); content.setTop(10); content.setWidth100(); content.setHeight100(); content.setMembersMargin(3); tree = new ShareFileTree(export); tree.setWidth100(); tree.setHeight100(); VLayout buttons = new VLayout(); buttons.setWidth100(); buttons.setHeight(30); Button select = new Button(I18N.message("select")); select.setAutoFit(true); select.setMargin(1); select.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { if (ShareFileDialog.this.export) onExport(); else onImport(); } }); buttons.setMembers(select); content.setMembers(tree, buttons); addItem(content); }
Example 3
Source File: InheritRightsDialog.java From document-management-software with GNU Lesser General Public License v3.0 | 4 votes |
public InheritRightsDialog(final FolderSecurityPanel panel) { super(); setHeaderControls(HeaderControls.HEADER_LABEL, HeaderControls.CLOSE_BUTTON); setTitle(I18N.message("inheritrights")); setWidth(250); setHeight(270); setCanDragResize(true); setIsModal(true); setShowModalMask(true); centerInPage(); setPadding(3); VLayout content = new VLayout(); content.setTop(10); content.setWidth100(); content.setHeight100(); content.setMembersMargin(3); final TreeGrid folders = new FolderTree(); folders.setWidth100(); folders.setHeight100(); VLayout buttons = new VLayout(); buttons.setWidth100(); buttons.setHeight(30); Button inheritRights = new Button(I18N.message("inheritrights")); inheritRights.setAutoFit(true); inheritRights.setMargin(1); inheritRights.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { LD.ask(I18N.message("inheritrights"), I18N.message("inheritrightsask", new String[] { FolderNavigator.get().getSelectedRecord().getAttributeAsString("name"), folders.getSelectedRecord().getAttributeAsString("name") }), new BooleanCallback() { @Override public void execute(Boolean value) { if (value) { FolderService.Instance.get() .inheritRights( panel.getFolder().getId(), Long.parseLong(folders.getSelectedRecord().getAttributeAsString( "folderId")), new AsyncCallback<GUIFolder>() { @Override public void onFailure(Throwable caught) { Log.serverError(caught); destroy(); } @Override public void onSuccess(GUIFolder arg) { panel.refresh(arg); destroy(); } }); } destroy(); } }); } }); buttons.setMembers(inheritRights); content.setMembers(folders, buttons); addItem(content); }
Example 4
Source File: CreateAliasDialog.java From document-management-software with GNU Lesser General Public License v3.0 | 4 votes |
public CreateAliasDialog() { super(); setHeaderControls(HeaderControls.HEADER_LABEL, HeaderControls.CLOSE_BUTTON); setTitle(I18N.message("createalias")); setWidth(470); setHeight(280); setCanDragResize(true); setIsModal(true); setShowModalMask(true); centerInPage(); setPadding(3); VLayout content = new VLayout(); content.setTop(10); content.setWidth100(); content.setHeight100(); content.setMembersMargin(3); final TreeGrid folders = new FolderTree(); folders.setWidth100(); folders.setHeight100(); HLayout buttons = new HLayout(); buttons.setWidth100(); buttons.setHeight(30); Button create = new Button(I18N.message("create")); create.setAutoFit(true); create.setMargin(1); create.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { FolderNavigator.get().createAlias( Long.parseLong(folders.getSelectedRecord().getAttributeAsString("folderId"))); destroy(); } }); buttons.setMembers(create); content.setMembers(folders, buttons); addItem(content); }
Example 5
Source File: MoveDialog.java From document-management-software with GNU Lesser General Public License v3.0 | 4 votes |
public MoveDialog() { super(); setHeaderControls(HeaderControls.HEADER_LABEL, HeaderControls.CLOSE_BUTTON); setTitle(I18N.message("move")); setWidth(250); setHeight(270); setCanDragResize(true); setIsModal(true); setShowModalMask(true); centerInPage(); setPadding(3); VLayout content = new VLayout(); content.setTop(10); content.setWidth100(); content.setHeight100(); content.setMembersMargin(3); final TreeGrid folders = new FolderTree(); folders.setWidth100(); folders.setHeight100(); VLayout buttons = new VLayout(); buttons.setWidth100(); buttons.setHeight(30); Button move = new Button(I18N.message("move")); move.setAutoFit(true); move.setMargin(1); move.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { String shownName = FolderNavigator.get().getSelectedRecord().getAttributeAsString("name"); long[] selection = FolderNavigator.get().getSelectedIds(); if (selection.length > 1) shownName = selection.length + " " + I18N.message("folders").toLowerCase(); LD.ask(I18N.message("move"), I18N.message("moveask", new String[] { shownName, folders.getSelectedRecord().getAttributeAsString("name") }), new BooleanCallback() { @Override public void execute(Boolean value) { if (value) { FolderNavigator.get() .moveTo(Long.parseLong(folders.getSelectedRecord().getAttributeAsString( "folderId"))); } destroy(); } }); } }); buttons.setMembers(move); content.setMembers(folders, buttons); addItem(content); }
Example 6
Source File: ZohoDialog.java From document-management-software with GNU Lesser General Public License v3.0 | 4 votes |
public ZohoDialog(boolean export) { super(); this.export = export; setHeaderControls(HeaderControls.HEADER_LABEL, HeaderControls.CLOSE_BUTTON); setTitle(I18N.message("zoho")); setWidth(350); setHeight(300); setCanDragResize(true); setIsModal(true); setShowModalMask(true); centerInPage(); setPadding(3); VLayout content = new VLayout(); content.setTop(10); content.setWidth100(); content.setHeight100(); content.setMembersMargin(3); tree = new ZohoTree(export); tree.setWidth100(); tree.setHeight100(); VLayout buttons = new VLayout(); buttons.setWidth100(); buttons.setHeight(30); Button select = new Button(I18N.message("select")); select.setAutoFit(true); select.setMargin(1); select.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { if (ZohoDialog.this.export) onExport(); else onImport(); } }); buttons.setMembers(select); content.setMembers(tree, buttons); addItem(content); }
Example 7
Source File: DropboxDialog.java From document-management-software with GNU Lesser General Public License v3.0 | 4 votes |
public DropboxDialog(boolean export) { super(); this.export = export; setHeaderControls(HeaderControls.HEADER_LABEL, HeaderControls.CLOSE_BUTTON); setTitle(I18N.message("dropbox")); setWidth(350); setHeight(300); setCanDragResize(true); setIsModal(true); setShowModalMask(true); centerInPage(); setPadding(3); VLayout content = new VLayout(); content.setTop(10); content.setWidth100(); content.setHeight100(); content.setMembersMargin(3); tree = new DropboxTree(export); tree.setWidth100(); tree.setHeight100(); VLayout buttons = new VLayout(); buttons.setWidth100(); buttons.setHeight(30); Button select = new Button(I18N.message("select")); select.setAutoFit(true); select.setMargin(1); select.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { if (DropboxDialog.this.export) onExport(); else onImport(); } }); buttons.setMembers(select); content.setMembers(tree, buttons); addItem(content); }