cz.cuni.amis.nb.util
Class PeriodicalyUpdatedProperty<T>

Package class diagram package PeriodicalyUpdatedProperty
java.lang.Object
  extended by java.beans.FeatureDescriptor
      extended by org.openide.nodes.Node.Property<T>
          extended by org.openide.nodes.PropertySupport<T>
              extended by cz.cuni.amis.nb.util.AutoNamedProp<T>
                  extended by cz.cuni.amis.nb.util.PeriodicalyUpdatedProperty<T>

public class PeriodicalyUpdatedProperty<T>
extends AutoNamedProp<T>

Read only property that will be regularly updated.

Author:
ik

Nested Class Summary
 
Nested classes/interfaces inherited from class org.openide.nodes.PropertySupport
org.openide.nodes.PropertySupport.Name, org.openide.nodes.PropertySupport.ReadOnly<T>, org.openide.nodes.PropertySupport.ReadWrite<T>, org.openide.nodes.PropertySupport.Reflection<T>, org.openide.nodes.PropertySupport.WriteOnly<T>
 
Field Summary
 
Fields inherited from class cz.cuni.amis.nb.util.AutoNamedProp
PROP_NAME_PREFIX, propCounter
 
Constructor Summary
PeriodicalyUpdatedProperty(Object source, String propName, Class<T> type, String displayName, String shortDescription)
           
 
Method Summary
 T getValue()
           
 void setValue(T val)
           
 
Methods inherited from class org.openide.nodes.PropertySupport
canRead, canWrite
 
Methods inherited from class org.openide.nodes.Node.Property
equals, getHtmlDisplayName, getPropertyEditor, getValueType, hashCode, isDefaultValue, restoreDefaultValue, supportsDefaultValue
 
Methods inherited from class java.beans.FeatureDescriptor
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeriodicalyUpdatedProperty

public PeriodicalyUpdatedProperty(Object source,
                                  String propName,
                                  Class<T> type,
                                  String displayName,
                                  String shortDescription)
                           throws NoSuchMethodException
Throws:
NoSuchMethodException
Method Detail

getValue

public T getValue()
           throws IllegalAccessException,
                  InvocationTargetException
Specified by:
getValue in class org.openide.nodes.Node.Property<T>
Throws:
IllegalAccessException
InvocationTargetException

setValue

public void setValue(T val)
              throws IllegalAccessException,
                     IllegalArgumentException,
                     InvocationTargetException
Specified by:
setValue in class org.openide.nodes.Node.Property<T>
Throws:
IllegalAccessException
IllegalArgumentException
InvocationTargetException


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.