com.silvermindsoftware.hitch.binding
Class DefaultProperties

java.lang.Object
  extended by com.silvermindsoftware.hitch.binding.DefaultProperties

public class DefaultProperties
extends Object

This class holds a mapping of objects or classes to their default property.

Author:
Stefan Wismer (SWI)
File-location:
DefaultProperties
Last check-in date:
2009-08-04 14:25:40 +0200 (Di, 04. Aug 2009) by swismer for revision 3874

Constructor Summary
DefaultProperties()
          Constructor with support for common GUI elements.
 
Method Summary
 org.jdesktop.beansbinding.Property getDefaultProperty(Object widget)
          Returns the default property for a widget or widget class.
 void register(Object widget, org.jdesktop.beansbinding.Property property)
          Registers a new default property for a widget or widget class.
 void register(Object widget, String property)
          Registers a new default property for a widget or widget class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultProperties

public DefaultProperties()
Constructor with support for common GUI elements.

Method Detail

register

public void register(Object widget,
                     String property)
Registers a new default property for a widget or widget class.

Parameters:
widget - the widget or widget class
property - the property as String

register

public void register(Object widget,
                     org.jdesktop.beansbinding.Property property)
Registers a new default property for a widget or widget class.

Parameters:
widget - the widget or widget class
property - the property as Property

getDefaultProperty

public org.jdesktop.beansbinding.Property getDefaultProperty(Object widget)
Returns the default property for a widget or widget class.

Parameters:
widget - the widget or widget class
Returns:
the default property


Copyright © 2005-2011 ELCA. All Rights Reserved.