|
http://www.eteks.com | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.eteks.awt.PJAComponentPeer
Pure Java AWT Component Peer. This implementation enables to create dummy components.
PJAToolkit
Fields inherited from interface java.awt.peer.WindowPeer |
CONSUME_EVENT, FOCUS_NEXT, FOCUS_PREVIOUS, IGNORE_EVENT |
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)
|
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. |
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)
|
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 |
public PJAComponentPeer()
PJAComponentPeer (Component)
constructor
or PJAMenuComponentPeer (MenuComponent)
constructor instead.
public PJAComponentPeer(java.awt.Component component)
Method Detail |
public java.awt.Component getComponent()
public void setVisible(boolean b)
setVisible
in interface java.awt.peer.ComponentPeer
public void setEnabled(boolean b)
setEnabled
in interface java.awt.peer.ComponentPeer
public void paint(java.awt.Graphics g)
paint
in interface java.awt.peer.ComponentPeer
public void repaint(long tm, int x, int y, int width, int height)
repaint
in interface java.awt.peer.ComponentPeer
public void print(java.awt.Graphics g)
print
in interface java.awt.peer.ComponentPeer
public void setBounds(int x, int y, int width, int height)
setBounds
in interface java.awt.peer.ComponentPeer
public void handleEvent(java.awt.AWTEvent e)
handleEvent
in interface java.awt.peer.ComponentPeer
public void coalescePaintEvent(java.awt.event.PaintEvent e)
coalescePaintEvent
in interface java.awt.peer.ComponentPeer
public java.awt.Point getLocationOnScreen()
getLocationOnScreen
in interface java.awt.peer.ComponentPeer
public java.awt.Dimension getPreferredSize()
getPreferredSize
in interface java.awt.peer.ComponentPeer
public java.awt.Dimension getMinimumSize()
getMinimumSize
in interface java.awt.peer.ComponentPeer
public java.awt.image.ColorModel getColorModel()
getColorModel
in interface java.awt.peer.ComponentPeer
public java.awt.Toolkit getToolkit()
getToolkit
in interface java.awt.peer.ComponentPeer
public java.awt.Graphics getGraphics()
getGraphics
in interface java.awt.peer.ComponentPeer
public java.awt.FontMetrics getFontMetrics(java.awt.Font font)
getFontMetrics
in interface java.awt.peer.ComponentPeer
public void dispose()
dispose
in interface java.awt.peer.ComponentPeer
public void setForeground(java.awt.Color c)
setForeground
in interface java.awt.peer.ComponentPeer
public void setBackground(java.awt.Color c)
setBackground
in interface java.awt.peer.ComponentPeer
public void setFont(java.awt.Font f)
setFont
in interface java.awt.peer.ComponentPeer
public void setCursor(java.awt.Cursor cursor)
setCursor
in interface java.awt.peer.ComponentPeer
public void requestFocus()
requestFocus
in interface java.awt.peer.ComponentPeer
public boolean isFocusTraversable()
isFocusTraversable
in interface java.awt.peer.ComponentPeer
public java.awt.Image createImage(java.awt.image.ImageProducer producer)
createImage
in interface java.awt.peer.ComponentPeer
public java.awt.Image createImage(int width, int height)
width x height
pixels.createImage
in interface java.awt.peer.ComponentPeer
public boolean prepareImage(java.awt.Image img, int w, int h, java.awt.image.ImageObserver o)
prepareImage
in interface java.awt.peer.ComponentPeer
public int checkImage(java.awt.Image img, int w, int h, java.awt.image.ImageObserver o)
checkImage
in interface java.awt.peer.ComponentPeer
public java.awt.GraphicsConfiguration getGraphicsConfiguration()
getGraphicsConfiguration
in interface java.awt.peer.ComponentPeer
public java.awt.Dimension preferredSize()
preferredSize
in interface java.awt.peer.ComponentPeer
public java.awt.Dimension minimumSize()
minimumSize
in interface java.awt.peer.ComponentPeer
public void show()
show
in interface java.awt.peer.ComponentPeer
public void hide()
hide
in interface java.awt.peer.ComponentPeer
public void enable()
enable
in interface java.awt.peer.ComponentPeer
public void disable()
disable
in interface java.awt.peer.ComponentPeer
public void reshape(int x, int y, int width, int height)
reshape
in interface java.awt.peer.ComponentPeer
public boolean isObscured()
public boolean canDetermineObscurity()
public void updateCursorImmediately()
public boolean requestFocus(java.awt.Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time)
public boolean isFocusable()
public boolean handlesWheelScrolling()
public java.awt.Image getBackBuffer()
public void destroyBuffers()
public void setLabel(java.lang.String label)
setLabel
in interface java.awt.peer.ButtonPeer
public void setState(boolean state)
setState
in interface java.awt.peer.CheckboxMenuItemPeer
public void setCheckboxGroup(java.awt.CheckboxGroup g)
setCheckboxGroup
in interface java.awt.peer.CheckboxPeer
public void add(java.lang.String item, int index)
add
in interface java.awt.peer.ChoicePeer
public void remove(int index)
remove
in interface java.awt.peer.ChoicePeer
public void select(int index)
select
in interface java.awt.peer.ChoicePeer
public void addItem(java.lang.String item, int index)
addItem
in interface java.awt.peer.ChoicePeer
public void setText(java.lang.String label)
setText
in interface java.awt.peer.LabelPeer
public void setAlignment(int alignment)
setAlignment
in interface java.awt.peer.LabelPeer
public int[] getSelectedIndexes()
getSelectedIndexes
in interface java.awt.peer.ListPeer
public void delItems(int start, int end)
delItems
in interface java.awt.peer.ListPeer
public void removeAll()
removeAll
in interface java.awt.peer.ChoicePeer
public void deselect(int index)
deselect
in interface java.awt.peer.ListPeer
public void makeVisible(int index)
makeVisible
in interface java.awt.peer.ListPeer
public void setMultipleMode(boolean b)
setMultipleMode
in interface java.awt.peer.ListPeer
public java.awt.Dimension getPreferredSize(int rows)
getPreferredSize
in interface java.awt.peer.ListPeer
public java.awt.Dimension getMinimumSize(int rows)
getMinimumSize
in interface java.awt.peer.ListPeer
public void clear()
clear
in interface java.awt.peer.ListPeer
public void setMultipleSelections(boolean v)
setMultipleSelections
in interface java.awt.peer.ListPeer
public java.awt.Dimension preferredSize(int v)
preferredSize
in interface java.awt.peer.ListPeer
public java.awt.Dimension minimumSize(int v)
minimumSize
in interface java.awt.peer.ListPeer
public void setValues(int value, int visible, int minimum, int maximum)
setValues
in interface java.awt.peer.ScrollbarPeer
public void setLineIncrement(int l)
setLineIncrement
in interface java.awt.peer.ScrollbarPeer
public void setPageIncrement(int l)
setPageIncrement
in interface java.awt.peer.ScrollbarPeer
public int getHScrollbarHeight()
getHScrollbarHeight
in interface java.awt.peer.ScrollPanePeer
public int getVScrollbarWidth()
getVScrollbarWidth
in interface java.awt.peer.ScrollPanePeer
public void setScrollPosition(int x, int y)
setScrollPosition
in interface java.awt.peer.ScrollPanePeer
public void childResized(int w, int h)
childResized
in interface java.awt.peer.ScrollPanePeer
public void setUnitIncrement(java.awt.Adjustable adj, int u)
setUnitIncrement
in interface java.awt.peer.ScrollPanePeer
public void setValue(java.awt.Adjustable adj, int v)
setValue
in interface java.awt.peer.ScrollPanePeer
public void setEditable(boolean editable)
setEditable
in interface java.awt.peer.TextComponentPeer
public java.lang.String getText()
getText
in interface java.awt.peer.TextComponentPeer
public int getSelectionStart()
getSelectionStart
in interface java.awt.peer.TextComponentPeer
public int getSelectionEnd()
getSelectionEnd
in interface java.awt.peer.TextComponentPeer
public void select(int selStart, int selEnd)
select
in interface java.awt.peer.TextComponentPeer
public void setCaretPosition(int pos)
setCaretPosition
in interface java.awt.peer.TextComponentPeer
public int getCaretPosition()
getCaretPosition
in interface java.awt.peer.TextComponentPeer
public int getIndexAtPoint(int x, int y)
getIndexAtPoint
in interface java.awt.peer.TextComponentPeer
public java.awt.Rectangle getCharacterBounds(int i)
getCharacterBounds
in interface java.awt.peer.TextComponentPeer
public long filterEvents(long mask)
filterEvents
in interface java.awt.peer.TextComponentPeer
public void insert(java.lang.String text, int pos)
insert
in interface java.awt.peer.TextAreaPeer
public void replaceRange(java.lang.String text, int start, int end)
replaceRange
in interface java.awt.peer.TextAreaPeer
public java.awt.Dimension getPreferredSize(int rows, int columns)
getPreferredSize
in interface java.awt.peer.TextAreaPeer
public java.awt.Dimension getMinimumSize(int rows, int columns)
getMinimumSize
in interface java.awt.peer.TextAreaPeer
public void insertText(java.lang.String txt, int pos)
insertText
in interface java.awt.peer.TextAreaPeer
public void replaceText(java.lang.String txt, int start, int end)
replaceText
in interface java.awt.peer.TextAreaPeer
public java.awt.Dimension preferredSize(int rows, int cols)
preferredSize
in interface java.awt.peer.TextAreaPeer
public java.awt.Dimension minimumSize(int rows, int cols)
minimumSize
in interface java.awt.peer.TextAreaPeer
public void setEchoChar(char echoChar)
setEchoChar
in interface java.awt.peer.TextFieldPeer
public void setEchoCharacter(char c)
setEchoCharacter
in interface java.awt.peer.TextFieldPeer
public java.awt.Insets getInsets()
getInsets
in interface java.awt.peer.ContainerPeer
public void beginValidate()
beginValidate
in interface java.awt.peer.ContainerPeer
public void endValidate()
endValidate
in interface java.awt.peer.ContainerPeer
public void beginLayout()
public void endLayout()
public boolean isPaintPending()
public java.awt.Insets insets()
insets
in interface java.awt.peer.ContainerPeer
public void toFront()
toFront
in interface java.awt.peer.WindowPeer
public void toBack()
toBack
in interface java.awt.peer.WindowPeer
public int handleFocusTraversalEvent(java.awt.event.KeyEvent e)
handleFocusTraversalEvent
in interface java.awt.peer.WindowPeer
public void setTitle(java.lang.String title)
setTitle
in interface java.awt.peer.DialogPeer
public void setResizable(boolean resizeable)
setResizable
in interface java.awt.peer.DialogPeer
public void setFile(java.lang.String file)
setFile
in interface java.awt.peer.FileDialogPeer
public void setDirectory(java.lang.String dir)
setDirectory
in interface java.awt.peer.FileDialogPeer
public void setFilenameFilter(java.io.FilenameFilter filter)
setFilenameFilter
in interface java.awt.peer.FileDialogPeer
public void addMenu(java.awt.Menu m)
addMenu
in interface java.awt.peer.MenuBarPeer
public void delMenu(int index)
delMenu
in interface java.awt.peer.MenuBarPeer
public void addHelpMenu(java.awt.Menu m)
addHelpMenu
in interface java.awt.peer.MenuBarPeer
public void addSeparator()
addSeparator
in interface java.awt.peer.MenuPeer
public void addItem(java.awt.MenuItem item)
addItem
in interface java.awt.peer.MenuPeer
public void delItem(int index)
delItem
in interface java.awt.peer.MenuPeer
public void show(java.awt.Event e)
show
in interface java.awt.peer.PopupMenuPeer
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |