Java DTV API 1.3
18-Nov-2009

com.sun.dtv.lwuit.layouts
Class GroupLayout.ParallelGroup

java.lang.Object
  extended by com.sun.dtv.lwuit.layouts.GroupLayout.Spring
      extended by com.sun.dtv.lwuit.layouts.GroupLayout.Group
          extended by com.sun.dtv.lwuit.layouts.GroupLayout.ParallelGroup
Enclosing class:
GroupLayout

public class GroupLayout.ParallelGroup
extends GroupLayout.Group

A Group that lays out its elements on top of each other. If a child element is smaller than the provided space it is aligned based on the alignment of the child (if specified) or on the alignment of the ParallelGroup.

See Also:
GroupLayout.createParallelGroup()

Method Summary
 GroupLayout.ParallelGroup add(Component component)
          Adds the specified Component.
 GroupLayout.ParallelGroup add(Component component, int min, int pref, int max)
          Adds the specified Component.
 GroupLayout.ParallelGroup add(GroupLayout.Group group)
          Adds the specified Group.
 GroupLayout.ParallelGroup add(int pref)
          Adds a rigid gap.
 GroupLayout.ParallelGroup add(int alignment, Component component)
          Adds the specified Component.
 GroupLayout.ParallelGroup add(int alignment, Component component, int min, int pref, int max)
          Adds the specified Component.
 GroupLayout.ParallelGroup add(int alignment, GroupLayout.Group group)
          Adds the specified Group as a child of this group.
 GroupLayout.ParallelGroup add(int min, int pref, int max)
          Adds a gap with the specified size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

add

public GroupLayout.ParallelGroup add(GroupLayout.Group group)
Adds the specified Group.

Parameters:
group - the Group to add
Returns:
this Group

add

public GroupLayout.ParallelGroup add(Component component)
Adds the specified Component. If the Component's min/max are different from its pref than the component will be resizable.

Parameters:
component - the Component to add
Returns:
this ParallelGroup

add

public GroupLayout.ParallelGroup add(Component component,
                                     int min,
                                     int pref,
                                     int max)
Adds the specified Component. Min, pref and max can be absolute values, or they can be one of DEFAULT_SIZE or PREFERRED_SIZE. For example, the following:
   add(component, PREFERRED_SIZE, PREFERRED_SIZE, 1000);
 
Forces a max of 1000, with the min and preferred equalling that of the preferred size of component.

Parameters:
component - the Component to add
min - the minimum size
pref - the preferred size
max - the maximum size
Returns:
this SequentialGroup
Throws:
IllegalArgumentException - if min, pref or max are not positive and not one of PREFERRED_SIZE or DEFAULT_SIZE.

add

public GroupLayout.ParallelGroup add(int pref)
Adds a rigid gap.

Parameters:
pref - the size of the gap
Returns:
this ParallelGroup
Throws:
IllegalArgumentException - if min < 0 or pref < 0 or max < 0 or the following is not meant min <= pref <= max.

add

public GroupLayout.ParallelGroup add(int min,
                                     int pref,
                                     int max)
Adds a gap with the specified size.

Parameters:
min - the minimum size of the gap
pref - the preferred size of the gap
max - the maximum size of the gap
Returns:
this ParallelGroup
Throws:
IllegalArgumentException - if min < 0 or pref < 0 or max < 0 or the following is not meant min <= pref <= max.

add

public GroupLayout.ParallelGroup add(int alignment,
                                     GroupLayout.Group group)
Adds the specified Group as a child of this group.

Parameters:
alignment - the alignment of the Group.
group - the Group to add
Returns:
this ParallelGroup
Throws:
IllegalArgumentException - if alignment is not one of LEADING, TRAILING or CENTER

add

public GroupLayout.ParallelGroup add(int alignment,
                                     Component component)
Adds the specified Component. If the Component's min/max are different from its pref than the component will be resizable.

Parameters:
alignment - the alignment for the component
component - the Component to add
Returns:
this Group
Throws:
IllegalArgumentException - if alignment is not one of LEADING, TRAILING or CENTER

add

public GroupLayout.ParallelGroup add(int alignment,
                                     Component component,
                                     int min,
                                     int pref,
                                     int max)
Adds the specified Component. Min, pref and max can be absolute values, or they can be one of DEFAULT_SIZE or PREFERRED_SIZE. For example, the following:
   add(component, PREFERRED_SIZE, PREFERRED_SIZE, 1000);
 
Forces a max of 1000, with the min and preferred equalling that of the preferred size of component.

Parameters:
alignment - the alignment for the component.
component - the Component to add
min - the minimum size
pref - the preferred size
max - the maximum size
Returns:
this Group
Throws:
IllegalArgumentException - if min, pref or max are not positive and not one of PREFERRED_SIZE or DEFAULT_SIZE.

Java DTV API 1.3
18-Nov-2009

Copyright © 2008-2009 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All rights reserved.

U.S. Government Rights - Commercial software. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its supplements. Sun, Sun Microsystems, the Sun logo and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.Products covered by and information contained in this service manual are controlled by U.S. Export Control laws and may be subject to the export or import laws in other countries. Nuclear, missile, chemical biological weapons or nuclear maritime end uses or end users, whether direct or indirect, are strictly prohibited. Export or reexport to countries subject to U.S. embargo or to entities identified on U.S. export exclusion lists, including, but not limited to, the denied persons and specially designated nationals lists is strictly prohibited.

DOCUMENTATION IS PROVIDED AS IS AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.

Use of this document is subject to license terms.