Documentation of 'jv.objectGui.PsToolbar' Java class
PsToolbar ("JavaView Reference Manual")
"JavaView? v5.03.003"
jv.objectGui

Class PsToolbar

  • All Implemented Interfaces:
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, PsUpdateIf


    public final class PsToolbar
    extends PsPanel
    An icon image which allows to select among different text strings like an AWT list. Here just an icon is shown, and the list is shown in a popup window when a user clicks on the icon.

    Usage:

               toolItem = new PsToolbar(PsToolbar.TOOLBAR_OPENDIR); // Determines the icon image.
               toolItem.addActionListener(this);    // Register the current container as listener.
               toolItem.addChoice("first string");  // Add a number of strings.
               toolItem.addChoice("second string");
               this.add(toolItem)
     

    In the actionPerformed() method of this container catch events:

               if (event.getSource() == toolItem)
           String actionCmd = event.getActionCommand();
     
    See Also:
    Serialized Form
    Author:
    Konrad Polthier
    Version:
    18.11.06, 1.00 created (kp)
"JavaView? v5.03.003"

"

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

You see the box below because you did not login.