Examples of deselect()


Examples of ae.java.awt.peer.ListPeer.deselect()

     */
    public synchronized void deselect(int index) {
        ListPeer peer = (ListPeer)this.peer;
        if (peer != null) {
            if (isMultipleMode() || (getSelectedIndex() == index)) {
                peer.deselect(index);
            }
        }

        for (int i = 0 ; i < selected.length ; i++) {
            if (selected[i] == index) {
View Full Code Here

Examples of com.bbn.openmap.dataAccess.shape.EsriGraphicList.deselect()

                ret = true;
            } else {
                if (lsm == null)
                    getTable();
                lsm.clearSelection();
                list.deselect();
                selectedGraphics.clear();
                repaint();
            }
        }
        return ret;
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMGraphic.deselect()

                    Debug.message("link", "LinkLayer: selecting graphic");
                    reactionGraphic.select();
                } else if (LinkUtil.isMask(gu.action,
                        MODIFY_DESELECT_GRAPHIC_MASK)) {
                    Debug.message("link", "LinkLayer: deselecting graphic");
                    reactionGraphic.deselect();
                }

                // Now, raising or lowering the graphic...
                if (LinkUtil.isMask(gu.action, MODIFY_RAISE_GRAPHIC_MASK)) {
                    Debug.message("link", "LinkLayer: raising graphic");
View Full Code Here

Examples of com.cburch.logisim.tools.Tool.deselect()

  public void setTool(Tool value) {
    if (tool == value) return;
    Tool old = tool;
    Canvas canvas = frame.getCanvas();
    if (old != null) old.deselect(canvas);
    Selection selection = canvas.getSelection();
    if (selection != null && !selection.isEmpty()) {
      Circuit circuit = canvas.getCircuit();
      CircuitMutation xn = new CircuitMutation(circuit);
      if (value == null) {
View Full Code Here

Examples of com.cburch.logisim.tools.Tool.deselect()

        }

        Tool old = tool;
        Canvas canvas = frame.getCanvas();
        if (old != null) {
            old.deselect(canvas);
        }

        Selection selection = canvas.getSelection();
        if (selection != null && !selection.isEmpty()) {
            if (value == null || !getOptions().getMouseMappings().containsSelectTool()) {
View Full Code Here

Examples of com.google.collide.client.editor.selection.SelectionModel.deselect()

      /*
       * TODO: the cursor will be the last line in the viewport,
       * fix this
       */
      SelectionModel selectionModel = getSelection();
      selectionModel.deselect();
      selectionModel.setCursorPosition(lineInfo, column);
    }
  }

  public void cleanup() {
View Full Code Here

Examples of com.google.collide.client.editor.selection.SelectionModel.deselect()

        getInputController().prepareForCopy();
        Position[] selectionRange = selectionModel.getSelectionRange(true);
        clipboard =
            LineUtils.getText(selectionRange[0].getLine(), selectionRange[0].getColumn(),
                selectionRange[1].getLine(), selectionRange[1].getColumn());
        selectionModel.deselect();
        switchMode(Modes.COMMAND);
        return false;
      }
    });
View Full Code Here

Examples of com.google.collide.client.editor.selection.SelectionModel.deselect()

    });
  }

  private void startNewLine(Editor editor) {
    SelectionModel selection = editor.getSelection();
    selection.deselect();
    Line line = selection.getCursorLine();
    int lineNumber = selection.getCursorLineNumber();
    int lastCursorColumn = LineUtils.getLastCursorColumn(line);
    selection.setCursorPosition(new LineInfo(line, lineNumber), lastCursorColumn);
    editor.getEditorDocumentMutator().insertText(line, lineNumber, lastCursorColumn, "\n");
View Full Code Here

Examples of java.awt.List.deselect()

                        } //else ignore
                    } else //not selected
                    if (l.isIndexSelected(i))
                    {
                        event = -1;
                        l.deselect(i);
                        _logger.finest("made " + i + " deselected " + l.isIndexSelected(i));
                    }
                }
                //the firing of event could be random
                //when there's no listener to this list component
View Full Code Here

Examples of java.awt.peer.ListPeer.deselect()

     * @see          #isIndexSelected
     */
    public synchronized void deselect(int index) {
  ListPeer peer = (ListPeer)this.peer;
  if (peer != null) {
      peer.deselect(index);
  }

  for (int i = 0 ; i < selected.length ; i++) {
      if (selected[i] == index) {
    int newsel[] = new int[selected.length - 1];
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.