Package com.extjs.gxt.ui.client.event

Examples of com.extjs.gxt.ui.client.event.Listener


   * Accion que realizar� por defecto al seleccionar un registro de la grilla
   */
  public void defaultActionOnSelectItem(){
    // Acciones a realizar cuando selecciona algun registro de la grilla
    getSelectionModel().addListener(Events.SelectionChange,
        new Listener() {
          @Override
          public void handleEvent(BaseEvent be) {
            List seleccionados = getSelectionModel().getSelection();
            itemDelete.setEnabled(((seleccionados!=null) && (!seleccionados.isEmpty())));
            seleccionable.onSelect(seleccionados);
View Full Code Here


   * Accion que realizar� por defecto al seleccionar un registro de la grilla de Tareas
   */
  public void defaultActionOnSelectItemTask(){
    // Acciones a realizar cuando selecciona algun registro de la grilla
    getSelectionModel().addListener(Events.SelectionChange,
        new Listener() {
      @Override
      public void handleEvent(BaseEvent be) {
        List seleccionados = getSelectionModel().getSelection();
        itemDelete.setEnabled(((seleccionados!=null) && (!seleccionados.isEmpty())));
        itemModify.setEnabled(((seleccionados!=null) && (!seleccionados.isEmpty()) && (seleccionados.size()==1)));
View Full Code Here

   * Accion que realizar� por defecto al seleccionar un registro de la grilla de Objetivos
   */
  public void defaultActionOnSelectItemObjective(){
    // Acciones a realizar cuando selecciona algun registro de la grilla
    getSelectionModel().addListener(Events.SelectionChange,
        new Listener() {
      @Override
      public void handleEvent(BaseEvent be) {
        List seleccionados = getSelectionModel().getSelection();
        if (Context.getInstance().isAvaiable(PermissionsConst.OBJETIVOS)){
          itemDelete.setEnabled(((seleccionados!=null) && (!seleccionados.isEmpty())));
View Full Code Here

    setSize(380, 330);
    add(treeGrid);
   
    // Acciones a realizar cuando selecciona algun registro de la grilla
    treeGrid.getSelectionModel().addListener(Events.SelectionChange,
        new Listener() {
          @SuppressWarnings("deprecation")
          @Override
          public void handleEvent(BaseEvent be) {
            List seleccionados = treeGrid.getSelectionModel().getSelection();
            if (seleccionados.size() == 1) {
View Full Code Here

    dimRepository.setScrollMode(Scroll.AUTOY);
    dimRepository.setLayout(new RowLayout(Orientation.VERTICAL));
    dimRepository.setHeight("100%");
    dimRepository.setData("layout_region", LayoutRegion.WEST);
    dimRepository.sinkEvents(Events.BeforeExpand);
    dimRepository.addListener(Events.BeforeExpand, new Listener(){
      public void handleEvent(BaseEvent be) {
        if (writeRight != 1) {
          be.doit = false;
        }
      }
View Full Code Here

    sortInfo.setSortField(field);
    sortInfo.setSortDir(sortDir);

    if (loader != null && loader.isRemoteSort()) {
      Listener l = new Listener() {
        public void handleEvent(BaseEvent be) {
          loader.removeListener(Sort, this);
          fireEvent(Sort, createStoreEvent());
        }
      };
View Full Code Here

        Long d1 = (Long) w1.getData("date");
        Long d2 = (Long) w2.getData("date");
        return d1 == null || d1 < d2 ? -1 : 1;
      }
    };
    listener = new Listener() {
      public void handleEvent(BaseEvent be) {
        activateLast();
      }
    };
  }
View Full Code Here

  public void init(final Table table) {
    this.table = table;
    this.cm = table.getColumnModel();

    Listener l = new Listener<TableEvent>() {

      public void handleEvent(TableEvent be) {
        switch (be.type) {
          case Events.HeaderChange: {
            TableColumn c = cm.getColumn(be.columnIndex);
View Full Code Here

    }

    super.onRender(target, index);

    if (autoValidate) {
      validationTask = new DelayedTask(new Listener() {
        public void handleEvent(BaseEvent be) {
          validate();
        }
      });
    }
View Full Code Here

      final BorderLayoutData data) {
    SplitBar bar = (SplitBar) component.getData("splitBar");
    if (bar == null || bar.getResizeWidget() != component) {
      bar = createSplitBar(region, component);
      final SplitBar fBar = bar;
      Listener splitBarListener = new Listener<ComponentEvent>() {
        public void handleEvent(ComponentEvent ce) {
          boolean side = region == LayoutRegion.WEST || region == LayoutRegion.EAST;
          int size = side ? component.getOffsetWidth() : component.getOffsetHeight();
          int centerSize = side ? lastCenter.width : lastCenter.height;
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.event.Listener

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.