net.xoetrope.xui.helper
Class XAttributedComponentHelper
java.lang.Object
net.xoetrope.xui.helper.XAttributedComponentHelper
public class XAttributedComponentHelper
- extends java.lang.Object
A helper for setting common properties
Copyright (c) Xoetrope Ltd., 2002-2003
License: see license.txt
|
Method Summary |
static int |
setAttribute(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 |
XAttributedComponentHelper
public XAttributedComponentHelper()
setAttribute
public static int setAttribute(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:
attribName - the name of the attributeattribValue - the value of the attribute
- Returns:
- 0 for success, non zero for failure or to require some further action