com.smartgwt.client.types.Overflow Java Examples

The following examples show how to use com.smartgwt.client.types.Overflow. 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: DrawingPanel.java    From document-management-software with GNU Lesser General Public License v3.0 6 votes vote down vote up
public DrawingPanel(GUIWorkflow workflow) {
	super();
	this.workflow = workflow;
	setMembersMargin(5);
	setOverflow(Overflow.SCROLL);
	setWidth100();
	setHeight100();

	controller = new DiagramController(2000, 2000);
	controller.showGrid(false);
	addMember(controller.getView());

	addScrolledHandler(new ScrolledHandler() {

		@Override
		public void onScrolled(ScrolledEvent event) {
			// This will avoid connection explosions when scrolling
			controller.unsynchronizedShapes();
		}
	});

	if (workflow != null)
		redraw();
}
 
Example #2
Source File: DocumentsPreviewPanel.java    From document-management-software with GNU Lesser General Public License v3.0 6 votes vote down vote up
public DocumentsPreviewPanel() {
	setAlign(Alignment.CENTER);
	selectLabel = new Label(" " + selectLabelString);
	selectLabel.setOverflow(Overflow.HIDDEN);
	
	setInitialSize();
	reset();
	
	addResizedHandler(new ResizedHandler() {
		@Override
		public void onResized(ResizedEvent event) {
			if ("true".equals(Session.get().getConfig("gui.preview.openpanel")))
				Offline.put(widthCookieName, getWidthAsString());
		}
	});
}
 
Example #3
Source File: SessionTimeout.java    From document-management-software with GNU Lesser General Public License v3.0 6 votes vote down vote up
private SessionTimeout() {
	setShowEdges(false);
	setShowHeader(false);
	centerInPage();
	setIsModal(true);
	setVertical(true);
	setAlign(Alignment.CENTER);
	setMargin(2);
	setMembersMargin(0);
	setBodyColor("white");
	setBackgroundColor("white");
	setOverflow(Overflow.HIDDEN);
	setHeight100();
	setWidth100();

	Label message = new Label(I18N.message("sessiontimeout"));
	message.setWrap(false);
	message.setAlign(Alignment.CENTER);
	message.setStyleName("sessiontimeout");
	message.setLayoutAlign(Alignment.CENTER);
	message.setLayoutAlign(VerticalAlignment.CENTER);
	message.setHeight(50);
	message.setBackgroundColor("white");

	addMember(message);
}
 
Example #4
Source File: ImageWithCanvases.java    From document-management-software with GNU Lesser General Public License v3.0 5 votes vote down vote up
/**
 * Adds a new canvas
 * 
 * @param canvas the canvas to add
 */
public void addCanvas(Canvas canvas) {
	canvases.add(canvas);
	canvas.setOverflow(Overflow.HIDDEN);
	canvas.setSmoothFade(true);
	canvas.addResizedHandler(new CanvasResizedHandler(canvas));
	canvas.addMovedHandler(new CamvasMovedHandler(canvas));
	addChild(canvas);
}
 
Example #5
Source File: Toaster.java    From SensorWebClient with GNU General Public License v2.0 5 votes vote down vote up
private void getToasterWindow() {

        if (this.toasterWindow == null) {
            this.toasterWindow = new Window();
            this.layout = new VLayout();
            this.layout.setTabIndex( -1);

            this.toasterWindow.setParentElement(this.parentElem);
            this.toasterWindow.setAnimateFadeTime(fadeout);

            this.toasterWindow.setHeight(this.height);
            this.toasterWindow.setWidth(this.width);
            this.toasterWindow.setTitle(this.title);
            this.toasterWindow.setAutoSize(new Boolean(false));
            this.toasterWindow.setOverflow(Overflow.AUTO);
            this.left = this.toasterWindow.getParentElement().getWidth().intValue() - this.width - 10;
            this.top = this.toasterWindow.getParentElement().getHeight().intValue() - this.height - 30;

            this.toasterWindow.setLeft(this.left);
            this.toasterWindow.setTop(this.top);
            this.toasterWindow.setCanDragResize(true);
            this.toasterWindow.setShowMaximizeButton(true);

            this.toasterWindow.setID(this.id);
            this.toasterWindow.addItem(this.layout);

            this.toasterWindow.addCloseClickHandler(new CloseClickHandler() {

                public void onCloseClick(CloseClickEvent event) {
                    hide();
                }
            });
        }
    }
 
Example #6
Source File: View.java    From SensorWebClient with GNU General Public License v2.0 5 votes vote down vote up
private Layout getDataViewAndLegendPanel() {
    HLayout hLayout = new HLayout();
    hLayout.setOverflow(Overflow.HIDDEN);
    hLayout.addMember(getLegend());
    hLayout.addMember(getLegendHider());
    hLayout.addMember(getDataPanel());
    hLayout.setTabIndex( -1);
    return hLayout;
}
 
Example #7
Source File: LegendEntryTimeSeries.java    From SensorWebClient with GNU General Public License v2.0 5 votes vote down vote up
private Canvas createRefValueLayout() {
	this.refvalLayout = new VLayout();
	this.refvalLayout.setTabIndex(-1);
	this.refvalLayout.setHeight("*");
	this.refvalLayout.setOverflow(Overflow.VISIBLE);
	this.refvalLayout.setStyleName("n52_sensorweb_client_refValLayout");

	return this.refvalLayout;
}
 
Example #8
Source File: ImportParentChooser.java    From proarc with GNU General Public License v3.0 5 votes vote down vote up
public ImportParentChooser(ClientMessages i18n) {
    this.i18n = i18n;
    this.widget = new VLayout(4);
    widget.setWidth100();
    widget.setHeight100();
    widget.setOverflow(Overflow.AUTO);

    selectionView = createSelectionView(i18n);
    foundView = new DigitalObjectSearchView(i18n, LAST_SELECTED_MODEL_TAG);
    treeView = new DigitalObjectTreeView(i18n);

    foundView.getGrid().setSelectionType(SelectionStyle.SINGLE);
    foundView.getGrid().addSelectionUpdatedHandler(new SelectionUpdatedHandler() {

        @Override
        public void onSelectionUpdated(SelectionUpdatedEvent event) {
            final ListGridRecord selectedRecord = foundView.getGrid().getSelectedRecord();
            if (selectedRecord != null) {
                String pid = selectedRecord.getAttribute(RelationDataSource.FIELD_PID);
                treeView.setRoot(pid);
            }
        }
    });

    widget.addMember(selectionView);
    Canvas foundViewWidget = foundView.asWidget();
    foundViewWidget.setShowResizeBar(true);
    widget.addMember(foundViewWidget);
    widget.addMember(treeView.asWidget());
    createActions();
    initToolbar(foundView.getToolbar(), foundView);
    initToolbar(treeView.getToolbar(), treeView);
    initContextMenu(foundView.getGrid().getContextMenu(), foundView);
    initContextMenu(treeView.getTree().getContextMenu(), treeView);
}
 
Example #9
Source File: WorkflowTaskFormView.java    From proarc with GNU General Public License v3.0 5 votes vote down vote up
private Canvas createMainLayout() {
    VLayout forms = new VLayout();
    forms.setOverflow(Overflow.AUTO);
    forms.addMember(createForm());
    forms.addMember(createParameterList());
    forms.setShowResizeBar(true);
    forms.setResizeBarTarget("next");

    VLayout main = new VLayout();
    main.addMember(createTaskToolbar());
    main.addMember(forms);
    main.addMember(createMaterialList());
    return main;
}
 
Example #10
Source File: DigitalObjectPreview.java    From proarc with GNU General Public License v3.0 5 votes vote down vote up
public ImageLoadTask(Layout display, Zoom zoom, boolean focus, ClientMessages i18n) {
            this.imgContainer = new VLayout();
            this.imgContainer.setLayoutMargin(4);
            // center vertically
            this.imgContainer.setAlign(Alignment.CENTER);
            // center horizontally
            // #461: do not try to center horizontally as browsers crop large images in small containers
//            this.imgContainer.setDefaultLayoutAlign(Alignment.CENTER);
            this.imgContainer.setOverflow(Overflow.AUTO);
            this.display = display;
            this.i18n = i18n;
            this.zoom = zoom;
            this.focus = focus;
        }
 
