Sha256: 440cfb622b5ba6891ee6a36d8052822ff16dbd2ebe19d59ec44491c3264848f6

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 KB

Contents

/**
 * Sencha GXT 3.1.1 - Sencha for GWT
 * Copyright(c) 2007-2014, Sencha, Inc.
 * licensing@sencha.com
 *
 * http://www.sencha.com/products/gxt/license/
 */
package com.dldinternet.aws.cfn.stacker.desktop.client.layout;

import com.google.gwt.dom.client.Element;
import com.sencha.gxt.widget.core.client.Window;

public interface DesktopLayout {

  public enum RequestType {
    OPEN, HIDE, SHOW, LAYOUT
  }

  static final int PREFERRED_WIDTH = 400;
  static final int PREFERRED_HEIGHT = 400;
  static final int PREFERRED_MAX_WIDTH_PCT = 75;
  static final int PREFERRED_MAX_HEIGHT_PCT = 75;

  DesktopLayoutType getDesktopLayoutType();

  /**
   * Requests a layout of the desktop as indicated by the specified values.
   * 
   * @param requestWindow the window that was responsible for the request, or
   *          null if the request is not window specific
   * @param requestType the type of layout request
   * @param element the desktop element to be used for positioning
   * @param windows a list of all windows on the desktop
   * @param width the desktop width
   * @param height the desktop height
   */
  void layoutDesktop(Window requestWindow, RequestType requestType, Element element, Iterable<Window> windows,
                     int width, int height);

}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aws-cfn-stacker-0.0.6 ui/src/com/dldinternet/aws/cfn/stacker/desktop/client/layout/DesktopLayout.java