Examples of addActionListener()


Examples of org.olat.core.gui.components.form.flexible.elements.IntegerElement.addActionListener()

    return ie;
  }
 
  public IntegerElement addInlineIntegerElement(String name, int initVal, FormItemContainer formLayout, FormBasicController listener){
    IntegerElement iie = new IntegerElementImpl(name, initVal, true);
    iie.addActionListener(listener, FormEvent.ONCLICK);
    if(listener != null){
      formLayout.add(iie);
    }
    return iie;
  }
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.elements.MultipleSelectionElement.addActionListener()

      Map configuration = BaseSecurityModule.getConfiguration();
      Boolean canChangePwd = (Boolean) configuration.get(BaseSecurityModule.CONFIG_USERMANAGER_CAN_MODIFY_PWD);
      if (canChangePwd.booleanValue() || isOLATAdmin) {
        checkbox = uifactory.addCheckboxesVertical("checkboxPWD", "form.name.pwd", innerFormLayout, new String[] { "changePWD" }, new String[] { "" }, null, 1);
        checkbox.select("changePWD", false);
        checkbox.addActionListener(listener, FormEvent.ONCLICK);
        formitem = uifactory.addTextElement(UserBulkChangeManager.PWD_IDENTIFYER, "password", 127, null, innerFormLayout);
        TextElement formEl = (TextElement) formitem;
        formEl.setDisplaySize(35);
        formitem.setLabel(null, null);
        targets = new HashSet<FormItem>();
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.elements.SingleSelection.addActionListener()

    // sort after the values
    ArrayHelper.sort(attrKeys, guiTranslatedAttKeys, false, true, true);
    // use this sorted keys-values
    SingleSelection attribute = uifactory.addDropdownSingleselect(PRE_ATTRIBUTE + rowCreationCounter, null, flc, attrKeys, guiTranslatedAttKeys, null);
    attribute.setUserObject(Integer.valueOf(rowPos));
    attribute.addActionListener(this, FormEvent.ONCHANGE);
    columnAttribute.add(rowPos, attribute.getName());

    // 2b) Operator selector
    String[] values = OperatorManager.getRegisteredAndAlreadyTranslatedOperatorLabels(getLocale(), operatorKeys);
    FormItem operator = uifactory.addDropdownSingleselect(PRE_OPERATOR + rowCreationCounter, null, flc, operatorKeys, values, null);
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.elements.TextElement.addActionListener()

    return ste;
  }
 
  public TextElement addInlineTextElement(String name, String value, FormItemContainer formLayout, FormBasicController listener) {
    TextElement ie = new TextElementImpl(name, value, TextElementImpl.HTML_INPUT_TYPE_TEXT, true);
    ie.addActionListener(listener, FormEvent.ONCLICK);
    if(listener != null){
      formLayout.add(ie);
    }
    return ie;
  }
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.impl.elements.FormLinkImpl.addActionListener()

      // column 6 : Boolean value => custom rendered with two images
      row.add((i % 2 == 0) ? Boolean.TRUE : Boolean.FALSE);
      // column 7: Action Link
      FormLinkImpl link = new FormLinkImpl("choose");
      link.setUserObject(Integer.valueOf(i));
      link.addActionListener(controller, FormEvent.ONCLICK);
      row.add(link);
     
      entries.add(row);
    }
  }
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.impl.elements.IntegerElementImpl.addActionListener()

    return ie;
  }
 
  public IntegerElement addInlineIntegerElement(String name, int initVal, FormItemContainer formLayout, FormBasicController listener){
    IntegerElement iie = new IntegerElementImpl(name, initVal, true);
    iie.addActionListener(listener, FormEvent.ONCLICK);
    if(listener != null){
      formLayout.add(iie);
    }
    return iie;
  }
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.impl.elements.TextElementImpl.addActionListener()

    return ste;
  }
 
  public TextElement addInlineTextElement(String name, String value, FormItemContainer formLayout, FormBasicController listener) {
    TextElement ie = new TextElementImpl(name, value, TextElementImpl.HTML_INPUT_TYPE_TEXT, true);
    ie.addActionListener(listener, FormEvent.ONCLICK);
    if(listener != null){
      formLayout.add(ie);
    }
    return ie;
  }
View Full Code Here

Examples of org.openbp.swing.components.popupfield.JSelectionField.addActionListener()

    final JSelectionField sf = new JSelectionField();
    sf.addItem(resourceCollection.getRequiredString("wizard.result.overwrite.ask"));
    sf.addItem(resourceCollection.getRequiredString("wizard.result.overwrite.merge"));
    sf.addItem(resourceCollection.getRequiredString("wizard.result.overwrite.overwrite"));
    sf.setEditable(false);
    sf.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent ae)
      {
        String sOverwriteMode = null;
        switch (sf.getSelectedIndex())
View Full Code Here

Examples of org.openswing.swing.client.SaveButton.addActionListener()

      variantsPricesPanel.initGrid(vo);
      variantsPricesPanel.revalidate();
      variantsPricesPanel.repaint();

      SaveButton saveButton = new SaveButton();
      saveButton.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          Response res = ClientUtils.getData("updateVariantsPrices",new Object[]{
             variantsPricesPanel.getVariantsMatrixVO(),
             variantsPricesPanel.getCells(),
             priceVO.getPricelistCodeSal01SAL02(),
View Full Code Here

Examples of org.pentaho.reporting.libraries.designtime.swing.EllipsisButton.addActionListener()

  {
    eventListenerList = new EventListenerList();
    this.dataAttributeContext = new DefaultDataAttributeContext();

    final EllipsisButton ellipsisButton = new EllipsisButton("...");
    ellipsisButton.addActionListener(new ExtendedEditorAction());

    expressionEditor = new SmartComboBox<ExpressionMetaData>();
    expressionEditor.setEditable(false);
    expressionEditor.setEditor(new ValuePassThroughCellEditor(expressionEditor, new ExpressionListCellRenderer()));
    expressionEditor.setRenderer(new ExpressionListCellRenderer());
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.