Example #11
Source File: CatalogBrowser.java    From proarc with GNU General Public License v3.0 5 votes vote down vote up
private Canvas createAdvancedOptions() {
        formCatalog = createCatalogForm();

        lgResult = new ListGrid();
        lgResult.setDataSource(BibliographyQueryDataSource.getInstance());
//        lgResult.setUseAllDataSourceFields(true);
        ListGridField preview = new ListGridField(BibliographyQueryDataSource.FIELD_PREVIEW,
                i18n.CatalogBrowser_HeaderPreview_Title());
        ListGridField title = new ListGridField(BibliographyQueryDataSource.FIELD_TITLE,
                i18n.CatalogBrowser_HeaderTitle_Title());
        lgResult.setDetailField(BibliographyQueryDataSource.FIELD_PREVIEW);
        lgResult.setFields(title, preview);
//        lgResult.setAutoFetchData(true);
        lgResult.setHeight100();
        lgResult.setWidth100();
        lgResult.setCanExpandRecords(true);
        lgResult.setCanExpandMultipleRecords(false);
        lgResult.setExpansionMode(ExpansionMode.DETAIL_FIELD);
        lgResult.setSelectionType(SelectionStyle.SINGLE);
//        lgResult.setSelectionAppearance(SelectionAppearance.CHECKBOX);
        lgResult.setAlternateRecordStyles(true);
        lgResult.addDataArrivedHandler(new DataArrivedHandler() {

            @Override
            public void onDataArrived(DataArrivedEvent event) {
                if (event.getStartRow() == 0 && event.getEndRow() > 0) {
                    lgResult.focus();
                    lgResult.selectSingleRecord(0);
                }
            }
        });

        VLayout layout = new VLayout();
        layout.setMembers(formCatalog, lgResult);
        layout.setMargin(4);
        layout.setMembersMargin(4);
        layout.setOverflow(Overflow.AUTO);
        return layout;
    }
 
Example #12
Source File: ModsCustomEditor.java    From proarc with GNU General Public License v3.0 5 votes vote down vote up
public ModsCustomEditor(ClientMessages i18n) {
    this.i18n = i18n;
    this.editorCache = new HashMap<String, DynamicForm>();
    this.widget = new VLayout();
    this.widget.setOverflow(Overflow.AUTO);

    String wmsg = ClientUtils.format("<div class='proarcMetadataFormWarning'>%s</div>",
            i18n.DigitalObjectEditor_DescriptionFormEditor_FormSaveWarning_Msg());
    warning.setContents(wmsg);
    warning.setAutoHeight();
}
 
Example #13
Source File: ModsBatchEditor.java    From proarc with GNU General Public License v3.0 5 votes vote down vote up
@Override
public Canvas getFormPanel() {
    if (panel == null) {
        panel = widget.getPanel();
        panel.setWidth100();
        panel.setHeight100();
        panel.setOverflow(Overflow.AUTO);
    }
    return panel;
}
 
Example #14
Source File: ModsBatchEditor.java    From proarc with GNU General Public License v3.0 5 votes vote down vote up
@Override
public Canvas getFormPanel() {
    if (panel == null) {
        panel = editor.getFormPanel();
        panel.setWidth100();
        panel.setHeight100();
        panel.setOverflow(Overflow.AUTO);
    }
    return panel;
}
 
Example #15
Source File: DeviceManager.java    From proarc with GNU General Public License v3.0 5 votes vote down vote up
public DeviceManagerWidget(ClientMessages i18n) {
    this.i18n = i18n;
    actionSource = new ActionSource(this);
    widget = new VLayout();

    Label lblHeader = new Label();
    String title = ClientUtils.format("<b>%s</b>", i18n.DeviceManager_Title());
    lblHeader.setContents(title);
    lblHeader.setAutoHeight();
    lblHeader.setPadding(4);
    lblHeader.setStyleName(Editor.CSS_PANEL_DESCRIPTION_TITLE);

    ToolStrip toolbar = createToolbar(i18n);
    deviceList = createDeviceList(i18n);
    form = createForm();
    premisForm = createPremisForm();
    descriptionForm = createDescriptionForm();
    valuesManager = new ValuesManager();
    valuesManager.addMember(form);
    valuesManager.addMember(premisForm);
    valuesManager.addMember(descriptionForm);
    valuesManager.setDataSource(DeviceDataSource.getInstance());
    VLayout forms = new VLayout();
    forms.setOverflow(Overflow.AUTO);
    forms.setMembers(form, premisForm, descriptionForm);

    HLayout hLayout = new HLayout();
    deviceList.setWidth100();
    forms.setWidth100();
    hLayout.setMembers(deviceList, forms);

    widget.addMember(lblHeader);
    widget.addMember(toolbar);
    widget.addMember(hLayout);
}
 
