|
WebObjects 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.text.JTextComponent | +--javax.swing.JTextField | +--com.webobjects.eointerface.swing.EOTextField
EOTextField is a subclass of javax.swing.JTextField
that adds
the notion of selectability (so that text fields can be selectable, but not editable).
Inner classes inherited from class javax.swing.JTextField |
JTextField.AccessibleJTextField |
Inner classes inherited from class javax.swing.text.JTextComponent |
JTextComponent.AccessibleJTextComponent, JTextComponent.KeyBinding |
Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Inner classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent |
Fields inherited from class javax.swing.JTextField |
notifyAction |
Fields inherited from class javax.swing.text.JTextComponent |
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NORTH, NORTH_EAST, NORTH_WEST, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
EOTextField()
Constructs a new EOTextField which is configured to be selectable by default. |
Method Summary | |
boolean |
isFocusTraversable()
Returns whether the user can navigate to this component with the Tab or Shift-Tab keys. |
boolean |
isSelectable()
Returns the receiver's selectable state. |
protected void |
processMouseEvent(MouseEvent event)
Prevents mouse events from being processed if the receiver is not selectable. |
protected void |
processMouseMotionEvent(MouseEvent event)
Prevents mouse motion events from being processed if the receiver is not selectable. |
void |
setSelectable(boolean selectable)
Sets the receiver's selectable state. |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public EOTextField()
Method Detail |
public boolean isFocusTraversable()
isFocusTraversable
in class JTextComponent
true
if the component is focus-traversable, false
otherwisepublic boolean isSelectable()
protected void processMouseEvent(MouseEvent event)
processMouseEvent
in class Component
event
- the mouse eventprotected void processMouseMotionEvent(MouseEvent event)
processMouseMotionEvent
in class JComponent
event
- the mouse motion eventpublic void setSelectable(boolean selectable)
selectable
- the selectable state
|
Last updated Fri Feb 21 13:15:00 PST 2003. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |