Websphere MQ Everyplace

examples.awt
Class AwtFormat

java.lang.Object
  |
  +--examples.awt.AwtFormat

public class AwtFormat
extends java.lang.Object


Field Summary
protected  java.lang.Object actionObject
           
protected  java.lang.String actionString
           
protected  java.awt.event.ItemListener checkAction
           
protected  AwtEvent eventAWT
           
protected  java.awt.event.KeyAdapter keyAction
           
protected  int maskIndex
           
protected  java.util.Vector objectTable
           
protected  java.awt.event.ActionListener selectAction
           
static short[] version
           
 
Constructor Summary
AwtFormat(AwtEvent awtEvent, int indexMask)
          Constructor.
 
Method Summary
protected  void addToMenu(java.awt.Menu m, java.lang.String[] items, int subIndex)
           
 int getActionIndex()
           
 java.lang.String getActionString()
           
 boolean getCheckState(int index)
           
 java.lang.String getChoice(int index)
           
 java.lang.Object getObject(int index)
           
 java.lang.String getText(int index)
           
 java.awt.MenuBar menuBar(java.lang.String[][][] items)
          Format the components in a Menu.
 java.awt.Panel panel(java.awt.Panel p, java.lang.String[][][] items)
          Format the components in a panel.
 void setText(int index, java.lang.String msg)
          Set text in to the specified Index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version

public static short[] version

actionObject

protected java.lang.Object actionObject

actionString

protected java.lang.String actionString

eventAWT

protected AwtEvent eventAWT

checkAction

protected java.awt.event.ItemListener checkAction

maskIndex

protected int maskIndex

keyAction

protected java.awt.event.KeyAdapter keyAction

objectTable

protected java.util.Vector objectTable

selectAction

protected java.awt.event.ActionListener selectAction
Constructor Detail

AwtFormat

public AwtFormat(AwtEvent awtEvent,
                 int indexMask)
Constructor.

Parameters:
awtEvent - An AwtEvent object
indexMask - An integer containg the index mask.
Method Detail

addToMenu

protected void addToMenu(java.awt.Menu m,
                         java.lang.String[] items,
                         int subIndex)

getActionIndex

public int getActionIndex()

getActionString

public java.lang.String getActionString()

getCheckState

public boolean getCheckState(int index)

getChoice

public java.lang.String getChoice(int index)

getObject

public java.lang.Object getObject(int index)

getText

public java.lang.String getText(int index)

menuBar

public java.awt.MenuBar menuBar(java.lang.String[][][] items)
Format the components in a Menu.


panel

public java.awt.Panel panel(java.awt.Panel p,
                            java.lang.String[][][] items)
Format the components in a panel.

Parameters:
p - java.awt.Panel
Returns:
java.awt.Panel

setText

public void setText(int index,
                    java.lang.String msg)
Set text in to the specified Index.

Parameters:
index - Integer index value
msg - The Text String containing the msg.

Websphere MQ Everyplace