Example #16
Source File: PreviewTile.java    From document-management-software with GNU Lesser General Public License v3.0 5 votes vote down vote up
public PreviewTile(final long docId, final String title) {
	this.docId = docId;
	this.title = title;
	setMembersMargin(1);
	setAlign(Alignment.RIGHT);
	setOverflow(Overflow.HIDDEN);

	init();
}
 
Example #17
Source File: ToastNotification.java    From document-management-software with GNU Lesser General Public License v3.0 5 votes vote down vote up
public ToastNotification(String messageText) {
	setShowEdges(false);
	setShowHeader(false);
	setShowHeaderBackground(false);
	setShowHeaderIcon(false);
	setShowResizer(false);
	setShowFooter(false);
	setShowTitle(false);
	setAlign(Alignment.CENTER);
	setMargin(0);
	setMembersMargin(3);
	setPadding(0);
	setBodyColor("white");
	setBackgroundColor("white");
	setBorder("1px solid DarkBlue");
	setOverflow(Overflow.HIDDEN);
	setAutoSize(true);
	centerInPage();
	setVertical(true);

	HTMLFlow message = new HTMLFlow(AwesomeFactory.getIconHtml("info-circle", messageText));
	message.setAlign(Alignment.CENTER);
	message.setStyleName("contactingserver");
	message.setLayoutAlign(Alignment.CENTER);
	message.setLayoutAlign(VerticalAlignment.CENTER);
	message.setBackgroundColor("white");
	message.setHeight(50);

	addItem(message);

	Scheduler.get().scheduleFixedDelay(new RepeatingCommand() {

		@Override
		public boolean execute() {
			ToastNotification.this.destroy();
			return false;
		}
	}, Session.get().getConfigAsInt("gui.popup.timeout") * 1000);
}
 
Example #18
Source File: UpdatePanel.java    From document-management-software with GNU Lesser General Public License v3.0 5 votes vote down vote up
public UpdatePanel(GUIDocument metadata, boolean showNotificationPanel) {
	super();

	if (metadata != null)
		document = metadata;
	else {
		document.setStartPublishing(null);
		document.setPublished(-1);

		GUIFolder currentFolder = Session.get().getCurrentFolder();
		document.setFolder(currentFolder);

		if (currentFolder.getTemplateLocked() == 1) {
			document.setTemplateId(currentFolder.getTemplateId());
			document.setTemplate(currentFolder.getTemplate());
			document.setAttributes(currentFolder.getAttributes());
		}

		document.setOcrTemplateId(currentFolder.getOcrTemplateId());
	}

	setHeight100();
	setWidth100();
	setMembersMargin(10);

	HTMLPane spacer = new HTMLPane();
	spacer.setContents("<div>&nbsp;</div>");
	spacer.setWidth("60%");
	spacer.setOverflow(Overflow.HIDDEN);

	prepareTabs();
	prepareTabset(showNotificationPanel);

	refresh();
}
 
Example #19
Source File: WorkflowCompletionWindow.java    From document-management-software with GNU Lesser General Public License v3.0 5 votes vote down vote up
public WorkflowCompletionWindow(GUIWorkflow workflow) {
	super();
	setOverflow(Overflow.SCROLL);
	setWidth100();
	setHeight100();
	setTitle(I18N.message("completiondiagram"));

	DrawingPanel drawingPanel = new DrawingPanel(workflow);
	addItem(drawingPanel);
}
 
Example #20
Source File: SearchPanel.java    From document-management-software with GNU Lesser General Public License v3.0 5 votes vote down vote up
private SearchPanel() {
	setWidth100();
	setOverflow(Overflow.HIDDEN);
	setShowEdges(false);

	Search.get().addObserver(this);
	DocumentController.get().addObserver(this);
}
 
