Documentation of 'jvx.util.PuEnum' Java class
PuEnum ("JavaView Reference Manual")
"JavaView? v5.03.003"
jvx.util

Class PuEnum

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, PsUpdateIf


    public final class PuEnum
    extends PsObject
    Basic enum class with update functionality and panel containing a choice.
    See Also:
    Serialized Form
    Author:
    Andreas Haferburg
    Version:
    27.01.07, 1.00 created (ah)
    • Constructor Detail

      • PuEnum

        public PuEnum(java.lang.String name)
        Create new instance with given name. The name appears as label on the choice.

        In order to receive update events of this choice one might either assign a parent or register an update listener.

        Parameters:
        name - Name of boolean to appear as label in choice.
      • PuEnum

        public PuEnum(java.lang.String name,
                      PsUpdateIf parent)
        Create new instance with given name and parent. The name appears as label on the choice, and the parent is informed whenever the choice has changed using parent.update(this).
        Parameters:
        name - Name of boolean to appear as label in choice.
        parent - Parent of boolean to receive update events.
    • Method Detail

      • init

        public void init()
        Assign default state, and may be used to reset instance.
        Overrides:
        init in class PsObject
      • add

        public void add(java.lang.String item)
      • remove

        public void remove(java.lang.String item)
      • remove

        public void remove(int item)
      • clear

        public void clear()
      • getItemCount

        public int getItemCount()
      • getItem

        public java.lang.String getItem(int index)
      • set

        public void set(int index,
                        java.lang.String item)
      • insert

        public void insert(java.lang.String item,
                           int index)
      • setIndex

        public void setIndex(int state)
        Set the state of the choice.
      • getIndex

        public int getIndex()
        Get current state.
      • getDefIndex

        public int getDefIndex()
        Get the default state which is used when this object is reset.
        See Also:
        setDefIndex(int), getIndex()
      • setDefIndex

        public void setDefIndex(int state)
        Set default state to be assigned when init() is called as reset.
"JavaView? v5.03.003"

"

The software JavaView? is copyright protected. All Rights Reserved.
"

You see the box below because you did not login.