Examples of MActionEvent


Examples of com.bitmovers.maui.events.MActionEvent

    */
   
  protected MauiEvent doCreateEvent (String aStateData)
  {
    doSetValue (aStateData);
    MActionEvent retVal = new MActionEvent (this, (actionEvent == null ? MActionEvent.VALUE_CHANGED : actionEvent));
    //if (aStateData == null)
    //{
    //  retVal.consume ();
    //}
    return retVal;
View Full Code Here

Examples of com.bitmovers.maui.events.MActionEvent

    */
   
  protected MauiEvent doCreateEvent(String aStateData)
  {
    eventValue = aStateData;
    return new MActionEvent(this, aStateData);
  }
View Full Code Here

Examples of com.bitmovers.maui.events.MActionEvent

   
  public MauiEvent createEvent (String aStateData)
  {
 
    //++ 377 MW 2001.08.16
    MActionEvent returnValue = new MActionEvent (this, aStateData);
   
    // This will consume the ACTION_PUSH event, so that deep navigation clicks
    // don't cause an action event for MLabels (linkable with actionEvents)
    //
    // NOTE: This pattern could possibly be generalized in the HTTPEVentTranslator
    // so that is effects other types of components.
    // Other alternative is make Deep Navigation clicks not action events but
    // a different type of event, so it can be filtered by their event type.
   
    if (aStateData != null && aStateData.equals(MActionEvent.ACTION_PUSH))
    {
      returnValue.consume();
    }
   
    return returnValue;
    //-- 377
  }
View Full Code Here

Examples of com.bitmovers.maui.events.MActionEvent

      * @param aStateData  The data associated with the event.
      */
   
    private MActionEvent createTableEvent (String aStateData)
    {
      MActionEvent retVal = new MActionEvent (this, aStateData);
      int theUnderscore = aStateData.indexOf ("_");
      selectedRow = ((theUnderscore != -1) ?
                    Integer.parseInt (aStateData.substring (theUnderscore + 1)) :
                    -1);
      return retVal;
View Full Code Here

Examples of com.bitmovers.maui.events.MActionEvent

    */
 
  public MauiEvent createEvent (String aStateData)
  {
    return (aStateData != null && aStateData.equals (MActionEvent.ACTION_PUSH) ?
          new MActionEvent (this, aStateData) :
          super.createEvent (aStateData));
  }
View Full Code Here

Examples of com.bitmovers.maui.events.MActionEvent

    if (selected != aSelected)
    {
      selected = aSelected;
      if (aNotify)
      {
        dispatchActionEvent (new MActionEvent (this,
                            (aSelected ? "true" : "false")));
      }
    }
  }
View Full Code Here

Examples of com.bitmovers.maui.events.MActionEvent

     /*boolean theState = (aStateData == null ||
              aStateData.length () == 0 ||
              aStateData.equals ("false") ?
                false :
                true);*/
    MActionEvent retVal = null;
    if (aStateData == null)
    {
      retVal = new MActionEvent (this, "true");
    }         
    else if (aStateData.equals (MActionEvent.ACTION_PUSH))
    {
      retVal = new MActionEvent (this, MActionEvent.ACTION_PUSH);
    }
    else
    {
      MRadioButtonGroup theGroup = getRadioButtonGroup ();
      MRadioButton theRadioButton = theGroup.getRadioButton (aStateData);
      retVal = new MActionEvent (theRadioButton, aStateData);
      if (theRadioButton.isSelected ())
      {
        retVal.consume ();
      }
      theGroup.doSetSelectedButtonIndex (theRadioButton.getButtonIndex (), true);
    }

    return retVal;
View Full Code Here

Examples of com.bitmovers.maui.events.MActionEvent

    */
   
  public void actionPerformed(MActionEvent aEvent)
  {
    this.setOpen(aEvent.getActionCommand().equals(MActionEvent.ACTION_OPENED));
    this.dispatchActionEvent(new MActionEvent(this, aEvent.getActionCommand()));
  }
View Full Code Here

Examples of com.bitmovers.maui.events.MActionEvent

    */
 
  public MauiEvent createEvent(String aStateData)
  {
    this.toggleOpen();
    return new MActionEvent(this, (this.open ? MActionEvent.ACTION_OPENED :
                                               MActionEvent.ACTION_CLOSED));
  }
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.