|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.field.JCPromptHelper
This class allows the user to display the tool tip text
in a specific prompt label of any container whenever
that field component gains focus, and to remove the text when the field
loses focus.
Note: This helper is not restricted to finding
JCFieldComponents
that are immediate children of the specified container.
Field Summary | |
protected JLabel |
prompt
|
Constructor Summary | |
JCPromptHelper(Container container)
Constructs a prompt helper class on the specified container. |
|
JCPromptHelper(Container container,
JLabel prompt)
Constructs a Prompt Helper on the specified container, with the specified label as the target for the tool tip text of the Field components contained within the container. |
Method Summary | |
protected void |
addChild(Component c)
|
void |
componentAdded(ContainerEvent e)
This method is internal. |
void |
componentRemoved(ContainerEvent e)
This method is internal. |
void |
focusGained(FocusEvent e)
Sets the tool tip text when the field gains focus. |
void |
focusLost(FocusEvent e)
Removes the tool tip text when the field loses focus. |
JLabel |
getPromptLabel()
Returns the prompt label being used. |
protected void |
removeChild(Component c)
|
void |
setPromptLabel(JLabel prompt)
Sets the prompt label to use. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected JLabel prompt
Constructor Detail |
public JCPromptHelper(Container container, JLabel prompt)
container
- prompt
- public JCPromptHelper(Container container)
setPromptLabel
method must be
called in its future.
container
- Method Detail |
public void setPromptLabel(JLabel prompt)
prompt
- public JLabel getPromptLabel()
protected void addChild(Component c)
public void componentAdded(ContainerEvent e)
componentAdded
in interface ContainerListener
e
- protected void removeChild(Component c)
public void componentRemoved(ContainerEvent e)
componentRemoved
in interface ContainerListener
e
- public void focusGained(FocusEvent e)
focusGained
in interface FocusListener
e
- public void focusLost(FocusEvent e)
focusLost
in interface FocusListener
e
-
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |