http://www.eteks.com

com.eteks.awt
Class PJAComponentPeer

java.lang.Object
  extended bycom.eteks.awt.PJAComponentPeer
All Implemented Interfaces:
java.awt.peer.ButtonPeer, java.awt.peer.CanvasPeer, java.awt.peer.CheckboxMenuItemPeer, java.awt.peer.CheckboxPeer, java.awt.peer.ChoicePeer, java.awt.peer.ComponentPeer, java.awt.peer.ContainerPeer, java.awt.peer.DialogPeer, java.awt.peer.FileDialogPeer, java.awt.peer.LabelPeer, java.awt.peer.ListPeer, java.awt.peer.MenuBarPeer, java.awt.peer.MenuComponentPeer, java.awt.peer.MenuItemPeer, java.awt.peer.MenuPeer, java.awt.peer.PanelPeer, java.awt.peer.PopupMenuPeer, java.awt.peer.ScrollbarPeer, java.awt.peer.ScrollPanePeer, java.awt.peer.TextAreaPeer, java.awt.peer.TextComponentPeer, java.awt.peer.TextFieldPeer, java.awt.peer.WindowPeer
Direct Known Subclasses:
PJAFramePeer, PJALightweightPeer

public class PJAComponentPeer
extends java.lang.Object
implements java.awt.peer.ButtonPeer, java.awt.peer.CanvasPeer, java.awt.peer.CheckboxMenuItemPeer, java.awt.peer.CheckboxPeer, java.awt.peer.ChoicePeer, java.awt.peer.ComponentPeer, java.awt.peer.ContainerPeer, java.awt.peer.DialogPeer, java.awt.peer.FileDialogPeer, java.awt.peer.LabelPeer, java.awt.peer.ListPeer, java.awt.peer.MenuBarPeer, java.awt.peer.MenuComponentPeer, java.awt.peer.MenuItemPeer, java.awt.peer.MenuPeer, java.awt.peer.PanelPeer, java.awt.peer.PopupMenuPeer, java.awt.peer.ScrollPanePeer, java.awt.peer.ScrollbarPeer, java.awt.peer.TextAreaPeer, java.awt.peer.TextComponentPeer, java.awt.peer.TextFieldPeer, java.awt.peer.WindowPeer

Pure Java AWT Component Peer. This implementation enables to create dummy components.

Since:
PJA1.0
Version:
2.4
Author:
Emmanuel Puybaret
See Also:
PJAToolkit

Constructor Summary
PJAComponentPeer()
          Deprecated. As of PJA version 1.2, should use PJAComponentPeer (Component) constructor or PJAMenuComponentPeer (MenuComponent) constructor instead.
PJAComponentPeer(java.awt.Component component)
          This method was added to keep a link to a component and be able to get its background color.
 
Method Summary
 void add(java.lang.String item, int index)
           
 void addHelpMenu(java.awt.Menu m)
           
 void addItem(java.awt.MenuItem item)
           
 void addItem(java.lang.String item, int index)
           
 void addMenu(java.awt.Menu m)
           
 void addSeparator()
           
 void beginLayout()
           
 void beginValidate()
           
 boolean canDetermineObscurity()
           
 int checkImage(java.awt.Image img, int w, int h, java.awt.image.ImageObserver o)
           
 void childResized(int w, int h)
           
 void clear()
          DEPRECATED: Replaced by removeAll().
 void coalescePaintEvent(java.awt.event.PaintEvent e)
           
 void createBuffers(int numBuffers, java.awt.BufferCapabilities caps)
           
 java.awt.Image createImage(java.awt.image.ImageProducer producer)
           
 java.awt.Image createImage(int width, int height)
          Creates an image of width x height pixels.
 java.awt.image.VolatileImage createVolatileImage(int width, int height)
           
 void delItem(int index)
           
 void delItems(int start, int end)
           
 void delMenu(int index)
           
 void deselect(int index)
           
 void destroyBuffers()
           
 void disable()
          DEPRECATED: Replaced by setEnabled(boolean).
 void dispose()
           
 void enable()
          DEPRECATED: Replaced by setEnabled(boolean).
 void endLayout()
           
 void endValidate()
           
 long filterEvents(long mask)
           
 void flip(java.awt.BufferCapabilities.FlipContents flipAction)
           
 java.awt.Image getBackBuffer()
           
 int getCaretPosition()
           
 java.awt.Rectangle getCharacterBounds(int i)
           
 java.awt.image.ColorModel getColorModel()
           
 java.awt.Component getComponent()
           
 java.awt.FontMetrics getFontMetrics(java.awt.Font font)
           
 java.awt.Graphics getGraphics()
           
 java.awt.GraphicsConfiguration getGraphicsConfiguration()
           
 int getHScrollbarHeight()
           
 int getIndexAtPoint(int x, int y)
           
 java.awt.Insets getInsets()
           
 java.awt.Point getLocationOnScreen()
           
 java.awt.Dimension getMinimumSize()
           
 java.awt.Dimension getMinimumSize(int rows)
           
 java.awt.Dimension getMinimumSize(int rows, int columns)
           
 java.awt.Dimension getPreferredSize()
           
 java.awt.Dimension getPreferredSize(int rows)
           
 java.awt.Dimension getPreferredSize(int rows, int columns)
           
 int[] getSelectedIndexes()
           
 int getSelectionEnd()
           
 int getSelectionStart()
           
 java.lang.String getText()
           
 java.awt.Toolkit getToolkit()
           
 int getVScrollbarWidth()
           
 void handleEvent(java.awt.AWTEvent e)
           
 int handleFocusTraversalEvent(java.awt.event.KeyEvent e)
           
 boolean handlesWheelScrolling()
           
 void hide()
          DEPRECATED: Replaced by setVisible(boolean).
 void insert(java.lang.String text, int pos)
           
 void insertText(java.lang.String txt, int pos)
          DEPRECATED: Replaced by insert(String, int).
 java.awt.Insets insets()
          DEPRECATED: Replaced by getInsets().
 boolean isFocusable()
           
 boolean isFocusTraversable()
           
 boolean isObscured()
           
 boolean isPaintPending()
           
 void makeVisible(int index)
           
 java.awt.Dimension minimumSize()
          DEPRECATED: Replaced by getMinimumSize().
 java.awt.Dimension minimumSize(int v)
          DEPRECATED: Replaced by getMinimumSize(int).
 java.awt.Dimension minimumSize(int rows, int cols)
          DEPRECATED: Replaced by getMinimumSize(int, int).
 void paint(java.awt.Graphics g)
           
 java.awt.Dimension preferredSize()
          DEPRECATED: Replaced by getPreferredSize().
 java.awt.Dimension preferredSize(int v)
          DEPRECATED: Replaced by getPreferredSize(int).
 java.awt.Dimension preferredSize(int rows, int cols)
          DEPRECATED: Replaced by getPreferredSize(int, int).
 boolean prepareImage(java.awt.Image img, int w, int h, java.awt.image.ImageObserver o)
           
 void print(java.awt.Graphics g)
           
 void remove(int index)
           
 void removeAll()
           
 void repaint(long tm, int x, int y, int width, int height)
           
 void replaceRange(java.lang.String text, int start, int end)
           
 void replaceText(java.lang.String txt, int start, int end)
          DEPRECATED: Replaced by ReplaceRange(String, int, int).
 void requestFocus()
           
 boolean requestFocus(java.awt.Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time)
           
 void reshape(int x, int y, int width, int height)
          DEPRECATED: Replaced by setBounds(int, int, int, int).
 void select(int index)
           
 void select(int selStart, int selEnd)
           
 void setAlignment(int alignment)
           
 void setBackground(java.awt.Color c)
           
 void setBounds(int x, int y, int width, int height)
           
 void setCaretPosition(int pos)
           
 void setCheckboxGroup(java.awt.CheckboxGroup g)
           
 void setCursor(java.awt.Cursor cursor)
           
 void setDirectory(java.lang.String dir)
           
 void setEchoChar(char echoChar)
           
 void setEchoCharacter(char c)
          DEPRECATED: Replaced by setEchoChar(char echoChar).
 void setEditable(boolean editable)
           
 void setEnabled(boolean b)
           
 void setFile(java.lang.String file)
           
 void setFilenameFilter(java.io.FilenameFilter filter)
           
 void setFont(java.awt.Font f)
           
 void setForeground(java.awt.Color c)
           
 void setLabel(java.lang.String label)
           
 void setLineIncrement(int l)
           
 void setMultipleMode(boolean b)
           
 void setMultipleSelections(boolean v)
          DEPRECATED: Replaced by setMultipleMode(boolean).
 void setPageIncrement(int l)
           
 void setResizable(boolean resizeable)
           
 void setScrollPosition(int x, int y)
           
 void setState(boolean state)
           
 void setText(java.lang.String label)
           
 void setTitle(java.lang.String title)
           
 void setUnitIncrement(java.awt.Adjustable adj, int u)
           
 void setValue(java.awt.Adjustable adj, int v)
           
 void setValues(int value, int visible, int minimum, int maximum)
           
 void setVisible(boolean b)
           
 void show()
          DEPRECATED: Replaced by setVisible(boolean).
 void show(java.awt.Event e)
           
 void toBack()
           
 void toFront()
           
 void updateCursorImmediately()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PJAComponentPeer

