|
JClass 4.5.0 API Documentation |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.field.JCPromptHelper
This class allows the user to display the ToolTipText in a specified 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 ToolTipText 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)
public JCPromptHelper(Container container)
setPromptLabel
method must be
called in its future.Method Detail |
public void setPromptLabel(JLabel prompt)
public JLabel getPromptLabel()
protected void addChild(Component c)
public void componentAdded(ContainerEvent e)
protected void removeChild(Component c)
public void componentRemoved(ContainerEvent e)
public void focusGained(FocusEvent e)
public void focusLost(FocusEvent e)
|
Copyright© 1999-2000 KL Group Inc. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |