|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SubPartAware
Interface implemented by Widget
s which can provide identifiers for at
least one element inside the component. Used by ComponentLocator
.
Method Summary | |
---|---|
com.google.gwt.user.client.Element |
getSubPartElement(String subPart)
Locates an element inside a component using the identifier provided in subPart . |
String |
getSubPartName(com.google.gwt.user.client.Element subElement)
Provides an identifier that identifies the element within the component. |
Method Detail |
---|
com.google.gwt.user.client.Element getSubPartElement(String subPart)
subPart
. The subPart
identifier is component specific and
may be any string of characters, numbers, space characters and brackets.
subPart
- The identifier for the element inside the component
String getSubPartName(com.google.gwt.user.client.Element subElement)
subElement
is a part of the component and must never be null.
Note!
getSubPartElement(getSubPartName(element)) == element
is not
always true. A component can choose to provide a more generic
identifier for any given element if the results of all interactions with
subElement
are the same as interactions with the element
identified by the return value. For example a button can return an
identifier for the root element even though a DIV inside the button was
passed as subElement
because interactions with the DIV and the
root button element produce the same result.
subElement
- The element the identifier string should uniquely identify
subElement
or null
if no identifier could be provided.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |