Examples of ChoicePeer


Examples of ae.java.awt.peer.ChoicePeer

        if (item == null) {
            throw new
                NullPointerException("cannot add null item to Choice");
        }
        pItems.insertElementAt(item, index);
        ChoicePeer peer = (ChoicePeer)this.peer;
        if (peer != null) {
            peer.addItem(item, index);
        }
        // no selection or selection shifted up
        if (selectedIndex < 0 || selectedIndex >= index) {
            select(0);
        }
View Full Code Here

Examples of ae.java.awt.peer.ChoicePeer

     * own synchronization before invoking this method.
     * @param      position   the position of the item
     */
    private void removeNoInvalidate(int position) {
        pItems.removeElementAt(position);
        ChoicePeer peer = (ChoicePeer)this.peer;
        if (peer != null) {
            peer.remove(position);
        }
        /* Adjust selectedIndex if selected item was removed. */
        if (pItems.size() == 0) {
            selectedIndex = -1;
        } else if (selectedIndex == position) {
View Full Code Here

Examples of ae.java.awt.peer.ChoicePeer

        if ((pos >= pItems.size()) || (pos < 0)) {
            throw new IllegalArgumentException("illegal Choice item position: " + pos);
        }
        if (pItems.size() > 0) {
            selectedIndex = pos;
            ChoicePeer peer = (ChoicePeer)this.peer;
            if (peer != null) {
                peer.select(pos);
            }
        }
    }
View Full Code Here

Examples of java.awt.peer.ChoicePeer

        if (item == null) {
      throw new
          NullPointerException("cannot add null item to Choice");
  }
  pItems.insertElementAt(item, index);
  ChoicePeer peer = (ChoicePeer)this.peer;
  if (peer != null) {
      peer.addItem(item, index);
  }
  // no selection or selection shifted up
  if (selectedIndex < 0 || selectedIndex >= index) {
      select(0);
  }
View Full Code Here

Examples of java.awt.peer.ChoicePeer

     * own synchronization before invoking this method.
     * @param      position   the position of the item
     */
    private void removeNoInvalidate(int position) {
        pItems.removeElementAt(position);
  ChoicePeer peer = (ChoicePeer)this.peer;
  if (peer != null) {
      peer.remove(position);
  }
  /* Adjust selectedIndex if selected item was removed. */
  if (pItems.size() == 0) {
      selectedIndex = -1;
  } else if (selectedIndex == position) {
View Full Code Here

Examples of java.awt.peer.ChoicePeer

  if ((pos >= pItems.size()) || (pos < 0)) {
      throw new IllegalArgumentException("illegal Choice item position: " + pos);
  }
  if (pItems.size() > 0) {
      selectedIndex = pos;
      ChoicePeer peer = (ChoicePeer)this.peer;
      if (peer != null) {
    peer.select(pos);
      }
  }
    }
View Full Code Here

Examples of java.awt.peer.ChoicePeer

     * own synchronization before invoking this method.
     * @param      position   the position of the item
     */
    private void removeNoInvalidate(int position) {
        pItems.removeElementAt(position);
        ChoicePeer peer = (ChoicePeer)this.peer;
        if (peer != null) {
            peer.remove(position);
        }
        /* Adjust selectedIndex if selected item was removed. */
        if (pItems.size() == 0) {
            selectedIndex = -1;
        } else if (selectedIndex == position) {
View Full Code Here

Examples of java.awt.peer.ChoicePeer

        if ((pos >= pItems.size()) || (pos < 0)) {
            throw new IllegalArgumentException("illegal Choice item position: " + pos);
        }
        if (pItems.size() > 0) {
            selectedIndex = pos;
            ChoicePeer peer = (ChoicePeer)this.peer;
            if (peer != null) {
                peer.select(pos);
            }
        }
    }
View Full Code Here

Examples of java.awt.peer.ChoicePeer

        if (item == null) {
            throw new
                NullPointerException("cannot add null item to Choice");
        }
        pItems.insertElementAt(item, index);
        ChoicePeer peer = (ChoicePeer)this.peer;
        if (peer != null) {
            peer.add(item, index);
        }
        // no selection or selection shifted up
        if (selectedIndex < 0 || selectedIndex >= index) {
            select(0);
        }
View Full Code Here

Examples of java.awt.peer.ChoicePeer

     * own synchronization before invoking this method.
     * @param      position   the position of the item
     */
    private void removeNoInvalidate(int position) {
        pItems.removeElementAt(position);
        ChoicePeer peer = (ChoicePeer)this.peer;
        if (peer != null) {
            peer.remove(position);
        }
        /* Adjust selectedIndex if selected item was removed. */
        if (pItems.size() == 0) {
            selectedIndex = -1;
        } else if (selectedIndex == position) {
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.