Examples of MenuContext


Examples of ee.quest.widget.context.MenuContext

   * Initializes menu context. To disable menu
   * context initialization, override this method
   * in subclass with empty method body.
   */
  protected void initMenuContext() {
    menuContext = new MenuContext();
  }
View Full Code Here

Examples of org.appfuse.webapp.internal.MenuContext

        if (className != null) {
            e.addClassName(className);
        }

        environment.push(MenuContext.class, new MenuContext() {
            public boolean isActive(String itemId) {
                return active != null && active.equalsIgnoreCase(itemId);
            }
        });
    }
View Full Code Here

Examples of org.geomajas.gwt.client.gfx.MenuContext

   * painted <code>FeatureTransaction</code>.
   */
  public boolean execute(Canvas target, Menu menu, MenuItem item) {
    FeatureTransaction featureTransaction = mapWidget.getMapModel().getFeatureEditor().getFeatureTransaction();
    if (featureTransaction != null) {
      MenuContext graphics = mapWidget.getMenuContext();
      coordinate = mapWidget.getMapModel().getMapView().getWorldViewTransformer().viewToWorld(
          graphics.getRightButtonCoordinate());
      String targetId = graphics.getRightButtonName();
      if (targetId != null && TransactionGeomIndexUtil.isEdge(targetId)) {
        index = TransactionGeomIndexUtil.getIndex(targetId);
        return true;
      }
    }
View Full Code Here

Examples of org.geomajas.gwt.client.gfx.MenuContext

   * painted <code>FeatureTransaction</code>.
   */
  public boolean execute(Canvas target, Menu menu, MenuItem item) {
    FeatureTransaction featureTransaction = mapWidget.getMapModel().getFeatureEditor().getFeatureTransaction();
    if (featureTransaction != null) {
      MenuContext graphics = mapWidget.getMenuContext();
      String targetId = graphics.getRightButtonName();
      if (targetId != null && TransactionGeomIndexUtil.isVertex(targetId)) {
        index = TransactionGeomIndexUtil.getIndex(targetId);
        return true;
      }
    }
View Full Code Here

Examples of org.geomajas.gwt.client.gfx.MenuContext

   * polygon's interior ring.
   */
  public boolean execute(Canvas target, Menu menu, MenuItem item) {
    FeatureTransaction featureTransaction = mapWidget.getMapModel().getFeatureEditor().getFeatureTransaction();
    if (featureTransaction != null) {
      MenuContext graphics = mapWidget.getMenuContext();
      String targetId = graphics.getRightButtonName();
      if (targetId != null && TransactionGeomIndexUtil.isInteriorRing(targetId, true)) {
        index = TransactionGeomIndexUtil.getIndex(targetId);
        return true;
      }
    }
View Full Code Here

Examples of org.geomajas.gwt.client.gfx.MenuContext

   * polygon's exterior ring.
   */
  public boolean execute(Canvas target, Menu menu, MenuItem item) {
    FeatureTransaction featureTransaction = mapWidget.getMapModel().getFeatureEditor().getFeatureTransaction();
    if (featureTransaction != null) {
      MenuContext graphics = mapWidget.getMenuContext();
      String targetId = graphics.getRightButtonName();
      if (targetId != null && TransactionGeomIndexUtil.isExteriorRing(targetId, true)) {
        index = TransactionGeomIndexUtil.getIndex(targetId);
        return true;
      }
    }
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.