Add an action.

@param element The action type.
@param value The action value.
326282
public void addAction(M element, boolean value)
    {
        actions.put(element, Boolean.valueOf(value));
    }
554121
public void set(Element element) {
        if (element == null) {
            throw new NullPointerException("element == null");
        }

        CstString pairName = new CstString(element.getName());
        Constant pairValue = Element.toConstant(element.getValue());
        NameValuePair nameValuePair = new NameValuePair(pairName, pairValue);
        elements.put(element.getName(), nameValuePair);
    }
953828
public void addValue(String value) {
		contents.add(value);
		if (value.trim().length() > 0) {
			if (contents.size() == 1) {
				containsSingleString = true;
			} else {
				containsSingleString = false;
				containsMarkupText = true;
			}
		}
	}
969868
public void actionPerformed(ActionEvent e) {
		JButton button = (JButton) e.getSource();
		String buttonText = button.getText();
		int day = new Integer(buttonText).intValue();
		setDay(day);
	}
771712
public void addActionOutput( String paramName, Object value )
    {
        if ( paramName == null || paramName.length() == 0 )
        {
            throw new IllegalArgumentException( "An action output name may not be null or empty." );
        }
        
        if ( _actionOutputs == null )
        {
            _actionOutputs = new HashMap();
        }
        
        //
        // Throw an exception if this is a redirect, and if there was an action output.  Action outputs are carried
        // in the request, and will be lost on redirects.
        //
        if ( _init && getRedirect() )
        {
            String actionPath = _mappingPath != null ? _mappingPath : "";
            String descrip = getName() != null ? getName() : getPath();
            PageFlowException ex = new IllegalActionOutputException( descrip, actionPath, _flowController, paramName );
            InternalUtils.throwPageFlowException( ex );
        }
        
        _actionOutputs.put( paramName, value );
    }
602503
public void add(T value) {
        Element<T> e = new Element<T>(value);
        queue.offer(e);
    }
1074388
public synchronized void addElement(@NonNull T element) {
        hashCached = false;
        this.elementsMap.put(element.getLabel(), element);
        this.elements.add(element);
    }
306351
synchronized public void set(Element value) {
    int bind = ((int)value.getIndex() & Integer.MAX_VALUE) % buckets.length;
    Element[] bucket = buckets[bind];
    int count = counts[bind];
    if (bucket == null)
      buckets[bind] = bucket = new Element[initBucketSize];
    else if (bucket.length == count) {
      bucket = new Element[count * 2];
      System.arraycopy(buckets[bind], 0, bucket, 0, count);
      buckets[bind] = bucket;
    }
    bucket[count] = value;
    counts[bind] = count + 1;
    totalSize += 1;
  }
491975
public void addAction(M element, short value)
    {
        actions.put(element, Short.valueOf(value));
    }
341825
public void add(double element) {
	// overridden for performance only.  
	if (size == elements.length) ensureCapacity(size + 1); 
	elements[size++] = element;
}
1149355
public static void add(Element element) {
        AssertUtils.assertNotNull(element);

        ProcessedInput processedInput = null;
        Overrider overrider = new Overrider(defaultOverride);

        overrider.override(XmlParameters.operationType, element.getTagName());

        if (element.hasAttribute(XmlParameters.outputHandler) == true) {
            overrider.override(XmlParameters.outputHandler, element.getAttribute(XmlParameters.outputHandler));
        }

        if (element.hasAttribute(XmlParameters.controlParamCount) == true) {
            overrider.override(XmlParameters.controlParamCount, Boolean.valueOf(element.getAttribute(XmlParameters.controlParamCount)));
        }

        if (element.hasAttribute(XmlParameters.generateKeys) == true) {
            overrider.override(XmlParameters.generateKeys, element.getAttribute(XmlParameters.generateKeys));
        }

        if (element.hasAttribute(XmlParameters.generateKeysColumns) == true) {
            overrider.override(XmlParameters.generateKeysColumns, element.getAttribute(XmlParameters.generateKeysColumns).split(","));
        }

        String name = element.getAttribute("id");
        String encodedQuery = element.getTextContent();

        xmlQueryString.put(name, encodedQuery);
        xmlOverrideMap.put(name, overrider);
    }
309398
public static void addNewActionType( final Map<Integer, ActionType> actionTypeMap,
                                         final String value,
                                         final int column,
                                         final int row ) {
        final String ucValue = value.toUpperCase();

        Code code = tag2code.get( ucValue );
        if ( code == null ) {
            code = tag2code.get( ucValue.substring( 0, 1 ) );
        }
        if ( code != null ) {

            int count = 0;
            for ( ActionType at : actionTypeMap.values() ) {
                if ( at.getCode() == code ) {
                    count++;
                }
            }
            if ( count >= code.getMaxCount() ) {
                throw new DecisionTableParseException( "Maximum number of " +
                                                               code.getColHeader() + "/" + code.getColShort() + " columns is " +
                                                               code.getMaxCount() + ", in cell " + RuleSheetParserUtil.rc2name( row, column ) );
            }
            actionTypeMap.put( new Integer( column ), new ActionType( code ) );
        } else {
            throw new DecisionTableParseException(
                    "Invalid column header: " + value + ", should be CONDITION, ACTION or attribute, " +
                            "in cell " + RuleSheetParserUtil.rc2name( row, column ) );
        }
    }
130927
public void selectByValue(String value) {
        getDispatcher().beforeSelect(this, value);
        
        new Select(getElement()).selectByValue(value);
        if (Config.getBoolConfigProperty(ConfigProperty.ENABLE_GUI_LOGGING)) {
            logUIActions(UIActions.SELECTED, value);
        }
        
        getDispatcher().afterSelect(this, value);
    }
1342775
public void type(String value) {
        getDispatcher().beforeType(this, value);
        
        RemoteWebElement element = getElement();
        element.clear();
        element.sendKeys(value);
        if (Config.getBoolConfigProperty(ConfigProperty.ENABLE_GUI_LOGGING)) {
            logUIActions(UIActions.ENTERED, value);
        }
        
        getDispatcher().afterType(this, value);
    }
956040
public void add(T value) {
        Element<T> element = new Element<T>(bundle, value);
        element.previous = tail;
        if (tail != null) tail.next = element;
        tail = element;
        if (head == null) head = element;
    }
739984
public void insertInOrder(int value)
  {

    for (int i = 0; i < m_firstFree; i++)
    {
      if (value < m_map[i])
      {
        insertElementAt(value, i);

        return;
      }
    }

    addElement(value);
  }
48019
private void addElement(String value) {
        if (null == value) {
            return;
        }
        this.num_items++;
        this.genericValues.add(value);
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
            Tr.debug(tc, "addElement: " + value + " num: " + this.num_items);
        }
    }