Oracle Fusion Middleware Disc API Reference for Oracle WebLogic Portal
10g Release 3 (10.3.4)
E14257-04

Class BorderLayout


public class BorderLayout
     extends Layout

Instances of the BorderLayout class represent visible border layouts of the rendered Portal.


 
Method Summary
public number getColumns()
          Returns the number of columns rendered by this BorderLayout.
public string getStrategy()
          Returns the layout strategy employed by this BorderLayout.
 
Method Detail

getColumns

public number getColumns() 
Returns the number of columns rendered by this BorderLayout. The total number of columns is determined as follows:
  • +1 column if any of the north, center or south Placeholders is present
  • +1 column if the west Placeholder is present
  • +1 column if the east Placeholder is present
Returns:
number - The number of columns in this BorderLayout

getStrategy

public string getStrategy() 
Returns the layout strategy employed by this BorderLayout. Return values are constrained by the values in the Strategy enumeration.

See the BorderLayoutPresentationContext.getLayoutStrategy() Javadoc for more information about border layout strategies.

Returns:
string - The layout strategy employed by this BorderLayout
See Also:
#Strategy


Object BorderLayout.Strategy


public singleton object BorderLayout.Strategy

Enumerated values for the strategy property of BorderLayout.

See Also:
#getStrategy

Field Summary
public static string BY_ORDER
            Value representing layout by order strategy.
public static string BY_TITLE
            Value representing layout by title strategy.
   
Field Detail

BY_ORDER

public static string BY_ORDER
Value representing layout by order strategy.

BY_TITLE

public static string BY_TITLE
Value representing layout by title strategy.


Class FlowLayout


public class FlowLayout
     extends Layout

Instances of the FlowLayout class represent visible flow layouts of the rendered Portal.


 
Method Summary
public boolean getImplicit()
          Returns true for implicit FlowLayouts.
public string getOrientation()
          Returns the orientation in use for this FlowLayout.
public Placeholder getParentPlaceholder()
          Returns the parent Placeholder of this FlowLayout for implicit layouts.
 
Method Detail

getImplicit

public boolean getImplicit() 
Returns true for implicit FlowLayouts. Implicit layouts are created automatically by Portal within Placeholders when the placeholder's "usingFlow" attribute is true.
Returns:
boolean - true if this is an implicit FlowLayout

getOrientation

public string getOrientation() 
Returns the orientation in use for this FlowLayout. Return values are constrained by the values in the Orientation enumeration.
Returns:
string - The orientation in use for this FlowLayout
See Also:
#Orientation

getParentPlaceholder

public Placeholder getParentPlaceholder() 
Returns the parent Placeholder of this FlowLayout for implicit layouts. For explicit layouts this method returns null.
Returns:
Placeholder - The parent Placeholder of this FlowLayout


Object FlowLayout.Orientation


public singleton object FlowLayout.Orientation

Enumerated values for the orientation property of FlowLayout.

See Also:
#getOrientation

Field Summary
public static string HORIZONTAL
            Value representing horizontal orientation.
public static string VERTICAL
            Value representing vertical orientation.
   
Field Detail

HORIZONTAL

public static string HORIZONTAL
Value representing horizontal orientation.

VERTICAL

public static string VERTICAL
Value representing vertical orientation.


Class GridLayout


public class GridLayout
     extends Layout

Instances of the GridLayout class represent visible grid layouts of the rendered Portal.


 
Method Summary
public number getColumns()
          Returns the "columns" attribute for this GridLayout, if defined.
public boolean getRowMajor()
          Returns true if this GridLayout is constrained to a specific number of columns.
public number getRows()
          Returns the "rows" attribute for this GridLayout, if defined.
 
Method Detail

getColumns

public number getColumns() 
Returns the "columns" attribute for this GridLayout, if defined
Returns:
number - The value of the "columns" attribute for this GridLayout; null if not defined

getRowMajor

public boolean getRowMajor() 
Returns true if this GridLayout is constrained to a specific number of columns. (i.e. if getColumns() returns a number)
Returns:
boolean - True if getColumns() returns a number

getRows

public number getRows() 
Returns the "rows" attribute for this GridLayout, if defined
Returns:
number - The value of the "rows" attribute for this GridLayout; null if not defined


Class Layout


public class Layout
     extends PresentationContext

Instances of the Layout class represent visible layouts of the rendered Portal. Layout is intended to be an abstract base class from which specific layout types such as FlowLayout are derived.


 
Method Summary
public string getMarkupName()
          Returns the markup name of this Layout if defined.
public Page getParentPage()
          Returns the parent Page of this Layout.
public Window[] getPlaceables()
          Returns an array of all Books and Portlets contained as immediate children of Placeholders within this Layout.
public Placeholder[] getPlaceholders()
          Returns an array of all immediate Placeholder objects contained within this Layout.
 
Method Detail

getMarkupName

public string getMarkupName() 
Returns the markup name of this Layout if defined.
Returns:
string - The markup name of this Layout; null if not defined

getParentPage

public Page getParentPage() 
Returns the parent Page of this Layout.
Returns:
Page - The parent Page of this Layout

getPlaceables

public Window[] getPlaceables() 
Returns an array of all Books and Portlets contained as immediate children of Placeholders within this Layout.
Returns:
Window[] - An array of Books and Portlets contained within this Layout

getPlaceholders

public Placeholder[] getPlaceholders() 
Returns an array of all immediate Placeholder objects contained within this Layout.

NOTE: Nested Placeholder objects are not returned by this method. To retrieve nested Placeholder objects call this method on a nested Layout. Two scenarios where nested Placeholder objects may be present are: 1) Implicit layouts and 2) Placeable books.

Returns:
Placeholder[] - All Placeholders contained immediately within this Layout


Class Placeholder


public class Placeholder
     extends PresentationContext

Instances of the Placeholder class represent visible placeholders of the rendered Portal.


 
Method Summary
public string getFlow()
          Returns the flow direction for this Placeholder.
public boolean getImplicit()
          Returns true if this Placeholder is the immediate child of an implicit FlowLayout, false otherwise.
public FlowLayout getImplicitLayout()
          Returns the implicit FlowLayout when this Placeholder's "usingFlow" attribute is true.
public number getLocation()
          Returns this Placeholder's location within its parent Page.
public boolean getLocked()
          When customization has been enabled this method will return true when the user is not allowed to update the contents of this Placeholder, false otherwise.
public Layout getParentLayout()
          Returns the parent Layout containing this Placeholder.
public Window[] getPlaceables()
          Returns an array of all Books and Portlets contained as immediate children of this Placeholder.
public string getTitle()
          Returns the title of this Placeholder, if defined.
public bolean getUsingFlow()
          Returns the "usingFlow" attribute for this Placeholder, if defined.
public string getWidth()
          Returns the "width" attribute for this Placeholder, if defined.
 
Method Detail

getFlow

public string getFlow() 
Returns the flow direction for this Placeholder. Return values are constrained by the values in the Flow enumeration.
Returns:
string - The flow direction for this Placeholder
See Also:
#Flow

getImplicit

public boolean getImplicit() 
Returns true if this Placeholder is the immediate child of an implicit FlowLayout, false otherwise.
Returns:
boolean - true if this Placeholder is the immediate child of a implicit FlowLayout; false otherwise

getImplicitLayout

public FlowLayout getImplicitLayout() 
Returns the implicit FlowLayout when this Placeholder's "usingFlow" attribute is true.
Returns:
FlowLayout - The implicit layout if this Placeholder is "usingFlow"; null otherwise

getLocation

public number getLocation() 
Returns this Placeholder's location within its parent Page. Locations are ordinal numbers such that Placeholders within the same Page have the positions 0, 1, 2, 3, 4, ....

NOTE: The value returned for implicit placeholders is undefined.

Returns:
number - The location of this Placeholder within the parent Page

getLocked

public boolean getLocked() 
When customization has been enabled this method will return true when the user is not allowed to update the contents of this Placeholder, false otherwise.
Returns:
boolean - true when a user is not allowed to make updates to this placeholder; false otherwise.
See Also:
Application#getCustomizationEnabled

getParentLayout

public Layout getParentLayout() 
Returns the parent Layout containing this Placeholder.
Returns:
Layout - The parent Layout of this Placeholder

getPlaceables

public Window[] getPlaceables() 
Returns an array of all Books and Portlets contained as immediate children of this Placeholder.
Returns:
Window[] - An array of Books and Portlets contained within this Placeholder

getTitle

public string getTitle() 
Returns the title of this Placeholder, if defined.
Returns:
string - The title of this Placeholder; null if not defined

getUsingFlow

public bolean getUsingFlow() 
Returns the "usingFlow" attribute for this Placeholder, if defined.
Returns:
bolean - The value of the "usingFlow" attribute for this Placeholder; null if not defined

getWidth

public string getWidth() 
Returns the "width" attribute for this Placeholder, if defined.
Returns:
string - The value of the "width" attribute for this Placeholder; null if not defined


Object Placeholder.Flow


public singleton object Placeholder.Flow

Enumerated values for the flow property of Placeholder.

See Also:
#getFlow

Field Summary
public static string HORIZONTAL
            Value representing horizontal flow.
public static string VERTICAL
            Value representing vertical flow.
   
Field Detail

HORIZONTAL

public static string HORIZONTAL
Value representing horizontal flow.

VERTICAL

public static string VERTICAL
Value representing vertical flow.


Oracle Fusion Middleware Disc API Reference for Oracle WebLogic Portal
10g Release 3 (10.3.4)
E14257-04

Copyright © 2011, Oracle. All rights reserved.