|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ComponentPeer
Field Summary | |
---|---|
static java.lang.String |
IGNORE_PROPERTY_CHANGE
|
Method Summary | |
---|---|
void |
addAncillaryService(Service service)
Adds an ancillary service to this ComponentPeer . |
Id |
generateId()
|
Color |
getCalculatedBackground()
Returns the background color in which the component will be rendered. |
Font |
getCalculatedFont()
Returns the font in which the component will be rendered. |
Color |
getCalculatedForeground()
Returns the foreground color in which the component will be rendered. |
Component |
getComponent()
Returns the component that is handled by this peer. |
java.lang.String |
getFocusedElementId()
|
Id |
getId()
Returns the Id by which this peer is identified on the
client. |
InstancePeer |
getInstancePeer()
Returns the InstancePeer |
ComponentPeer |
getParentComponentPeer()
Returns the peer of the associated component's component. |
ComponentPeer |
getPeer(Component component)
Returns the peer of the specified component. |
void |
redraw()
Requests that the component be redrawn on the client. |
void |
registerAncillaryServices()
|
void |
registered()
Called when the component is registered. |
void |
removeAncillaryService(Service service)
Removes an ancillary service from this ComponentPeer . |
void |
render(RenderingContext rc,
Element parent)
A method that should be overridden for the ComponentPeer to produce HTML output. |
void |
setComponent(Component c)
|
void |
setId(Id generateId)
|
void |
setInstancePeer(InstancePeer instancePeer)
|
void |
unregisterAncillaryServices()
|
void |
unregistered()
Called when the component is unregistered. |
Field Detail |
---|
static final java.lang.String IGNORE_PROPERTY_CHANGE
Method Detail |
---|
void addAncillaryService(Service service)
ComponentPeer
.
Ancillary services will be registered for the life of the
ComponentPeer
and automatically removed when it is
unregistered. An ancillary service should be used by ONLY one peer, as
the peer will register and unregister it from the
ServiceRegistry
as required.
service
- The ancillary service to be added.Color getCalculatedBackground()
Id generateId()
Component getComponent()
java.lang.String getFocusedElementId()
Font getCalculatedFont()
Color getCalculatedForeground()
Id getId()
Id
by which this peer is identified on the
client.
Id
by which this peer is identified on the
client.InstancePeer getInstancePeer()
InstancePeer with which this peer is associated.
If the peer is unregistered, null will be returned.
- Returns:
- The
InstancePeer with which this peer is associated.
void redraw()
void removeAncillaryService(Service service)
ComponentPeer
.
Ancillary services will be registered for the life of the
ComponentPeer
and automatically removed when it is
unregistered. An ancillary service should be used by ONLY one peer, as
the peer will register and unregister it from the
service
- The ancillary service to be removed.void render(RenderingContext rc, Element parent)
rc
- A rendering context provided by the Connection
.parent
- The element that will contain content rendered by this
ComponentPeer
.ComponentPeer getParentComponentPeer()
ComponentPeer getPeer(Component component)
component
- The component whose peer is to be returned.
void registered()
void unregistered()
void setId(Id generateId)
void setInstancePeer(InstancePeer instancePeer)
void registerAncillaryServices()
void unregisterAncillaryServices()
void setComponent(Component c)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |