org.formaria.swing.helper
Class AttributeHelper
java.lang.Object
org.formaria.swing.helper.AttributeHelper
public class AttributeHelper
- extends java.lang.Object
A class to provide some backward compatibility with the deprecated
AttributedComponent interface
Copyright (c) Formaria Ltd., 2008
License: see http://www.formaria.org/licensing
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributeHelper
public AttributeHelper(Project project)
setAttribute
public int setAttribute(java.lang.Object component,
java.lang.String attribName,
java.lang.Object attribValue)
superSetAttribute
protected int superSetAttribute(java.lang.Object component)
setAttribute
protected int setAttribute(java.lang.Object component,
java.lang.Class klass)
getNextHelper
public AttributeHelper getNextHelper()
- Returns:
- the nextHelper
setNextHelper
public void setNextHelper(AttributeHelper nextHelper)
- Parameters:
nextHelper - the nextHelper to set
setAttribute
public int setAttribute(Slider slider)
- Set one or more attributes of the component.
- min, value=the minimum field value
- max, value=the maximum field value
- step, value=the field step size
- Returns:
- 0 for success, non zero otherwise
setAttribute
public int setAttribute(CalendarPanel cp)
- Set one or more attributes of the component. Currently this handles the
attributes
- view (month|day) or
- format, value=the date format
- style, value=the default style
- selectedStyle, value=the selected date's style
- weekendStyle, value=the weekend date style
- highlightStyle, value=the rollover/highlighted date style
- headerStyle, value=the header style
- threeDStyle, value=the 3d element style
- daynames, value=true to show the day names
- header, value=true to show the date navigation headers
- Returns:
- 0 for success, non zero otherwise