public PJAComponentPeer()
Deprecated. As of PJA version 1.2, should use PJAComponentPeer (Component) constructor or PJAMenuComponentPeer (MenuComponent) constructor instead.


PJAComponentPeer

public PJAComponentPeer(java.awt.Component component)
This method was added to keep a link to a component and be able to get its background color.

Since:
PJA1.2
Method Detail

getComponent

public java.awt.Component getComponent()

setVisible

public void setVisible(boolean b)
Specified by:
setVisible in interface java.awt.peer.ComponentPeer

setEnabled

public void setEnabled(boolean b)
Specified by:
setEnabled in interface java.awt.peer.ComponentPeer

paint

public void paint(java.awt.Graphics g)
Specified by:
paint in interface java.awt.peer.ComponentPeer

repaint

public void repaint(long tm,
                    int x,
                    int y,
                    int width,
                    int height)
Specified by:
repaint in interface java.awt.peer.ComponentPeer

print

public void print(java.awt.Graphics g)
Specified by:
print in interface java.awt.peer.ComponentPeer

setBounds

public void setBounds(int x,
                      int y,
                      int width,
                      int height)
Specified by:
setBounds in interface java.awt.peer.ComponentPeer

handleEvent

public void handleEvent(java.awt.AWTEvent e)
Specified by:
handleEvent in interface java.awt.peer.ComponentPeer

coalescePaintEvent

public void coalescePaintEvent(java.awt.event.PaintEvent e)
Specified by:
coalescePaintEvent in interface java.awt.peer.ComponentPeer

getLocationOnScreen

public java.awt.Point getLocationOnScreen()
Specified by:
getLocationOnScreen in interface java.awt.peer.ComponentPeer

getPreferredSize

public java.awt.Dimension getPreferredSize()
Specified by:
getPreferredSize in interface java.awt.peer.ComponentPeer

getMinimumSize

public java.awt.Dimension getMinimumSize()
Specified by:
getMinimumSize in interface java.awt.peer.ComponentPeer

getColorModel

public java.awt.image.ColorModel getColorModel()
Specified by:
getColorModel in interface java.awt.peer.ComponentPeer

getToolkit

public java.awt.Toolkit getToolkit()
Specified by:
getToolkit in interface java.awt.peer.ComponentPeer

getGraphics

public java.awt.Graphics getGraphics()
Specified by:
getGraphics in interface java.awt.peer.ComponentPeer

getFontMetrics

public java.awt.FontMetrics getFontMetrics(java.awt.Font font)
Specified by:
getFontMetrics in interface java.awt.peer.ComponentPeer

dispose

public void dispose()
Specified by:
dispose in interface java.awt.peer.ComponentPeer

setForeground

public void setForeground(java.awt.Color c)
Specified by:
setForeground in interface java.awt.peer.ComponentPeer

setBackground

public void setBackground(java.awt.Color c)
Specified by:
setBackground in interface java.awt.peer.ComponentPeer

setFont

public void setFont(java.awt.Font f)
Specified by:
setFont in interface java.awt.peer.ComponentPeer

setCursor

public void setCursor(java.awt.Cursor cursor)

requestFocus

public void requestFocus()

isFocusTraversable

public boolean isFocusTraversable()

createImage

public java.awt.Image createImage(java.awt.image.ImageProducer producer)
Specified by:
createImage in interface java.awt.peer.ComponentPeer

createImage

public java.awt.Image createImage(int width,
                                  int height)
Creates an image of width x height pixels.

Specified by:
createImage in interface java.awt.peer.ComponentPeer

prepareImage

public boolean prepareImage(java.awt.Image img,
                            int w,
                            int h,
                            java.awt.image.ImageObserver o)
Specified by:
prepareImage in interface java.awt.peer.ComponentPeer

checkImage

public int checkImage(java.awt.Image img,
                      int w,
                      int h,
                      java.awt.image.ImageObserver o)
Specified by:
checkImage in interface java.awt.peer.ComponentPeer

getGraphicsConfiguration

public java.awt.GraphicsConfiguration getGraphicsConfiguration()
Specified by:
getGraphicsConfiguration in interface java.awt.peer.ComponentPeer

preferredSize

public java.awt.Dimension preferredSize()
DEPRECATED: Replaced by getPreferredSize().

Specified by:
preferredSize in interface java.awt.peer.ComponentPeer

minimumSize

public java.awt.Dimension minimumSize()
DEPRECATED: Replaced by getMinimumSize().

Specified by:
minimumSize in interface java.awt.peer.ComponentPeer

show

public void show()
DEPRECATED: Replaced by setVisible(boolean).

Specified by:
show in interface java.awt.peer.ComponentPeer

hide

public void hide()
DEPRECATED: Replaced by setVisible(boolean).

Specified by:
hide in interface java.awt.peer.ComponentPeer

enable

public void enable()
DEPRECATED: Replaced by setEnabled(boolean).

Specified by:
enable in interface java.awt.peer.ComponentPeer

disable

public void disable()
DEPRECATED: Replaced by setEnabled(boolean).

Specified by:
disable in interface java.awt.peer.ComponentPeer

reshape

public void reshape(int x,
                    int y,
                    int width,
                    int height)
DEPRECATED: Replaced by setBounds(int, int, int, int).

Specified by:
reshape in interface java.awt.peer.ComponentPeer

isObscured

public boolean isObscured()
Specified by:
isObscured in interface java.awt.peer.ComponentPeer

canDetermineObscurity

public boolean canDetermineObscurity()
Specified by:
canDetermineObscurity in interface java.awt.peer.ComponentPeer

updateCursorImmediately

public void updateCursorImmediately()
Specified by:
updateCursorImmediately in interface java.awt.peer.ComponentPeer

requestFocus

public boolean requestFocus(java.awt.Component lightweightChild,
                            boolean temporary,
                            boolean focusedWindowChangeAllowed,
                            long time)
Specified by:
requestFocus in interface java.awt.peer.ComponentPeer

isFocusable

public boolean isFocusable()
Specified by:
isFocusable in interface java.awt.peer.ComponentPeer

handlesWheelScrolling

public boolean handlesWheelScrolling()
Specified by:
handlesWheelScrolling in interface java.awt.peer.ComponentPeer

getBackBuffer

public java.awt.Image getBackBuffer()
Specified by:
getBackBuffer in interface java.awt.peer.ComponentPeer

destroyBuffers

public void destroyBuffers()
Specified by:
destroyBuffers in interface java.awt.peer.ComponentPeer

createVolatileImage

public java.awt.image.VolatileImage createVolatileImage(int width,
                                                        int height)
Specified by:
createVolatileImage in interface java.awt.peer.ComponentPeer

flip

public void flip(java.awt.BufferCapabilities.FlipContents flipAction)
Specified by:
flip in interface java.awt.peer.ComponentPeer

createBuffers

public void createBuffers(int numBuffers,
                          java.awt.BufferCapabilities caps)
                   throws java.awt.AWTException
Specified by:
createBuffers in interface java.awt.peer.ComponentPeer
Throws:
java.awt.AWTException

setLabel

public void setLabel(java.lang.String label)
Specified by:
setLabel in interface java.awt.peer.ButtonPeer

setState

public void setState(boolean state)
Specified by:
setState in interface java.awt.peer.CheckboxMenuItemPeer

setCheckboxGroup

public void setCheckboxGroup(java.awt.CheckboxGroup g)
Specified by:
setCheckboxGroup in interface java.awt.peer.CheckboxPeer

add

public void add(java.lang.String item,
                int index)
Specified by:
add in interface java.awt.peer.ChoicePeer

remove

public void remove(int index)
Specified by:
remove in interface java.awt.peer.ChoicePeer

select

public void select(int index)
Specified by:
select in interface java.awt.peer.ChoicePeer

addItem

public void addItem(java.lang.String item,
                    int index)
Specified by:
addItem in interface java.awt.peer.ChoicePeer

setText

public void setText(java.lang.String label)
Specified by:
setText in interface java.awt.peer.LabelPeer

setAlignment

public void setAlignment(int alignment)
Specified by:
setAlignment in interface java.awt.peer.LabelPeer

getSelectedIndexes

public int[] getSelectedIndexes()
Specified by:
getSelectedIndexes in interface java.awt.peer.ListPeer

delItems

public void delItems(int start,
                     int end)
