Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Team Productivity Center
11g Release 2 (11.1.2.3.0)
E17494-04


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(AlmELContext elcontext, 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 AlmComponent object found in the component tree

findOffSpring

public static AlmComponent findOffSpring(AlmELContext elcontext,
                                         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 AlmComponent object found in the component tree

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 AlmComponent object found in the component tree

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 object
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)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Team Productivity Center
11g Release 2 (11.1.2.3.0)
E17494-04


Copyright © 1998,2012, Oracle. All rights reserved.