Package com.google.collide.client.ui.dropdown.DropdownController

Examples of com.google.collide.client.ui.dropdown.DropdownController.DropdownPositionerBuilder


              return;
            }
            item.onClicked(null);
          }
        };
    Positioner positioner = new DropdownPositionerBuilder().setHorizontalAlign(
        HorizontalAlign.RIGHT).buildAnchorPositioner(anchorElement);
    buttonDropdownController = new DropdownController.Builder<FileTreeMenuItem>(positioner,
        anchorElement, appContext.getResources(), listener, renderer).setShouldAutoFocusOnOpen(true)
        .build();
    buttonDropdownController.setItems(rootMenuItems);
View Full Code Here


            }
            item.onClicked(selectedNode);
          }
        };

    Positioner positioner = new DropdownPositionerBuilder().setHorizontalAlign(
        HorizontalAlign.RIGHT).buildMousePositioner();
    contextDropdownController = new DropdownController.Builder<FileTreeMenuItem>(
        positioner, null, res, listener, renderer).setShouldAutoFocusOnOpen(true).build();
    contextDropdownController.setItems(rootMenuItems);
  }
View Full Code Here

          folderNameElement.setTextContent(" - " + itemData.getPathComponent(size - 2));
        }
      }
    };

    Positioner positioner = new DropdownPositionerBuilder().buildAnchorPositioner(
        getView().runAlwaysDropdown.getInput());
    DropdownController<PathUtil> autocompleteDropdown = new DropdownController.Builder<PathUtil>(
        positioner, null, getView().res, clickListener, itemRenderer).setInputTargetElement(
        getView().runAlwaysDropdown.getInput())
        .setShouldAutoFocusOnOpen(false).setKeyboardSelectionEnabled(true).build();
View Full Code Here

          public void onItemClicked(TreeNodeMenuItem item) {
            item.onClicked(selectedNode);
          }
        };

    Positioner mousePositioner = new DropdownPositionerBuilder().setHorizontalAlign(
        HorizontalAlign.RIGHT).buildMousePositioner();
    contextDropdownController = new DropdownController.Builder<TreeNodeMenuItem>(
        mousePositioner, null, res, listener, renderer).setShouldAutoFocusOnOpen(true).build();
  }
View Full Code Here

              return;
            }
            item.onClicked(null);
          }
        };
    Positioner positioner = new DropdownPositionerBuilder().setHorizontalAlign(
        HorizontalAlign.RIGHT).buildAnchorPositioner(anchorElement);
    buttonDropdownController = new DropdownController.Builder<FileTreeMenuItem>(positioner,
        anchorElement, controller.getResources(), listener, renderer).setShouldAutoFocusOnOpen(true)
        .build();
    buttonDropdownController.setItems(rootMenuItems);
View Full Code Here

            }
            item.onClicked(selectedNode);
          }
        };

    Positioner positioner = new DropdownPositionerBuilder().setHorizontalAlign(
        HorizontalAlign.RIGHT).buildMousePositioner();
    contextDropdownController = new DropdownController.Builder<FileTreeMenuItem>(
        positioner, null, res, listener, renderer).setShouldAutoFocusOnOpen(true).build();
    contextDropdownController.setItems(rootMenuItems);
  }
View Full Code Here

TOP

Related Classes of com.google.collide.client.ui.dropdown.DropdownController.DropdownPositionerBuilder

Copyright © 2018 www.massapicom. 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.