Examples of MComponent


Examples of com.bitmovers.maui.components.MComponent

  {
    super.generate(aRenderable, aParser);
    //
    //  Get the title of the containing Frame
    //
    MComponent theComponent = parent;

    while(theComponent != null &&
         !(theComponent instanceof MFrame))
    {
      theComponent = theComponent.getParent();
    }

    if (theComponent instanceof MFrame)
    {
      aParser.setVariable("title", "<b>" +
View Full Code Here

Examples of com.bitmovers.maui.components.MComponent

 
  protected HasPostValue [] getValuePosters (I_Renderable aRenderable)
  {
    HasPostValue [] theValues = super.getValuePosters (aRenderable);
    HasPostValue [] retVal = null;
    MComponent theTop = ((MComponent) aRenderable).getRootParent ();
    if (theTop instanceof MauiApplication)
    {
      retVal = new HasPostValue [theValues.length + 1];
      System.arraycopy (theValues, 0, retVal, 1, theValues.length);
      retVal [0] = (HasPostValue) theTop;
View Full Code Here

Examples of com.bitmovers.maui.components.MComponent

  *
  * @param aRendererEvent The EventObject which describes the event
  */
  public synchronized void rendererCreated (RendererEvent aRendererEvent)
  {
    MComponent theComponent = aRendererEvent.getComponent ();
    MauiApplication theApplication = (MauiApplication) theComponent.getRootParent ();
    notifyListeners (theApplication.getApplicationAddress (), aRendererEvent);
    notifyListeners ("null", aRendererEvent);
  }
View Full Code Here

Examples of com.bitmovers.maui.components.MComponent

 
  public I_Renderable getContainingFrame(I_Renderable aRenderable)
  {
    if (containingFrame == null)
    {
      MComponent theComponent = (MComponent) aRenderable;
      while (theComponent != null && !(theComponent instanceof MFrame))
      {
        theComponent = theComponent.getParent ();
      }
      containingFrame = (I_Renderable) theComponent;
    }
    return containingFrame;
  }
View Full Code Here

Examples of com.bitmovers.maui.components.MComponent

 
  protected String generateSimpleAnchor(I_Renderable aRenderable,
                                        String aEventValue,
                                        String aLabel)
  {
    MComponent theComponent = (MComponent)aRenderable;
    StringBuffer retVal = new StringBuffer("<anchor id=\"");
    retVal.append(theComponent.getWMLSafeComponentID());
    retVal.append("\" title=\"Link\">");
    retVal.append(WMLCompositor.encodeWML(aLabel));
    retVal.append("\n");
    retVal.append(generatePostList (aRenderable, aEventValue));
    retVal.append("</anchor>\n");
View Full Code Here

Examples of com.bitmovers.maui.components.MComponent

  // METHOD: generateBackwardPrologue
  // ----------------------------------------------------------------------
 
  public String generateBackwardPrologue(I_Renderable aRenderable)
  {
    MComponent theComponent = (MComponent) aRenderable;
    return setVar (generateComponentID (theComponent) + "_Label", "$(" + generateComponentID (theComponent) + ")");//":e)");
  }
View Full Code Here

Examples of com.bitmovers.maui.components.MComponent

    panel.add(selectList);
    panel.add(table);
   
//    try
//    {
      MComponent mysteryComponent = (MComponent)getSession().getObjectFactory().createObject(this,"recipientField");
      panel.add(mysteryComponent);
/*    }
    catch (ClassCastException e)
    {
      System.out.println("Couldn't create constraint-based component.");
View Full Code Here

Examples of com.bitmovers.maui.components.MComponent

      }
     
      //
      //  Notify the session that a renderer has been created
      //
      MComponent theRootParent = aComponent.getRootParent ();
      if (theRootParent instanceof MauiApplication)
      {
        HTTPSession theSession = ((MauiApplication) theRootParent).getSession ();
        if (theSession != null)
        {
View Full Code Here

Examples of com.bitmovers.maui.components.MComponent

   
    //
    //  Get the header values and determine a client "classification" to use
    //  for trying to locate a renderer.
    //
    MComponent theRoot = aComponent.getRootParent ();
    if (theRoot instanceof MauiApplication)
    {
      String [] theClientClassification = getClientClassification ((MauiApplication) theRoot);
      //
      //  With this classification array, try to locate the appropriate renderer.
View Full Code Here

Examples of net.sourceforge.marathon.component.MComponent

        if (c != null)
            c.requestFocus();
    }

    public void play(ComponentFinder resolver) {
        MComponent component = resolver.getMComponentById(getComponentId());
        waitForWindowActive(getParentWindow(component.getComponent()));
        requestFocus(component.getComponent());
        if (actionType == ActionType.MOUSE_PRESSED) {
            component.mousePressed(modifiers, position);
        } else if (actionType == ActionType.MOUSE_RELEASED) {
            component.mouseReleased(modifiers, position);
        } else if (numberOfClicks == 0 || actionType == ActionType.HOVER)
            component.hover(hoverDelay);
        else
            component.click(numberOfClicks, modifiers, 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.