Example #21
Source File: ContentDashlet.java    From document-management-software with GNU Lesser General Public License v3.0 5 votes vote down vote up
private void init() {
	if (content != null)
		removeChild(content);

	content = new HTMLFlow();
	content.setWidth100();
	content.setHeight100();
	content.setOverflow(Overflow.SCROLL);
	content.setContentsURL(Util.contextPath() + getDataSourceUrl());

	addMember(content);
}
 
Example #22
Source File: GoogleAuthenticatorSetup.java    From document-management-software with GNU Lesser General Public License v3.0 4 votes vote down vote up
private void init(String account, String key, String qrUrl) {
	// Prepare the form with account informations
	StaticTextItem accountItem = ItemFactory.newStaticTextItem("account", I18N.message("account"), account);
	accountItem.setWrap(false);
	accountItem.setWrapTitle(false);

	StaticTextItem keyItem = ItemFactory.newStaticTextItem("key", I18N.message("key"), key);
	keyItem.setWrap(false);
	keyItem.setWrapTitle(false);

	DynamicForm form = new DynamicForm();
	form.setTitleOrientation(TitleOrientation.LEFT);
	form.setItems(accountItem, keyItem);

	Label formTitle = new Label("<b>" + I18N.message(Constants.TWOFA_GOOGLE_AUTHENTICATOR+".hint1") + "</b>");
	formTitle.setWrap(true);
	formTitle.setMinWidth(250);

	VLayout formLayout = new VLayout();
	formLayout.setMembersMargin(2);
	formLayout.setMembers(formTitle, form);
	formLayout.setAlign(VerticalAlignment.TOP);

	// Prepare the QR Code
	HTMLFlow qrCode = new HTMLFlow("<img width='200' height='200' src='" + qrUrl + "'/>");
	qrCode.setOverflow(Overflow.VISIBLE);

	Label qrCodeTitle = new Label("<b>" + I18N.message(Constants.TWOFA_GOOGLE_AUTHENTICATOR+".hint2") + "</b>");
	qrCodeTitle.setWrap(true);
	qrCodeTitle.setMinWidth(250);

	VLayout qrCodeLayout = new VLayout();
	qrCodeLayout.setWidth100();
	qrCodeLayout.setHeight100();
	qrCodeLayout.setMembers(qrCodeTitle, qrCode);

	VLayout separator = new VLayout();
	separator.setWidth(20);

	HLayout body = new HLayout();
	body.setMembersMargin(2);
	body.setMembers(formLayout, separator, qrCodeLayout);

	setMembers(body);
}
 
Example #23
Source File: HTMLPanel.java    From document-management-software with GNU Lesser General Public License v3.0 4 votes vote down vote up
public HTMLPanel(String html) {
	super();
	setOverflow(Overflow.AUTO);
	setPadding(10);
	setContents(html);
}
 
