org.apache.pivot.wtk.skin.terra
Class TerraFormSkin
java.lang.Object
org.apache.pivot.wtk.skin.ComponentSkin
org.apache.pivot.wtk.skin.ContainerSkin
org.apache.pivot.wtk.skin.terra.TerraFormSkin
- All Implemented Interfaces:
- org.apache.pivot.wtk.ComponentKeyListener, org.apache.pivot.wtk.ComponentListener, org.apache.pivot.wtk.ComponentMouseButtonListener, org.apache.pivot.wtk.ComponentMouseListener, org.apache.pivot.wtk.ComponentMouseWheelListener, org.apache.pivot.wtk.ComponentStateListener, org.apache.pivot.wtk.ComponentTooltipListener, org.apache.pivot.wtk.ConstrainedVisual, org.apache.pivot.wtk.ContainerListener, org.apache.pivot.wtk.ContainerMouseListener, org.apache.pivot.wtk.FormAttributeListener, org.apache.pivot.wtk.FormListener, org.apache.pivot.wtk.Skin, org.apache.pivot.wtk.Visual
public class TerraFormSkin
- extends org.apache.pivot.wtk.skin.ContainerSkin
- implements org.apache.pivot.wtk.FormListener, org.apache.pivot.wtk.FormAttributeListener
Terra form skin.
TODO Animate preferred size calculations when flags change (make this configurable via
a style flag)
| Nested classes/interfaces inherited from class org.apache.pivot.wtk.skin.ContainerSkin |
org.apache.pivot.wtk.skin.ContainerSkin.IndexFocusTraversalPolicy |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.FormListener |
org.apache.pivot.wtk.FormListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.FormAttributeListener |
org.apache.pivot.wtk.FormAttributeListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerListener |
org.apache.pivot.wtk.ContainerListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerMouseListener |
org.apache.pivot.wtk.ContainerMouseListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentListener |
org.apache.pivot.wtk.ComponentListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentStateListener |
org.apache.pivot.wtk.ComponentStateListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseListener |
org.apache.pivot.wtk.ComponentMouseListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseButtonListener |
org.apache.pivot.wtk.ComponentMouseButtonListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentKeyListener |
org.apache.pivot.wtk.ComponentKeyListener.Adapter |
|
Method Summary |
void |
fieldInserted(org.apache.pivot.wtk.Form.Section section,
int index)
|
void |
fieldsRemoved(org.apache.pivot.wtk.Form.Section section,
int index,
org.apache.pivot.collections.Sequence<org.apache.pivot.wtk.Component> fields)
|
void |
flagChanged(org.apache.pivot.wtk.Form form,
org.apache.pivot.wtk.Component field,
org.apache.pivot.wtk.Form.Flag previousFlag)
|
int |
getBaseline(int width,
int height)
|
String |
getDelimiter()
|
boolean |
getFill()
|
int |
getFlagIconOffset()
|
int |
getHorizontalSpacing()
|
boolean |
getLeftAlignLabels()
|
org.apache.pivot.wtk.Insets |
getPadding()
|
int |
getPreferredHeight(int width)
|
org.apache.pivot.wtk.Dimensions |
getPreferredSize()
|
int |
getPreferredWidth(int height)
|
Color |
getSeparatorColor()
|
Color |
getSeparatorHeadingColor()
|
boolean |
getShowFlagHighlight()
|
boolean |
getShowFlagIcons()
|
boolean |
getShowFlagMessagesInline()
|
int |
getVerticalSpacing()
|
void |
install(org.apache.pivot.wtk.Component component)
|
void |
labelChanged(org.apache.pivot.wtk.Form form,
org.apache.pivot.wtk.Component field,
String previousLabel)
|
void |
layout()
|
void |
paint(Graphics2D graphics)
|
void |
requiredChanged(org.apache.pivot.wtk.Form form,
org.apache.pivot.wtk.Component field)
|
void |
sectionHeadingChanged(org.apache.pivot.wtk.Form.Section section)
|
void |
sectionInserted(org.apache.pivot.wtk.Form form,
int index)
|
void |
sectionsRemoved(org.apache.pivot.wtk.Form form,
int index,
org.apache.pivot.collections.Sequence<org.apache.pivot.wtk.Form.Section> removed)
|
void |
setDelimiter(String delimiter)
|
void |
setFill(boolean fill)
|
void |
setFlagIconOffset(int flagIconOffset)
|
void |
setFlagIconOffset(Number flagIconOffset)
|
void |
setHorizontalSpacing(int horizontalSpacing)
|
void |
setHorizontalSpacing(Number horizontalSpacing)
|
void |
setLeftAlignLabels(boolean leftAlignLabels)
|
void |
setPadding(org.apache.pivot.collections.Dictionary<String,?> padding)
|
void |
setPadding(org.apache.pivot.wtk.Insets padding)
|
void |
setPadding(int padding)
|
void |
setPadding(Number padding)
|
void |
setPadding(String padding)
|
void |
setSeparatorColor(Color separatorColor)
|
void |
setSeparatorColor(String separatorColor)
|
void |
setSeparatorHeadingColor(Color separatorHeadingColor)
|
void |
setSeparatorHeadingColor(String separatorHeadingColor)
|
void |
setShowFlagHighlight(boolean showFlagHighlight)
|
void |
setShowFlagIcons(boolean showFlagIcons)
|
void |
setShowFlagMessagesInline(boolean showFlagMessagesInline)
|
void |
setVerticalSpacing(int verticalSpacing)
|
void |
setVerticalSpacing(Number verticalSpacing)
|
| Methods inherited from class org.apache.pivot.wtk.skin.ContainerSkin |
componentInserted, componentMoved, componentsRemoved, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, isFocusable, isOpaque, mouseDown, mouseMove, mouseUp, mouseWheel, 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, heightLimitsChanged, invalidateComponent, keyPressed, keyReleased, keyTyped, locationChanged, menuHandlerChanged, mouseClick, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, mouseWheel, nameChanged, parentChanged, preferredSizeChanged, repaintComponent, repaintComponent, repaintComponent, repaintComponent, repaintComponent, setSize, sizeChanged, tooltipDelayChanged, tooltipTextChanged, tooltipTriggered, visibleChanged, widthLimitsChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TerraFormSkin
public TerraFormSkin()
install
public void install(org.apache.pivot.wtk.Component component)
- Specified by:
install in interface org.apache.pivot.wtk.Skin- Overrides:
install in class org.apache.pivot.wtk.skin.ContainerSkin
getPreferredWidth
public int getPreferredWidth(int height)
- Specified by:
getPreferredWidth in interface org.apache.pivot.wtk.ConstrainedVisual- Overrides:
getPreferredWidth in class org.apache.pivot.wtk.skin.ContainerSkin
getPreferredHeight
public int getPreferredHeight(int width)
- Specified by:
getPreferredHeight in interface org.apache.pivot.wtk.ConstrainedVisual- Overrides:
getPreferredHeight in class org.apache.pivot.wtk.skin.ContainerSkin
getPreferredSize
public org.apache.pivot.wtk.Dimensions getPreferredSize()
- Specified by:
getPreferredSize in interface org.apache.pivot.wtk.ConstrainedVisual- Overrides:
getPreferredSize in class org.apache.pivot.wtk.skin.ComponentSkin
getBaseline
public int getBaseline(int width,
int height)
- Specified by:
getBaseline in interface org.apache.pivot.wtk.ConstrainedVisual- Overrides:
getBaseline in class org.apache.pivot.wtk.skin.ComponentSkin
layout
public void layout()
- Specified by:
layout in interface org.apache.pivot.wtk.Skin
paint
public void paint(Graphics2D graphics)
- Specified by:
paint in interface org.apache.pivot.wtk.Visual- Overrides:
paint in class org.apache.pivot.wtk.skin.ContainerSkin
getPadding
public org.apache.pivot.wtk.Insets getPadding()
setPadding
public void setPadding(org.apache.pivot.wtk.Insets padding)
setPadding
public final void setPadding(org.apache.pivot.collections.Dictionary<String,?> padding)
setPadding
public final void setPadding(int padding)
setPadding
public final void setPadding(Number padding)
setPadding
public final void setPadding(String padding)
getHorizontalSpacing
public int getHorizontalSpacing()
setHorizontalSpacing
public void setHorizontalSpacing(int horizontalSpacing)
setHorizontalSpacing
public final void setHorizontalSpacing(Number horizontalSpacing)
getVerticalSpacing
public int getVerticalSpacing()
setVerticalSpacing
public void setVerticalSpacing(int verticalSpacing)
setVerticalSpacing
public final void setVerticalSpacing(Number verticalSpacing)
getFlagIconOffset
public int getFlagIconOffset()
setFlagIconOffset
public void setFlagIconOffset(int flagIconOffset)
setFlagIconOffset
public final void setFlagIconOffset(Number flagIconOffset)
getFill
public boolean getFill()
setFill
public void setFill(boolean fill)
getShowFlagIcons
public boolean getShowFlagIcons()
setShowFlagIcons
public void setShowFlagIcons(boolean showFlagIcons)
getShowFlagHighlight
public boolean getShowFlagHighlight()
setShowFlagHighlight
public void setShowFlagHighlight(boolean showFlagHighlight)
getShowFlagMessagesInline
public boolean getShowFlagMessagesInline()
setShowFlagMessagesInline
public void setShowFlagMessagesInline(boolean showFlagMessagesInline)
getLeftAlignLabels
public boolean getLeftAlignLabels()
setLeftAlignLabels
public void setLeftAlignLabels(boolean leftAlignLabels)
getDelimiter
public String getDelimiter()
setDelimiter
public void setDelimiter(String delimiter)
getSeparatorColor
public Color getSeparatorColor()
setSeparatorColor
public void setSeparatorColor(Color separatorColor)
setSeparatorColor
public final void setSeparatorColor(String separatorColor)
getSeparatorHeadingColor
public Color getSeparatorHeadingColor()
setSeparatorHeadingColor
public void setSeparatorHeadingColor(Color separatorHeadingColor)
setSeparatorHeadingColor
public final void setSeparatorHeadingColor(String separatorHeadingColor)
sectionInserted
public void sectionInserted(org.apache.pivot.wtk.Form form,
int index)
- Specified by:
sectionInserted in interface org.apache.pivot.wtk.FormListener
sectionsRemoved
public void sectionsRemoved(org.apache.pivot.wtk.Form form,
int index,
org.apache.pivot.collections.Sequence<org.apache.pivot.wtk.Form.Section> removed)
- Specified by:
sectionsRemoved in interface org.apache.pivot.wtk.FormListener
sectionHeadingChanged
public void sectionHeadingChanged(org.apache.pivot.wtk.Form.Section section)
- Specified by:
sectionHeadingChanged in interface org.apache.pivot.wtk.FormListener
fieldInserted
public void fieldInserted(org.apache.pivot.wtk.Form.Section section,
int index)
- Specified by:
fieldInserted in interface org.apache.pivot.wtk.FormListener
fieldsRemoved
public void fieldsRemoved(org.apache.pivot.wtk.Form.Section section,
int index,
org.apache.pivot.collections.Sequence<org.apache.pivot.wtk.Component> fields)
- Specified by:
fieldsRemoved in interface org.apache.pivot.wtk.FormListener
labelChanged
public void labelChanged(org.apache.pivot.wtk.Form form,
org.apache.pivot.wtk.Component field,
String previousLabel)
- Specified by:
labelChanged in interface org.apache.pivot.wtk.FormAttributeListener
requiredChanged
public void requiredChanged(org.apache.pivot.wtk.Form form,
org.apache.pivot.wtk.Component field)
- Specified by:
requiredChanged in interface org.apache.pivot.wtk.FormAttributeListener
flagChanged
public void flagChanged(org.apache.pivot.wtk.Form form,
org.apache.pivot.wtk.Component field,
org.apache.pivot.wtk.Form.Flag previousFlag)
- Specified by:
flagChanged in interface org.apache.pivot.wtk.FormAttributeListener