examples.awt
Class AwtFormat
java.lang.Object
|
+--examples.awt.AwtFormat
- public class AwtFormat
- extends java.lang.Object
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 |
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
AwtFormat
public AwtFormat(AwtEvent awtEvent,
int indexMask)
- Constructor.
- Parameters:
awtEvent
- An AwtEvent objectindexMask
- An integer containg the index mask.
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 valuemsg
- The Text String containing the msg.