Specified by:
delItems in interface java.awt.peer.ListPeer

removeAll

public void removeAll()
Specified by:
removeAll in interface java.awt.peer.ChoicePeer

deselect

public void deselect(int index)
Specified by:
deselect in interface java.awt.peer.ListPeer

makeVisible

public void makeVisible(int index)
Specified by:
makeVisible in interface java.awt.peer.ListPeer

setMultipleMode

public void setMultipleMode(boolean b)
Specified by:
setMultipleMode in interface java.awt.peer.ListPeer

getPreferredSize

public java.awt.Dimension getPreferredSize(int rows)
Specified by:
getPreferredSize in interface java.awt.peer.ListPeer

getMinimumSize

public java.awt.Dimension getMinimumSize(int rows)
Specified by:
getMinimumSize in interface java.awt.peer.ListPeer

clear

public void clear()
DEPRECATED: Replaced by removeAll().

Specified by:
clear in interface java.awt.peer.ListPeer

setMultipleSelections

public void setMultipleSelections(boolean v)
DEPRECATED: Replaced by setMultipleMode(boolean).

Specified by:
setMultipleSelections in interface java.awt.peer.ListPeer

preferredSize

public java.awt.Dimension preferredSize(int v)
DEPRECATED: Replaced by getPreferredSize(int).

Specified by:
preferredSize in interface java.awt.peer.ListPeer

minimumSize

public java.awt.Dimension minimumSize(int v)
DEPRECATED: Replaced by getMinimumSize(int).

Specified by:
minimumSize in interface java.awt.peer.ListPeer

setValues

public void setValues(int value,
                      int visible,
                      int minimum,
                      int maximum)
Specified by:
setValues in interface java.awt.peer.ScrollbarPeer

setLineIncrement

public void setLineIncrement(int l)
Specified by:
setLineIncrement in interface java.awt.peer.ScrollbarPeer

setPageIncrement

public void setPageIncrement(int l)
Specified by:
setPageIncrement in interface java.awt.peer.ScrollbarPeer

getHScrollbarHeight

public int getHScrollbarHeight()
Specified by:
getHScrollbarHeight in interface java.awt.peer.ScrollPanePeer

getVScrollbarWidth

public int getVScrollbarWidth()
Specified by:
getVScrollbarWidth in interface java.awt.peer.ScrollPanePeer

setScrollPosition

public void setScrollPosition(int x,
                              int y)
Specified by:
setScrollPosition in interface java.awt.peer.ScrollPanePeer

childResized

public void childResized(int w,
                         int h)
Specified by:
childResized in interface java.awt.peer.ScrollPanePeer

setUnitIncrement

public void setUnitIncrement(java.awt.Adjustable adj,
                             int u)
Specified by:
setUnitIncrement in interface java.awt.peer.ScrollPanePeer

setValue

public void setValue(java.awt.Adjustable adj,
                     int v)
Specified by:
setValue in interface java.awt.peer.ScrollPanePeer

setEditable

public void setEditable(boolean editable)
Specified by:
setEditable in interface java.awt.peer.TextComponentPeer

getText

public java.lang.String getText()
Specified by:
getText in interface java.awt.peer.TextComponentPeer

getSelectionStart

public int getSelectionStart()
Specified by:
getSelectionStart in interface java.awt.peer.TextComponentPeer

getSelectionEnd

public int getSelectionEnd()
Specified by:
getSelectionEnd in interface java.awt.peer.TextComponentPeer

select

public void select(int selStart,
                   int selEnd)
Specified by:
select in interface java.awt.peer.TextComponentPeer

setCaretPosition

public void setCaretPosition(int pos)
Specified by:
setCaretPosition in interface java.awt.peer.TextComponentPeer

getCaretPosition

public int getCaretPosition()
Specified by:
getCaretPosition in interface java.awt.peer.TextComponentPeer

getIndexAtPoint

public int getIndexAtPoint(int x,
                           int y)
Specified by:
getIndexAtPoint in interface java.awt.peer.TextComponentPeer

getCharacterBounds

public java.awt.Rectangle getCharacterBounds(int i)
Specified by:
getCharacterBounds in interface java.awt.peer.TextComponentPeer

filterEvents

public long filterEvents(long mask)
Specified by:
filterEvents in interface java.awt.peer.TextComponentPeer

insert

public void insert(java.lang.String text,
                   int pos)
Specified by:
insert in interface java.awt.peer.TextAreaPeer

replaceRange

public void replaceRange(java.lang.String text,
                         int start,
                         int end)
Specified by:
replaceRange in interface java.awt.peer.TextAreaPeer

getPreferredSize

public java.awt.Dimension getPreferredSize(int rows,
                                           int columns)
Specified by:
getPreferredSize in interface java.awt.peer.TextAreaPeer

getMinimumSize

public java.awt.Dimension getMinimumSize(int rows,
                                         int columns)
Specified by:
getMinimumSize in interface java.awt.peer.TextAreaPeer

insertText

public void insertText(java.lang.String txt,
                       int pos)
DEPRECATED: Replaced by insert(String, int).

Specified by:
insertText in interface java.awt.peer.TextAreaPeer

replaceText

public void replaceText(java.lang.String txt,
                        int start,
                        int end)
DEPRECATED: Replaced by ReplaceRange(String, int, int).

Specified by:
replaceText in interface java.awt.peer.TextAreaPeer

preferredSize

public java.awt.Dimension preferredSize(int rows,
                                        int cols)
DEPRECATED: Replaced by getPreferredSize(int, int).

Specified by:
preferredSize in interface java.awt.peer.TextAreaPeer

minimumSize

public java.awt.Dimension minimumSize(int rows,
                                      int cols)
DEPRECATED: Replaced by getMinimumSize(int, int).

Specified by:
minimumSize in interface java.awt.peer.TextAreaPeer

setEchoChar

public void setEchoChar(char echoChar)
Specified by:
setEchoChar in interface java.awt.peer.TextFieldPeer

setEchoCharacter

public void setEchoCharacter(char c)
DEPRECATED: Replaced by setEchoChar(char echoChar).

Specified by:
setEchoCharacter in interface java.awt.peer.TextFieldPeer

getInsets

public java.awt.Insets getInsets()
Specified by:
getInsets in interface java.awt.peer.ContainerPeer

beginValidate

public void beginValidate()
Specified by:
beginValidate in interface java.awt.peer.ContainerPeer

endValidate

public void endValidate()
Specified by:
endValidate in interface java.awt.peer.ContainerPeer

beginLayout

public void beginLayout()
Specified by:
beginLayout in interface java.awt.peer.ContainerPeer

endLayout

public void endLayout()
Specified by:
endLayout in interface java.awt.peer.ContainerPeer

isPaintPending

public boolean isPaintPending()
Specified by:
isPaintPending in interface java.awt.peer.ContainerPeer

insets

public java.awt.Insets insets()
DEPRECATED: Replaced by getInsets().

Specified by:
insets in interface java.awt.peer.ContainerPeer

toFront

public void toFront()
Specified by:
toFront in interface java.awt.peer.WindowPeer

toBack

public void toBack()
Specified by:
toBack in interface java.awt.peer.WindowPeer

handleFocusTraversalEvent

public int handleFocusTraversalEvent(java.awt.event.KeyEvent e)

setTitle

public void setTitle(java.lang.String title)
Specified by:
setTitle in interface java.awt.peer.DialogPeer

setResizable

public void setResizable(boolean resizeable)
Specified by:
setResizable in interface java.awt.peer.DialogPeer

setFile

public void setFile(java.lang.String file)
Specified by:
setFile in interface java.awt.peer.FileDialogPeer

setDirectory

public void setDirectory(java.lang.String dir)
Specified by:
setDirectory in interface java.awt.peer.FileDialogPeer

setFilenameFilter

public void setFilenameFilter(java.io.FilenameFilter filter)
Specified by:
setFilenameFilter in interface java.awt.peer.FileDialogPeer

addMenu

public void addMenu(java.awt.Menu m)
Specified by:
addMenu in interface java.awt.peer.MenuBarPeer

delMenu

public void delMenu(int index)
Specified by:
delMenu in interface java.awt.peer.MenuBarPeer

addHelpMenu

public void addHelpMenu(java.awt.Menu m)
Specified by:
addHelpMenu in interface java.awt.peer.MenuBarPeer

addSeparator

public void addSeparator()
Specified by:
addSeparator in interface java.awt.peer.MenuPeer

addItem

public void addItem(java.awt.MenuItem item)
Specified by:
addItem in interface java.awt.peer.MenuPeer

delItem

public void delItem(int index)
Specified by:
delItem in interface java.awt.peer.MenuPeer

show

public void show(java.awt.Event e)
Specified by:
show in interface java.awt.peer.PopupMenuPeer

© 1997-2003 eTeks - All rights reserved