Example #24
Source File: ErrorHandler.java    From proarc with GNU General Public License v3.0 4 votes vote down vote up
/**
     * Notifies user about error.
     * @param msg simple client message
     * @param detailMsg detail response message; can be HTML
     * @param debugInfo request details, URL, ...
     */
    private void warn(String msg, String detailMsg, String debugInfo) {
        if (msg == null) {
            msg = i18n.ErrorHandler_UnexpectedError_Msg();
        }
        SmartGwtMessages sgi18n = ClientUtils.createSmartGwtMessages();
        boolean allowDetail = !msg.equals(detailMsg);
        final Dialog d = new Dialog();
        d.setTitle(sgi18n.dialog_WarnTitle());
        d.setIsModal(true);
        d.setAutoSize(Boolean.FALSE);
        d.setMessage(msg);
        d.setIcon("[SKIN]warn.png");
        d.setCanDragResize(true);
        d.setCanDragReposition(Boolean.TRUE);
        d.setKeepInParentRect(Boolean.TRUE);
//        d.setShowMaximizeButton(Boolean.TRUE);
        d.setMinMemberSize(50);
        Button details = new Button(i18n.ErrorHandler_ButtonDetalis_Title());
        details.setVisible(allowDetail);
        d.setButtons(Dialog.OK, details);
        if (allowDetail) {
            Canvas errorPane = new Canvas();
            errorPane.setOverflow(Overflow.AUTO);
            errorPane.setWidth100();
            errorPane.setHeight100();
            errorPane.setContents(detailMsg);
            errorPane.setCanSelectText(true);
            Canvas debugInfoPane = new Canvas();
            debugInfoPane.setWidth100();
            debugInfoPane.setAutoHeight();
            debugInfoPane.setContents(debugInfo);
            debugInfoPane.setCanSelectText(true);
            final VLayout detailPane = new VLayout(4);
            detailPane.setLayoutMargin(4);
            detailPane.setGroupTitle(i18n.ErrorHandler_ButtonDetalis_Title());
            detailPane.setIsGroup(true);
            detailPane.setVisible(false);
            detailPane.addMember(errorPane);
            detailPane.addMember(debugInfoPane);
            detailPane.setWidth100();
            detailPane.setHeight100();
            d.addItem(detailPane);
            details.addClickHandler(new com.smartgwt.client.widgets.events.ClickHandler() {
                @Override
                public void onClick(com.smartgwt.client.widgets.events.ClickEvent event) {
                    if (detailPane.isVisible()) {
                        d.restore();
                    } else {
                        d.maximize();
                    }
                    detailPane.setVisible(!detailPane.isVisible());
                }
            });
        }
        d.show();
    }
 
Example #25
Source File: DocumentsPanel.java    From document-management-software with GNU Lesser General Public License v3.0 4 votes vote down vote up
private DocumentsPanel() {
	setWidth100();
	setOverflow(Overflow.HIDDEN);
	setShowEdges(false);
}
 
Example #26
Source File: AboutDialog.java    From document-management-software with GNU Lesser General Public License v3.0 4 votes vote down vote up
public AboutDialog() {
	super();

	addCloseClickHandler(new CloseClickHandler() {
		@Override
		public void onCloseClick(CloseClickEvent event) {
			destroy();
		}
	});

	setHeaderControls(HeaderControls.HEADER_LABEL, HeaderControls.CLOSE_BUTTON);
	setTitle(I18N.message("about") + " " + Session.get().getInfo().getBranding().getProductName());
	setWidth(400);
	setPadding(2);
	setAutoSize(true);
	setIsModal(true);
	setShowModalMask(true);
	centerInPage();

	HTMLPane vspacer1 = new HTMLPane();
	vspacer1.setContents("<div>&nbsp;</div>");
	vspacer1.setPixelSize(100, 5);
	vspacer1.setOverflow(Overflow.HIDDEN);

	Img logoImage = ItemFactory.newBrandImg("logo.png", Session.get().getInfo());
	logoImage.setWidth(205);
	logoImage.setHeight(40);

	Label productName = new Label(Session.get().getInfo().getBranding().getProductName());
	productName.setWrap(false);
	productName.setHeight(10);
	productName.setAlign(Alignment.CENTER);

	Label version = new Label(I18N.message("version") + " " + Session.get().getInfo().getRelease());
	version.setWrap(false);
	version.setHeight(10);
	version.setAlign(Alignment.CENTER);

	Label copyright = new Label("&copy; " + Session.get().getInfo().getYear() + " "
			+ Session.get().getInfo().getBranding().getVendor());
	copyright.setWrap(false);
	copyright.setHeight(20);
	copyright.setAlign(Alignment.CENTER);

	Label trademark = new Label(I18N.message("copyrights", new String[] { Session.get().getInfo().getBranding().getProduct(),
			Session.get().getInfo().getBranding().getProduct(), Session.get().getInfo().getBranding().getVendor() }));
	trademark.setWidth("80%");
	trademark.setHeight(40);
	trademark.setAlign(Alignment.CENTER);

	// Prepare the website link
	String wsurl = Session.get().getInfo().getBranding().getUrl();

	String htmlUrl = "";
	if (Session.get().getInfo().getBranding().getUrl() != null && !"-".equals(Session.get().getInfo().getBranding().getUrl()))
		htmlUrl = "<div style='text-align: center;'><a href='" + wsurl + "' target='_blank'>" + wsurl
				+ "</a></div>";
	HTMLPane sitelink = new HTMLPane();
	sitelink.setContents(htmlUrl);
	sitelink.setPixelSize(300, 16);
	sitelink.setAlign(Alignment.CENTER);
	sitelink.setLayoutAlign(Alignment.CENTER);

	// Prepare the support link
	String support = Session.get().getInfo().getBranding().getSupport();
	String htmlSupp = "<div style='text-align: center;'><a href='mailto:" + support + "'>" + support + "</a></div>";
	HTMLPane maillink = new HTMLPane();
	maillink.setContents(htmlSupp);
	maillink.setPixelSize(300, 16);
	maillink.setAlign(Alignment.CENTER);
	maillink.setLayoutAlign(Alignment.CENTER);

	HTMLPane vspacer2 = new HTMLPane();
	vspacer2.setContents("<div>&nbsp;</div>");
	vspacer2.setPixelSize(100, 10);
	vspacer2.setOverflow(Overflow.HIDDEN);

	VStack content = new VStack();
	content.setWidth("100%");
	content.setMembersMargin(5);
	content.setMargin(4);
	content.setAlign(Alignment.CENTER);
	content.setDefaultLayoutAlign(Alignment.CENTER);
	content.setBackgroundColor("#ffffff");
	content.setMembers(vspacer1, logoImage, productName, version, copyright, trademark, sitelink, maillink,
			vspacer2);

	addItem(content);
}
 
