Arranging Components in Columns Using LabeledFieldLayout

To arrange components in columns using labeledFieldLayout:

  1. In the Design Structure Window of the desired file, locate the parent node in which you wish to insert labeledFieldLayout children.
  2. In the Component Palette, select Layout Components from the dropdown list, and then drag and drop the labeledFieldLayout component to the parent node of your choice.

    The labeledFieldLayout node is inserted and highlighted under the expanded parent node. The Property Inspector displays the properties of the new component.

  3. In the Property Inspector, set the following attributes for the labeledFieldLayout component:
  4. To insert a child component into labeledFieldLayout, drag and drop a component from the Component Palette to the labeledFieldLayout node, and then use the Property Inspector to set the attributes for the child.
  5. Repeat step 4 to add additional indexed children as desired.

Tip: You can also right-click the labeledFieldLayout component and choose to insert inside the layout one of the preferred message form components.

Note: To use data binding, see Data Binding a Component Attribute.

Example (UIX XML)


...
<pageLayout>

  ...
  <labeledFieldLayout labelWidth="25%"
                      fieldWidth="80%"
                      columns="2"
                      width="80%" >
    <contents>
      UserName
      <textInput name="foo"/>
      Password
      <textInput name="foo" secret="true"/>
      Submit
      <submitButton formName="myform" text="Submit"/>
      Reset
      <resetButton formName="myform" text="Reset"/>
    </contents>
  </labeledFieldLayout>
  ...

  <!-- REST OF PAGE LAYOUT -->

<pageLayout>
...    

About LabeledFieldLayout

Working with Layout Components

 

Copyright © 1997, 2004, Oracle. All rights reserved.