|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.skin.ComponentSkin
org.apache.pivot.wtk.skin.ContainerSkin
org.apache.pivot.wtk.skin.terra.TerraFormSkin
public class TerraFormSkin
Form skin.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.pivot.wtk.skin.ContainerSkin |
---|
ContainerSkin.IndexFocusTraversalPolicy |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.FormListener |
---|
FormListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerListener |
---|
ContainerListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerMouseListener |
---|
ContainerMouseListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentListener |
---|
ComponentListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentStateListener |
---|
ComponentStateListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseListener |
---|
ComponentMouseListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseButtonListener |
---|
ComponentMouseButtonListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentKeyListener |
---|
ComponentKeyListener.Adapter |
Field Summary |
---|
Fields inherited from class org.apache.pivot.wtk.skin.ComponentSkin |
---|
SHOW_TOOLTIP_TIMEOUT |
Constructor Summary | |
---|---|
TerraFormSkin()
|
Method Summary | |
---|---|
void |
fieldInserted(Form.Section section,
int index)
Called when a form field has been inserted. |
void |
fieldsRemoved(Form.Section section,
int index,
Sequence<Component> fields)
Called when forms fields items have been removed. |
void |
flagChanged(Form form,
Component field,
Form.Flag previousFlag)
Called when a field's flag attribute has changed. |
int |
getBaseline(int width,
int height)
Returns the baseline for a given width and height. |
String |
getDelimiter()
|
boolean |
getFill()
|
int |
getFlagImageOffset()
|
int |
getHorizontalSpacing()
|
int |
getPreferredHeight(int width)
Returns the visual's preferred height given the provided width constraint. |
Dimensions |
getPreferredSize()
Returns the visual's unconstrained preferred size. |
int |
getPreferredWidth(int height)
Returns the visual's preferred width given the provided height constraint. |
boolean |
getRightAlignLabels()
|
int |
getVerticalSpacing()
|
void |
install(Component component)
Associates a skin with a component. |
boolean |
isShowFirstSectionHeading()
|
void |
labelChanged(Form form,
Component field,
String previousLabel)
Called when a fields's name attribute has changed. |
void |
layout()
If the component on which the skin is installed is a container, lays out the container's children. |
void |
sectionHeadingChanged(Form.Section section)
Called when a form section's heading has changed. |
void |
sectionInserted(Form form,
int index)
Called when a form section has been inserted. |
void |
sectionsRemoved(Form form,
int index,
Sequence<Form.Section> removed)
Called when form sections have been removed. |
void |
setDelimiter(String delimiter)
|
void |
setFill(boolean fill)
|
void |
setFlagImageOffset(int flagImageOffset)
|
void |
setFlagImageOffset(Number flagImageOffset)
|
void |
setHorizontalSpacing(int horizontalSpacing)
|
void |
setHorizontalSpacing(Number horizontalSpacing)
|
void |
setRightAlignLabels(boolean rightAlignLabels)
|
void |
setShowFirstSectionHeading(boolean showFirstSectionHeading)
|
void |
setVerticalSpacing(int verticalSpacing)
|
void |
setVerticalSpacing(Number verticalSpacing)
|
Methods inherited from class org.apache.pivot.wtk.skin.ContainerSkin |
---|
componentInserted, componentMoved, componentsRemoved, contextKeyChanged, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, isFocusable, isOpaque, mouseDown, mouseMove, mouseUp, mouseWheel, paint, setBackgroundColor, setBackgroundColor, setBackgroundPaint, setBackgroundPaint, setBackgroundPaint |
Methods inherited from class org.apache.pivot.wtk.skin.ComponentSkin |
---|
cursorChanged, decodeFont, dragSourceChanged, dropTargetChanged, enabledChanged, focusedChanged, getBaseline, getComponent, getHeight, getWidth, invalidateComponent, keyPressed, keyReleased, keyTyped, locationChanged, menuHandlerChanged, mouseClick, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, mouseWheel, parentChanged, preferredHeightLimitsChanged, preferredSizeChanged, preferredWidthLimitsChanged, repaintComponent, repaintComponent, repaintComponent, repaintComponent, repaintComponent, setSize, sizeChanged, styleUpdated, tooltipTextChanged, visibleChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TerraFormSkin()
Method Detail |
---|
public void install(Component component)
Skin
install
in interface Skin
install
in class ContainerSkin
component
- The component to which the skin is being attached.public int getPreferredWidth(int height)
ConstrainedVisual
getPreferredWidth
in interface ConstrainedVisual
getPreferredWidth
in class ContainerSkin
height
- The height by which to constrain the preferred width, or -1
for no constraint.public int getPreferredHeight(int width)
ConstrainedVisual
getPreferredHeight
in interface ConstrainedVisual
getPreferredHeight
in class ContainerSkin
width
- The width by which to constrain the preferred height, or -1
for no constraint.public Dimensions getPreferredSize()
ConstrainedVisual
getPreferredSize
in interface ConstrainedVisual
getPreferredSize
in class ComponentSkin
public int getBaseline(int width, int height)
ConstrainedVisual
getBaseline
in interface ConstrainedVisual
getBaseline
in class ComponentSkin
public void layout()
Skin
layout
in interface Skin
public boolean getRightAlignLabels()
public void setRightAlignLabels(boolean rightAlignLabels)
public boolean getFill()
public void setFill(boolean fill)
public int getHorizontalSpacing()
public void setHorizontalSpacing(int horizontalSpacing)
public final void setHorizontalSpacing(Number horizontalSpacing)
public int getVerticalSpacing()
public void setVerticalSpacing(int verticalSpacing)
public final void setVerticalSpacing(Number verticalSpacing)
public int getFlagImageOffset()
public void setFlagImageOffset(int flagImageOffset)
public final void setFlagImageOffset(Number flagImageOffset)
public boolean isShowFirstSectionHeading()
public void setShowFirstSectionHeading(boolean showFirstSectionHeading)
public String getDelimiter()
public void setDelimiter(String delimiter)
public void sectionInserted(Form form, int index)
FormListener
sectionInserted
in interface FormListener
public void sectionsRemoved(Form form, int index, Sequence<Form.Section> removed)
FormListener
sectionsRemoved
in interface FormListener
public void sectionHeadingChanged(Form.Section section)
FormListener
sectionHeadingChanged
in interface FormListener
public void fieldInserted(Form.Section section, int index)
FormListener
fieldInserted
in interface FormListener
public void fieldsRemoved(Form.Section section, int index, Sequence<Component> fields)
FormListener
fieldsRemoved
in interface FormListener
public void labelChanged(Form form, Component field, String previousLabel)
FormAttributeListener
labelChanged
in interface FormAttributeListener
public void flagChanged(Form form, Component field, Form.Flag previousFlag)
FormAttributeListener
flagChanged
in interface FormAttributeListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |