Examples of addActionListener()


Examples of org.apache.myfaces.tobago.component.UILink.addActionListener()

    super.setProperties(uiComponent);
    final UILink component = (UILink) uiComponent;
    final FacesContext context = FacesContext.getCurrentInstance();
    final Application application = context.getApplication();
    if (actionListener != null) {
      component.addActionListener(new javax.faces.event.MethodExpressionActionListener(actionListener));
    }
    if (accessKey != null) {
      if (!accessKey.isLiteralText()) {
        component.setValueExpression("accessKey", accessKey);
      } else {
View Full Code Here

Examples of org.apache.myfaces.tobago.component.UIMenuCommand.addActionListener()

    super.setProperties(uiComponent);
    final UIMenuCommand component = (UIMenuCommand) uiComponent;
    final FacesContext context = FacesContext.getCurrentInstance();
    final Application application = context.getApplication();
    if (actionListener != null) {
      component.addActionListener(new javax.faces.event.MethodExpressionActionListener(actionListener));
    }
    if (accessKey != null) {
      if (!accessKey.isLiteralText()) {
        component.setValueExpression("accessKey", accessKey);
      } else {
View Full Code Here

Examples of org.apache.myfaces.tobago.component.UIMenuItem.addActionListener()

    super.setProperties(uiComponent);
    final UIMenuItem component = (UIMenuItem) uiComponent;
    final FacesContext context = FacesContext.getCurrentInstance();
    final Application application = context.getApplication();
    if (actionListener != null) {
      component.addActionListener(new javax.faces.event.MethodExpressionActionListener(actionListener));
    }
    if (accessKey != null) {
      if (!accessKey.isLiteralText()) {
        component.setValueExpression("accessKey", accessKey);
      } else {
View Full Code Here

Examples of org.apache.myfaces.tobago.component.UITabGroup.addActionListener()

    super.setProperties(uiComponent);
    final UITabGroup component = (UITabGroup) uiComponent;
    final FacesContext context = FacesContext.getCurrentInstance();
    final Application application = context.getApplication();
    if (actionListener != null) {
      component.addActionListener(new javax.faces.event.MethodExpressionActionListener(actionListener));
    }
    if (markup != null) {
      if (!markup.isLiteralText()) {
        component.setValueExpression("markup", markup);
      } else {
View Full Code Here

Examples of org.apache.myfaces.tobago.component.UIToolBarCheck.addActionListener()

    super.setProperties(uiComponent);
    final UIToolBarCheck component = (UIToolBarCheck) uiComponent;
    final FacesContext context = FacesContext.getCurrentInstance();
    final Application application = context.getApplication();
    if (actionListener != null) {
      component.addActionListener(new javax.faces.event.MethodExpressionActionListener(actionListener));
    }
    if (accessKey != null) {
      if (!accessKey.isLiteralText()) {
        component.setValueExpression("accessKey", accessKey);
      } else {
View Full Code Here

Examples of org.apache.myfaces.tobago.component.UIToolBarCommand.addActionListener()

    super.setProperties(uiComponent);
    final UIToolBarCommand component = (UIToolBarCommand) uiComponent;
    final FacesContext context = FacesContext.getCurrentInstance();
    final Application application = context.getApplication();
    if (actionListener != null) {
      component.addActionListener(new javax.faces.event.MethodExpressionActionListener(actionListener));
    }
    if (markup != null) {
      if (!markup.isLiteralText()) {
        component.setValueExpression("markup", markup);
      } else {
View Full Code Here

Examples of org.apache.myfaces.tobago.component.UIToolBarSelectOne.addActionListener()

    super.setProperties(uiComponent);
    final UIToolBarSelectOne component = (UIToolBarSelectOne) uiComponent;
    final FacesContext context = FacesContext.getCurrentInstance();
    final Application application = context.getApplication();
    if (actionListener != null) {
      component.addActionListener(new javax.faces.event.MethodExpressionActionListener(actionListener));
    }
    if (immediate != null) {
      if (!immediate.isLiteralText()) {
        component.setValueExpression("immediate", immediate);
      } else {
View Full Code Here

Examples of org.apache.myfaces.tobago.component.UITreeCommand.addActionListener()

    super.setProperties(uiComponent);
    final UITreeCommand component = (UITreeCommand) uiComponent;
    final FacesContext context = FacesContext.getCurrentInstance();
    final Application application = context.getApplication();
    if (actionListener != null) {
      component.addActionListener(new javax.faces.event.MethodExpressionActionListener(actionListener));
    }
    if (markup != null) {
      if (!markup.isLiteralText()) {
        component.setValueExpression("markup", markup);
      } else {
View Full Code Here

Examples of org.apache.myfaces.tobago.internal.component.AbstractUICommand.addActionListener()

    } else {
      href = "#"; // this is to make the link "active", needed for focus, cursor, etc.
      final UIPopup popup = (UIPopup) command.getFacet(Facets.POPUP);
      if (popup != null) {
        if (!ComponentUtils.containsPopupActionListener(command)) {
          command.addActionListener(new PopupFacetActionListener());
        }
      }

      final boolean transition = ComponentUtils.getBooleanAttribute(command, Attributes.TRANSITION);
View Full Code Here

Examples of org.codinjutsu.tools.mongo.view.table.MongoDatePickerCellEditor.addActionListener()

        private static MongoDatePickerCellEditor buildDateCellEditor(final JsonTreeNode treeNode) {
            final MongoDatePickerCellEditor dateEditor = new MongoDatePickerCellEditor();

//  Note from dev: Quite ugly because when clicking on the button to open popup calendar, stopCellEdition is invoked.
//                 From that point, impossible to set the selected data in the node description
            dateEditor.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent actionEvent) {
                    treeNode.getDescriptor().setValue(dateEditor.getCellEditorValue());
                }
            });
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.