Examples of EventType


Examples of com.netflix.simianarmy.EventType

    }

    @Test
    public void test() {
        MonkeyType monkeyType = Types.MONKEY;
        EventType eventType = EventTypes.EVENT;
        BasicRecorderEvent evt = new BasicRecorderEvent(monkeyType, eventType, "region", "test-id");
        testEvent(evt);

        // CHECKSTYLE IGNORE MagicNumberCheck
        long time = 1330538400000L;
View Full Code Here

Examples of com.poker.ui.settings.rooms.events.EventType

               
                if (this.pControl.isNewTableNeeds(this.pData) ) {
                    // openWindows     
                    if (this.pData.getWaitingWindowList().size() == 0 ) {
                        this.pControl.activateWindow(this.pData.getMainWnd());
                        EventType ev = this.pControl.getMainWindowEvent(this.pData, this.pControl);
                        if (ev != null) {
                        //    System.out.println(ev);
                            this.pControl.activateWindow(this.pData.getMainWnd());
                            this.pControl.react(this.pData, this.pData.getMainWnd(),
                                    new AnalystResult(UIReaction.UIR_MN_CLOSE_SYSTEM_WINDOW, null));
View Full Code Here

Examples of com.volantis.mcs.protocols.menu.model.EventType

     * This method tests the get, set and remove event handler methods
     */
    public void testEventHandler() {
        ConcreteMenu item = MenuModelHelper.createMenu(false, testTitle);

        EventType blur = EventType.ON_BLUR;
        EventType click = EventType.ON_CLICK;
        EventType mouse = EventType.ON_MOUSE_OVER;
        EventType focus = EventType.ON_FOCUS;

        ScriptAssetReference handlerOne =
                new LiteralScriptAssetReference("Handle blurrred things");
        ScriptAssetReference handlerTwo =
                new LiteralScriptAssetReference("Handle clicked things");
View Full Code Here

Examples of domain.EventType

      RepetitionType repetitionTypeObject = (RepetitionType) databaseSession.createCriteria(RepetitionType.class)
                                            .add(Restrictions.eq("id", this.repetitionType))
                                            .uniqueResult();
     
      EventType eventTypeObject = (EventType) databaseSession.createCriteria(EventType.class)
                                  .add(Restrictions.eq("id", this.eventType))
                                  .uniqueResult();
      Date fromDate = DateOperator.stringToDate(this.from);
      Date toDate = DateOperator.stringToDate(this.to);
   
      if( (null == fromDate) || (null == toDate) ) {
        throw new IllegalArgumentException("Date has wrong format");
      }
      if( !DateOperator.date1IsBeforeDate2(fromDate, toDate) ) {
        throw new IllegalArgumentException("From date should be before to date");
      }
      if( !DateOperator.isRepetitionPossible(fromDate, toDate, repetitionTypeObject) ) {
        return new Response(ResponseStatus.FAIL, "Repetition is not possible. Make sure there is a sense in the repetition type you choose");
      }
     
      User oldOwner = (User) databaseSession.get(User.class, this.oldOwner);

      if (oldOwner == null) {
        throw new IllegalArgumentException("Couldn't locate old owner of the event");
      }
     
      EventType oldEventType = (EventType) databaseSession.get(EventType.class, this.oldEventType);
     
      if (oldEventType == null) {
        throw new IllegalArgumentException("Couldn't locate old type of the event");
      }
     
View Full Code Here

Examples of edu.indiana.extreme.xbaya.monitor.MonitorUtil.EventType

            logger.warning("Failed to process notification: " + message, e);
        }
    }
 
  private void handleEvent(MonitorEvent event, boolean forward, Graph graph) {
    EventType type = event.getType();
    String nodeID = event.getNodeID();
    Node node = graph.getNode(nodeID);
   
    System.out.println(nodeID);
View Full Code Here

Examples of edu.wpi.cs.wpisuitetng.modules.defecttracker.models.DefectEvent.EventType

    // we need to switch on the type field to figure out the concrete class to instantiate
    JsonObject object = element.getAsJsonObject();
    if(!object.has("type")) {
      throw new JsonParseException("DefectEvent does not have type information");
    }
    EventType eType = context.deserialize(object.get("type"), EventType.class);
    if(eType != null) { // type could be any garbage string, eType null if not in enum
      switch(eType) {
      case CHANGESET:
        return context.deserialize(element, DefectChangeset.class);
      case COMMENT:
View Full Code Here

Examples of eu.pursuit.core.Event.EventType

 
  public Event getNextEventDirect() {
    EventInternal e = new EventInternal();
    long event_ptr = c_nextEvent_direct(baPtr, e);   
   
    EventType type = EventType.getById(e.getType());
    Event retval = null;
    if(e.getData()!=null){
      retval = new Event(type, e.getId(), e.getData(), e.getData().capacity());
    }else{
      retval = new Event(type, e.getId());
View Full Code Here

Examples of io.undertow.security.api.SecurityNotification.EventType

    private class SecurityNotificationReceiver implements NotificationReceiver {

        @Override
        public void handleNotification(SecurityNotification notification) {
            EventType eventType = notification.getEventType();
            switch (eventType) {
                case AUTHENTICATED:
                    if (isCacheable(notification)) {
                        HttpSession session = servletContext.getSession(notification.getExchange(), true);
                        // It is normal for this notification to be received when using a previously cached session - in that
View Full Code Here

Examples of javafx.event.EventType

                private double width;
                private double height;
                private Point2D dragAnchor;

                @Override public void handle(MouseEvent event) {
                    EventType type = event.getEventType();

                    if (type == MouseEvent.MOUSE_PRESSED) {
                        width = getWidth();
                        height = getHeight();
                        dragAnchor = new Point2D(event.getSceneX(), event.getSceneY());
View Full Code Here

Examples of javax.swing.event.DocumentEvent.EventType

    // Make sure this event is a document event
    if (edit instanceof DefaultDocumentEvent) {
      // Get the event type
      DefaultDocumentEvent event = (DefaultDocumentEvent) edit;
      EventType eventType = event.getType();

      // Check if the event type is not a change on character attributes, but instead an insertion or removal of
      // text.
      if (eventType != EventType.CHANGE) {
        boolean isEndCompoundEdit = false;
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.