Example #27
Source File: TemplateDetailsPanel.java    From document-management-software with GNU Lesser General Public License v3.0 4 votes vote down vote up
public TemplateDetailsPanel(TemplatesPanel panel) {
	super();
	this.templatesPanel = panel;

	setHeight100();
	setWidth100();
	setMembersMargin(10);

	Button saveButton = new Button(I18N.message("save"));
	saveButton.setAutoFit(true);
	saveButton.setMargin(2);
	saveButton.addClickHandler(new ClickHandler() {
		@Override
		public void onClick(ClickEvent event) {
			onSave();
		}
	});
	saveButton.setLayoutAlign(VerticalAlignment.CENTER);

	HTMLPane spacer = new HTMLPane();
	spacer.setContents("<div>&nbsp;</div>");
	spacer.setWidth("70%");
	spacer.setOverflow(Overflow.HIDDEN);

	tabSet = new EditingTabSet(new ClickHandler() {
		@Override
		public void onClick(ClickEvent event) {
			onSave();
		}
	}, new ClickHandler() {
		@Override
		public void onClick(ClickEvent event) {
			if (template.getId() != 0) {
				TemplateService.Instance.get().getTemplate(template.getId(), new AsyncCallback<GUITemplate>() {
					@Override
					public void onFailure(Throwable caught) {
						Log.serverError(caught);
					}

					@Override
					public void onSuccess(GUITemplate template) {
						setTemplate(template);
					}
				});
			} else {
				setTemplate(new GUITemplate());
			}
		}
	});
	tabSet.setTabBarPosition(Side.TOP);
	tabSet.setTabBarAlign(Side.LEFT);
	tabSet.setWidth100();
	tabSet.setHeight100();

	Tab propertiesTab = new Tab(I18N.message("properties"));
	propertiesTabPanel = new HLayout();
	propertiesTabPanel.setWidth100();
	propertiesTabPanel.setHeight100();
	propertiesTab.setPane(propertiesTabPanel);
	tabSet.addTab(propertiesTab);

	addMember(tabSet);
}
 
Example #28
Source File: MainPanel.java    From document-management-software with GNU Lesser General Public License v3.0 4 votes vote down vote up
private MainPanel() {
	setOverflow(Overflow.HIDDEN);
}
 
Example #29
Source File: AdminScreen.java    From document-management-software with GNU Lesser General Public License v3.0 4 votes vote down vote up
private AdminScreen() {
	setWidth100();
	setOverflow(Overflow.HIDDEN);
}
 
Example #30
Source File: DashboardPanel.java    From document-management-software with GNU Lesser General Public License v3.0 4 votes vote down vote up
private DashboardPanel() {
	setOverflow(Overflow.HIDDEN);
}