public class Templates
extends java.lang.Object
Constructor and Description |
---|
Templates() |
Modifier and Type | Method and Description |
---|---|
static Template |
lookup(Component comp,
Component base,
java.lang.String name)
A shortcut of lookup(comp, base, name, null, false)
|
static Template |
lookup(Component comp,
Component base,
java.lang.String name,
Component compBase)
A shortcut of lookup(comp, base, name, compBase, false)
|
static Template |
lookup(Component comp,
Component base,
java.lang.String name,
Component compBase,
boolean excludeBase)
Lookup the template with some information.
|
static Template |
lookup(Component comp,
java.lang.String name)
A shortcut of lookup(comp, comp, name, null, false)
|
public static Template lookup(Component comp, java.lang.String name)
public static Template lookup(Component comp, Component base, java.lang.String name)
public static Template lookup(Component comp, Component base, java.lang.String name, Component compBase)
public static Template lookup(Component comp, Component base, java.lang.String name, Component compBase, boolean excludeBase)
lookup(Component, String)
directly.comp
- It is the component to start looking for, and is necessary.base
- To avoid redundant finding, usually it is the same with comp.name
- The template's name, and is necessary.compBase
- Special usage. Those templates defined inside a ShadowElement
have higher priority
when compBase
is distributed child of the specific ShadowElement. Usually, it is null.excludeBase
- It is a boolean to indicate whether to skip base
component or not. Usually, it is false.Copyright © 2005-2011 Potix Corporation. All Rights Reserved.