Package jmri

Class NamedBeanPropertyDescriptor<E>

Type Parameters:
E - class of describer, e.g. Boolean.class
Direct Known Subclasses:
BooleanPropertyDescriptor, SelectionPropertyDescriptor

public abstract class NamedBeanPropertyDescriptor<E>
extends Object
Describes metadata about a given property key for a NamedBean.

This metadata is used by the BeanTable actions to display and edit the properties in question.

  • Field Summary

    Modifier and Type Field Description
    E defaultValue
    What should be displayed when a given Bean does not have this property set.
    String propertyKey
    Key of the property, to be used in the setProperty and getProperty functions on the NamedBean.
  • Constructor Summary

    Modifier Constructor Description
    protected NamedBeanPropertyDescriptor​(String propertyKey, E defaultValue)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(Object obj)
    Equals based on Property Key and Default value Class.
    abstract String getColumnHeaderText()
    Return user-visible text to render as a column header for the BeanTable representing this setting.
    Class<?> getValueClass()
    Get the Class of the property.
    int hashCode()
    hashCode based on Property Key and Default value Class.
    abstract boolean isEditable​(NamedBean bean)
    Determines whether this property is editable.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait