Examples of SelectionEvent


Examples of org.apache.batik.gvt.event.SelectionEvent

                }

                selectionNode = source;
                ((Selectable) source).selectAt(p.getX(), p.getY());
                dispatchSelectionEvent(
                        new SelectionEvent(null,
                                SelectionEvent.SELECTION_STARTED,
                                null));

            } else if (isSelectEndGesture(evt)) {
                if (selectionNode == source)
                    ((Selectable) source).selectTo(p.getX(), p.getY());
                Object oldSelection = getSelection();
                if (selectionNode != null) {
                    Shape newShape;
                    newShape = ((Selectable)selectionNode).getHighlightShape();
                    dispatchSelectionEvent
                        (new SelectionEvent(oldSelection,
                                            SelectionEvent.SELECTION_DONE,
                                            newShape));
                }
            } else if (isSelectContinueGesture(evt)) {

                if (selectionNode == source) {
                    boolean result = ((Selectable) source).selectTo(p.getX(),
                                                                    p.getY());
                    if (result) {
                        Shape newShape =
                            ((Selectable) selectionNode).getHighlightShape();

                        dispatchSelectionEvent(
                            new SelectionEvent(null,
                                SelectionEvent.SELECTION_CHANGED,
                                newShape));
                    }
                }
            } else if ((source instanceof Selectable) &&
                       (isSelectAllGesture(evt))) {
                if (selectionNode != source) {
                    if (selectionNode != null)
                        selectionNode.getRoot()
                            .removeTreeGraphicsNodeChangeListener(this);
                    if (source != null)
                        source.getRoot()
                            .addTreeGraphicsNodeChangeListener(this);
                }
                selectionNode = source;
                ((Selectable) source).selectAll(p.getX(), p.getY());
                Object oldSelection = getSelection();
                Shape newShape =
                    ((Selectable) source).getHighlightShape();
                dispatchSelectionEvent(
                        new SelectionEvent(oldSelection,
                                SelectionEvent.SELECTION_DONE,
                                newShape));
            }
        }
    }
View Full Code Here

Examples of org.apache.flex.forks.batik.gvt.event.SelectionEvent

    public void changeCompleted (GraphicsNodeChangeEvent gnce) {
        if (selectionNode == null) return;
        Shape newShape =
            ((Selectable)selectionNode).getHighlightShape();
        dispatchSelectionEvent
            (new SelectionEvent(getSelection(),
                                SelectionEvent.SELECTION_CHANGED,
                                newShape));
    }
View Full Code Here

Examples of org.apache.myfaces.trinidad.event.SelectionEvent

    _setDeltas(table, selectedBoxes, unselectedBoxes,
               selectionModel, selectedDelta, unselectedDelta);
    if ((selectedDelta.getSize() != 0) || (unselectedDelta.getSize() != 0))
    {
      FacesEvent event =
        new SelectionEvent(table, unselectedDelta, selectedDelta);
      event.queue();
    }
    table.setRowKey(oldKey);
  }
View Full Code Here

Examples of org.apache.myfaces.trinidad.event.SelectionEvent

          state.clear();
          state.add();
          // clone, so that subsequent mutations of "state" will
          // not affect the parameters of this event: bug 4733858:
          RowKeySet selected = state.clone();
          FacesEvent event = new SelectionEvent(table, unselected, selected);
          event.queue();
        }
      }
    }
    finally
    {
View Full Code Here

Examples of org.apache.myfaces.trinidad.event.SelectionEvent

    _setDeltas(table, selectedBoxes, unselectedBoxes,
               selectionModel, selectedDelta, unselectedDelta);
    if ((selectedDelta.getSize() != 0) || (unselectedDelta.getSize() != 0))
    {
      FacesEvent event =
        new SelectionEvent(table, unselectedDelta, selectedDelta);
      event.queue();
    }
    table.setRowKey(oldKey);
  }
View Full Code Here

Examples of org.apache.myfaces.trinidad.event.SelectionEvent

          state.clear();
          state.add();
          // clone, so that subsequent mutations of "state" will
          // not affect the parameters of this event: bug 4733858:
          RowKeySet selected = state.clone();
          FacesEvent event = new SelectionEvent(table, unselected, selected);
          event.queue();
        }
      }
    }
    finally
    {
View Full Code Here

Examples of org.apache.xalan.xslt.trace.SelectionEvent

    super.execute(processor, sourceTree, sourceNode, mode);
    XObject value = m_selectPattern.execute(processor.getExecContext(), sourceNode, this);
   
    if(null != m_stylesheet.m_stylesheetRoot.m_traceListeners)
    {
      m_stylesheet.m_stylesheetRoot.fireSelectedEvent(new SelectionEvent(processor,
                                                                         sourceNode,
                                                                         this,
                                                                         "select",
                                                                         m_selectPattern,
                                                                         value));
View Full Code Here

Examples of org.apache.xalan.xslt.trace.SelectionEvent

    {
      var = m_selectPattern.execute(processor.getExecContext(),
                                    sourceNode, this);
      if(null != m_stylesheet.m_stylesheetRoot.m_traceListeners)
      {
        m_stylesheet.m_stylesheetRoot.fireSelectedEvent(new SelectionEvent(processor,
                                                                           sourceNode,
                                                                           this,
                                                                           "select",
                                                                           m_selectPattern,
                                                                           var));
View Full Code Here

Examples of org.apache.xalan.xslt.trace.SelectionEvent

        // must be xsl:when
        XPathSupport execContext = processor.getXMLProcessorLiaison();
        XObject test = when.m_test.execute(execContext, sourceNode, this);
        if(null != m_stylesheet.m_stylesheetRoot.m_traceListeners)
        {
          m_stylesheet.m_stylesheetRoot.fireSelectedEvent(new SelectionEvent(processor,
                                                                             sourceNode,
                                                                             when,
                                                                             "test",
                                                                             when.m_test,
                                                                             test));
View Full Code Here

Examples of org.apache.xalan.xslt.trace.SelectionEvent

    XPathSupport execContext = processor.getXMLProcessorLiaison();
    XObject value = m_selectPattern.execute(execContext, sourceNode, this);
   
    if(null != m_stylesheet.m_stylesheetRoot.m_traceListeners)
    {
      m_stylesheet.m_stylesheetRoot.fireSelectedEvent(new SelectionEvent(processor,
                                                                         sourceNode,
                                                                         this,
                                                                         "select",
                                                                         m_selectPattern,
                                                                         value));
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.