Examples of MContainer


Examples of com.bitmovers.maui.components.foundation.MContainer

    */

  protected String renderSeparatedComponent(MComponent component, String separator)
  {
    StringBuffer rendered = new StringBuffer();
    MContainer container = component.getParent();
   
    try
    {
      Object constraints = container.getConstraints(component);
     
      // Handle improper contraint objects.
      if (!(constraints instanceof MLayout.Alignment))
      {
        if (constraints != null)
        {
          constraints = container.getLayout().getAlignment();
          System.out.println(new DebugString("MBoxLayout only supports only constraint objects of type Alignment. Use BoxLayout.LEFT, .CENTER, and .RIGHT for constraints with this LayoutManager. Defaulting to " + (MLayout.Alignment)constraints) + ".");
        }
        else
        {
          constraints = container.getLayout().getAlignment();
        }
      }

      MBoxLayout layout = (MBoxLayout)container.getLayout();

      final int lastComponent = (container.getComponentCount() - 1);
      final int componentIndex = container.getComponentIndex(component);

      switch (componentIndex)
      {
        // First component
        case 0:
View Full Code Here

Examples of com.bitmovers.maui.components.foundation.MContainer

  {
    StringBuffer rendered = new StringBuffer();
   
    try
    {
      MContainer container = component.getParent();
      Object constraints = container.getConstraints(component);

      if (constraints != null)
      {
        System.out.println(new DebugString("FlowLayout does not support any constraints. Ignoring..."));
      }

      MFlowLayout layout = (MFlowLayout)container.getLayout();

      final int lastComponent = (container.getComponentCount() - 1);
      final int componentIndex = container.getComponentIndex(component);

      rendered.append(super.doRenderComponent(component));

      if (componentIndex != lastComponent)
      {
View Full Code Here

Examples of com.bitmovers.maui.components.foundation.MContainer

  // METHOD: render
  // ----------------------------------------------------------------------
 
  public String render(I_Renderable layout)
  {
    MContainer parent = ((MLayout)layout).getParentContainer();
   
    return this.renderComponents(parent, null);
  }
View Full Code Here

Examples of com.bitmovers.maui.components.foundation.MContainer

    */

  protected String renderSeparatedComponent(MComponent component, String separator)
  {
    StringBuffer rendered = new StringBuffer();
    MContainer container = component.getParent();
   
    try
    {
      Object constraints = container.getConstraints(component);
     
      // Handle improper contraint objects.
      if (!(constraints instanceof MLayout.Alignment))
      {
        if (constraints != null)
        {
          constraints = container.getLayout().getAlignment();
          System.out.println(new DebugString("MBoxLayout only supports only constraint objects of type Alignment. Use BoxLayout.LEFT, .CENTER, and .RIGHT for constraints with this LayoutManager. Defaulting to " + (MLayout.Alignment)constraints) + ".");
        }
        else
        {
          constraints = container.getLayout().getAlignment();
        }
      }

      MBoxLayout layout = (MBoxLayout)container.getLayout();

      final int lastComponent = (container.getComponentCount() - 1);
      final int componentIndex = container.getComponentIndex(component);

      switch (layout.getAxis())
      {
        // X axis
        case MBoxLayout.X_AXIS:
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.