org.formaria.aria.helper
Class AttributedComponentHelper
java.lang.Object
org.formaria.aria.helper.AttributedComponentHelper
public class AttributedComponentHelper
- extends java.lang.Object
A helper for setting common properties
Copyright (c) Formaria Ltd., 2008
License: see license.txt
|
Method Summary |
static int |
setAttribute(Project project,
java.lang.Object comp,
java.lang.String attribName,
java.lang.Object attribValue)
Set one or more attributes of the component. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributedComponentHelper
public AttributedComponentHelper()
setAttribute
public static int setAttribute(Project project,
java.lang.Object comp,
java.lang.String attribName,
java.lang.Object attribValue)
- Set one or more attributes of the component.
- alignment, value=(Left|Right|Center|Leading|Trailing)
- border, value=0, to tun off the border
- margin, value=the size in pixels of the margin (the space between the border and the text)
- tooltip, value=the tooltip text
- format, value=integer|curreny|date|decimal or a mask for a mask format
- editable, value=(true|false) set the edit to being editable
- Parameters:
project - the current projectattribName - the name of the attributeattribValue - the value of the attribute
- Returns:
- 0 for success, non zero for failure or to require some further action