Oracle Fusion Middleware Java API Reference for Oracle Team Productivity Center
11g Release 1 (11.1.1.7.0)
E14128-06

oracle.alm.view.uicomponents
Class ComponentUtils

java.lang.Object
  extended by oracle.alm.view.uicomponents.ComponentUtils

public class ComponentUtils
extends java.lang.Object


Constructor Summary
ComponentUtils()
           
 
Method Summary
static AlmComponent findAncestor(AlmComponent component, java.lang.String ancestorName)
          Find the closest ancestor by giving the tag name from current component (including the component itself) in the component tree.
static AlmComponent findComponentById(AlmComponent component, java.lang.String id)
          Find a component from the component tree by giving its ID and current component.
static AlmComponent findComponentFromRootById(AlmComponent root, java.lang.String id)
           
static AlmComponent findOffSpring(AlmComponent component, java.lang.String offSpringName)
          Find the closest offspring by giving the tag name from current component (including the component itself) in the component tree.
static javax.swing.JComponent findScrollPaneFromComponent(javax.swing.JComponent component)
           
static java.net.URL getHyperLink(java.lang.String text)
           
static java.lang.String getHyperLinkArchor(java.lang.String text)
           
static int getTableColumnIndexByName(javax.swing.table.TableColumnModel cmodel, java.lang.String colName)
           
static java.lang.String getTableColumnWidthInfo(AlmComponent comp)
           
static java.lang.String getTableSortInfo(AlmComponent comp)
          Find table sort information.
static void setTableColumnWidth(javax.swing.table.TableColumnModel cmodel, int columnIndex, int width)
           
static void setTableColumnWidthFromInfo(javax.swing.table.TableColumnModel cmodel, java.lang.String info)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentUtils

public ComponentUtils()
Method Detail

findAncestor

public static AlmComponent findAncestor(AlmComponent component,
                                        java.lang.String ancestorName)
Find the closest ancestor by giving the tag name from current component (including the component itself) in the component tree.

Parameters:
component - current component object
ancestorName - Ancestor tag name
Returns:
the retrieved component

findOffSpring

public static AlmComponent findOffSpring(AlmComponent component,
                                         java.lang.String offSpringName)
Find the closest offspring by giving the tag name from current component (including the component itself) in the component tree.

Parameters:
component -
offSpringName -
Returns:
the retrieved component

findComponentById

public static AlmComponent findComponentById(AlmComponent component,
                                             java.lang.String id)
Find a component from the component tree by giving its ID and current component.

Parameters:
component -
id -
Returns:
the retrieved component

findComponentFromRootById

public static AlmComponent findComponentFromRootById(AlmComponent root,
                                                     java.lang.String id)

findScrollPaneFromComponent

public static javax.swing.JComponent findScrollPaneFromComponent(javax.swing.JComponent component)

getTableSortInfo

public static java.lang.String getTableSortInfo(AlmComponent comp)
Find table sort information.

Parameters:
comp - the component passed in
Returns:
a string of sort information.

getTableColumnWidthInfo

public static java.lang.String getTableColumnWidthInfo(AlmComponent comp)

getTableColumnIndexByName

public static int getTableColumnIndexByName(javax.swing.table.TableColumnModel cmodel,
                                            java.lang.String colName)

setTableColumnWidth

public static void setTableColumnWidth(javax.swing.table.TableColumnModel cmodel,
                                       int columnIndex,
                                       int width)

setTableColumnWidthFromInfo

public static void setTableColumnWidthFromInfo(javax.swing.table.TableColumnModel cmodel,
                                               java.lang.String info)

getHyperLinkArchor

public static java.lang.String getHyperLinkArchor(java.lang.String text)

getHyperLink

public static java.net.URL getHyperLink(java.lang.String text)

Oracle Fusion Middleware Java API Reference for Oracle Team Productivity Center
11g Release 1 (11.1.1.7.0)
E14128-06

Copyright © 1999, 2013, Oracle. All rights reserved.