Class

cogdebugger

Property

Related Doc: package cogdebugger

Permalink

abstract class Property[T] extends Trigger with Publisher

Represents part of the state of some GUI element (e.g. the zoom level of a visualization). Meant to help assist with preservation of UI settings and appearance across application runs.

Setting a Property's value will cause the onPropertyChanged method to be called, which by default calls the apply method of the installed scala.swing.Action. The default Action, however, is scala.swing.Action.NoAction, which of course does nothing. Either install an appropriate Action or override onPropertyChanged if you want to trigger some behavior when the value of the Property is changed.

Each property can produce an XML tag suitable for saving into a properties file, and can later parse that tag to restore the previous state.

Linear Supertypes
Publisher, Reactor, Trigger, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Property
  2. Publisher
  3. Reactor
  4. Trigger
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Property(action: Action, initialValue: T)

    Permalink
  2. new Property(name: String, initialValue: T)

    Permalink
  3. new Property(name: String, action: Action, initialValue: T)

    Permalink

Abstract Value Members

  1. abstract def parseText(text: String): Option[T]

    Permalink
  2. abstract def typeString: String

    Permalink

    A String name for the type this Property represents.

    A String name for the type this Property represents. Used in a runtime check to safeguard against using the restore method from a different Property subclass on the XML generated by this Property.

    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. var _value: T

    Permalink
    Attributes
    protected
  5. var action: Action

    Permalink
    Definition Classes
    Property → Trigger
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def deafTo(ps: Publisher*): Unit

    Permalink
    Definition Classes
    Reactor
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def listenTo(ps: Publisher*): Unit

    Permalink
    Definition Classes
    Reactor
  16. val listeners: RefSet[Reaction] { val underlying: scala.collection.mutable.HashSet[scala.ref.Reference[scala.swing.Reactions.Reaction]] }

    Permalink
    Attributes
    protected
    Definition Classes
    Publisher
  17. val name: String

    Permalink
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. def onPropertyChange(oldValue: T, newValue: T): Unit

    Permalink
  22. def publish(e: Event): Unit

    Permalink
    Definition Classes
    Publisher
  23. val reactions: Reactions

    Permalink
    Definition Classes
    Reactor
  24. def restore(node: Node): Unit

    Permalink
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. def value: T

    Permalink
  28. def value_=(newValue: T): Unit

    Permalink
  29. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. def xmlTag: Elem

    Permalink

Inherited from Publisher

Inherited from Reactor

Inherited from Trigger

Inherited from AnyRef

Inherited from Any

Ungrouped