Sha256: f50f1c8ab7a9f4f32376a05ca51a794f35c687a60c7c2730b90f85b8ea947b31

Contents?: true

Size: 1.43 KB

Versions: 1

Compression:

Stored size: 1.43 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.widget;

import com.google.gwt.resources.client.ImageResource;
import com.sencha.gxt.widget.core.client.menu.MenuItem;

/**
 * Provides a "main menu" item for a start menu. A main menu item is displayed
 * in the main menu of the start menu, which is typically to the left of the
 * tool menu. In it's current implementation, a main menu item has the same
 * appearance as a menu item.
 * 
 * @see StartMainMenu
 */
public class StartMainMenuItem extends MenuItem {

  /**
   * Creates a main menu item for the start menu, with the default main menu
   * item appearance.
   */
  public StartMainMenuItem() {
  }

  /**
   * Creates a main menu item for the start menu with the default appearance and
   * the specified text.
   * 
   * @param text the main menu item text
   */
  public StartMainMenuItem(String text) {
    this();
    setText(text);
  }

  /**
   * Creates a main menu item for the start menu with the default appearance and
   * the specified text and icon.
   * 
   * @param text the item text
   * @param icon the icon
   */
  public StartMainMenuItem(String text, ImageResource icon) {
    this(text);
    setIcon(icon);
  }

  /**
   * Hides a displayed sub-menu, if any.
   */
  void hideSubMenu() {
    super.deactivate();
  }

}

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/widget/StartMainMenuItem.java