Examples of WindowPanel


Examples of org.gwt.mosaic.ui.client.WindowPanel

   /**
   * The 'layout' window panel.
   */
  private void createLayoutWindowPanel(String title, SearchDefinitionView view) {
    window = new WindowPanel(title);
    window.setAnimationEnabled(true);
    window.setSize("250px", "160px");

    window.setWidget(view);

View Full Code Here

Examples of org.gwt.mosaic.ui.client.WindowPanel

  /**
   * The 'layout' window panel.
   */
  private void createLayoutWindowPanel() {
    window = new WindowPanel(config.getProfileName());
    window.setAnimationEnabled(true);
    window.setSize("320px", "180px");

    LayoutPanel panel = new LayoutPanel();

View Full Code Here

Examples of org.gwt.mosaic.ui.client.WindowPanel

    public void execute() {
        this.bus.fireEvent(new GetFormRepresentationEvent(this.saveType));
    }

    protected void refreshPopup(String url) {
        WindowPanel window = UIUtils.createWindow("Preview as " + this.saveType);
        window.getDesktopPanel().addStyleName("formDisplay");
        Frame content = new Frame(url);
        window.setWidget(content);
        int height = RootPanel.getBodyElement().getClientHeight();
        int width = RootPanel.getBodyElement().getClientWidth();
        int left = RootPanel.getBodyElement().getAbsoluteLeft();
        int top = RootPanel.getBodyElement().getAbsoluteTop();
        content.setPixelSize(width - 200, height - 200);
        window.showModal();
        window.setPopupPosition(left + 100, top + 100);
        window.setPixelSize(width - 200, height - 200);
    }
View Full Code Here

Examples of org.gwt.mosaic.ui.client.WindowPanel

import org.gwt.mosaic.ui.client.WindowPanel;

public class UIUtils {

    public static WindowPanel createWindow(String title) {
        return new WindowPanel(new DesktopPanel() {
            @Override
            public void makeDraggable(WindowPanel w) {
                //do nothing to avoid gwt-dnd issue 43
            }
        }, title, false, true);
View Full Code Here

Examples of org.gwt.mosaic.ui.client.WindowPanel

    userNameInput.setFocus(true);
  }

  private void createLayoutWindowPanel() {
    windowPanel = new WindowPanel("Authentication required");
    Widget closeBtn = windowPanel.getHeader().getWidget(0, Caption.CaptionRegion.RIGHT);
    closeBtn.setVisible(false);
    windowPanel.setAnimationEnabled(false);
    LayoutPanel panel = new LayoutPanel();
    //panel.addStyleName("WSLogin");
View Full Code Here

Examples of org.thechiselgroup.choosel.dnd.client.windows.WindowPanel

            DefaultResourceSetCollector persistanceManager) {

        List<WindowPanel> windows = desktop.getWindows();
        List<WindowDTO> windowDTOs = new ArrayList<WindowDTO>();
        for (int i = 0; i < windows.size(); i++) {
            WindowPanel window = windows.get(i);
            WindowContent windowContent = window.getViewContent();

            if (!(windowContent instanceof Persistable)) {
                continue;
            }
View Full Code Here

Examples of org.thechiselgroup.choosel.dnd.client.windows.WindowPanel

        shade.addClassName(CSS_SHADE_CLASS);

        CSS.setZIndex(shade, CSS_SHADE_Z_INDEX);

        WindowPanel window = getWindow(dropTarget);
        CSS.setAbsoluteBounds(shade,
                dropTarget.getAbsoluteLeft() - window.getAbsoluteLeft(),
                dropTarget.getAbsoluteTop() - window.getAbsoluteTop(),
                dropTarget.getOffsetWidth(), dropTarget.getOffsetHeight());

        return shade;
    }
View Full Code Here

Examples of org.thechiselgroup.choosel.dnd.client.windows.WindowPanel

    private List<Area> getDropTargetAreas() {
        List<Area> areas = new ArrayList<Area>();
        for (ResourceSetAvatarDropController dropController : getAvailableDropControllers()) {
            Widget dropTarget = dropController.getDropTarget();
            Rectangle rectangle = Rectangle.fromWidget(dropTarget);
            WindowPanel window = getWindow(dropTarget);

            areas.add(new Area(rectangle, window, dropController));
        }
        return areas;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.