|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Skin
Interface defining a "skin". A skin is the graphical representation of a component. In MVC terminology, a skin represents the "view" of the "model" data provided by a component. Components delegate a number of methods to the skin, including all methods defined by the Visual interface as well as style properties and layout. In conjunction with renderers (implementations of the Renderer interface), skins define the overall look and feel of an application.
Skins are primarily responsible for the following:
Skins may (but are not required to) expose internal properties that affect the appearance of the component as "style properties", similar to CSS styles. For example, a component might provide styles to let a caller set the foreground color and font. Since callers are not allowed to interact with a component's skin directly, access to styles is via the component's styles collection, which delegates to the dictionary methods in the installed skin. Skins are responsible for invalidating or repainting the component as appropriate in response to events and style changes.
| Method Summary | |
|---|---|
Component |
getComponent()
Returns the component with which a skin is associated. |
void |
install(Component component)
Associates a skin with a component. |
boolean |
isFocusable()
Returns the skin's focusable state. |
boolean |
isOpaque()
Tells whether or not this skin is fully opaque when painted. |
void |
layout()
If the component on which the skin is installed is a container, lays out the container's children. |
| Methods inherited from interface org.apache.pivot.wtk.ConstrainedVisual |
|---|
getBaseline, getPreferredHeight, getPreferredSize, getPreferredWidth, setSize |
| Methods inherited from interface org.apache.pivot.wtk.Visual |
|---|
getBaseline, getHeight, getWidth, paint |
| Method Detail |
|---|
void install(Component component)
component - The component to which the skin is being attached.Component getComponent()
void layout()
boolean isFocusable()
boolean isOpaque()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||