net.xoetrope.xui.helper
Class XAttributedComponentHelper

java.lang.Object
  extended by 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


Constructor Summary
XAttributedComponentHelper()
           
 
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
 

Constructor Detail

XAttributedComponentHelper

public XAttributedComponentHelper()
Method Detail

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.
  1. alignment, value=(Left|Right|Center|Leading|Trailing)
  2. border, value=0, to tun off the border
  3. margin, value=the size in pixels of the margin (the space between the border and the text)
  4. tooltip, value=the tooltip text
  5. format, value=integer|curreny|date|decimal or a mask for a mask format
  6. editable, value=(true|false) set the edit to being editable

Parameters:
attribName - the name of the attribute
attribValue - the value of the attribute
Returns:
0 for success, non zero for failure or to require some further action