|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectui.accessibility.ContextualHelp
public class ContextualHelp
Contextual Help
| Field Summary | |
|---|---|
private java.lang.Boolean |
addTexts
true : should add texts |
(package private) javax.swing.JComponent |
comp
component |
(package private) Context |
context
context |
(package private) java.lang.Boolean |
hasContext
false if with context |
private int |
hasFocus
1 if button has focus |
private java.awt.AWTKeyStroke |
helpKey
help key |
private java.lang.String |
helpName
component name |
private java.lang.String |
id
id of the help page |
private int |
isPressed
1 if helpkey is pressed |
private java.lang.String[] |
otherKeys
otherKeys |
private java.lang.String[] |
otherLabels
otherLabels |
private static long |
serialVersionUID
Pour la sérialisation (non utilisé) |
private Language |
texts
Textual contents |
private java.awt.AWTKeyStroke |
tradKey
help key |
| Constructor Summary | |
|---|---|
ContextualHelp()
Contructor |
|
ContextualHelp(javax.swing.JComponent jc)
Constructor |
|
ContextualHelp(javax.swing.JComponent jc,
Context ctext)
Constructor with context (implements tooltip,name,description) |
|
ContextualHelp(javax.swing.JComponent jc,
java.lang.String helpid)
Constructor |
|
ContextualHelp(javax.swing.JComponent jc,
java.lang.String helpid,
Context ctext)
Constructor with context (implements tooltip,name,description) |
|
ContextualHelp(javax.swing.JTabbedPane jtp)
Contextual Help for the settings tabbed pane |
|
| Method Summary | |
|---|---|
void |
addContext(Context c,
java.lang.Boolean b)
Sert à lier le fichier .properties au bouton. |
void |
addLabel(java.lang.String label,
java.lang.String key)
Adds label|key |
void |
addLabels(java.lang.String[] labels,
java.lang.String[] keys)
add labels |
void |
changeID(java.lang.String newID)
change help tab |
void |
focusGained(java.awt.event.FocusEvent e)
|
void |
focusLost(java.awt.event.FocusEvent e)
|
void |
keyPressed(java.awt.event.KeyEvent k)
|
void |
keyReleased(java.awt.event.KeyEvent k)
|
void |
keyTyped(java.awt.event.KeyEvent k)
|
void |
setHelpKey(java.awt.AWTKeyStroke ks)
|
void |
setHelpName(java.lang.String newName)
set help name |
void |
setParameters(javax.swing.JComponent jc,
java.lang.String helpid)
|
void |
setParameters(javax.swing.JComponent jc,
java.lang.String helpid,
Context ctext)
sets parameters |
private void |
setShortCut()
set shortcut |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Language texts
private static final long serialVersionUID
private int hasFocus
java.lang.Boolean hasContext
private java.lang.Boolean addTexts
private java.lang.String[] otherLabels
private java.lang.String[] otherKeys
Context context
private java.lang.String helpName
private int isPressed
javax.swing.JComponent comp
private java.lang.String id
private java.awt.AWTKeyStroke helpKey
private java.awt.AWTKeyStroke tradKey
| Constructor Detail |
|---|
public ContextualHelp()
public ContextualHelp(javax.swing.JComponent jc,
java.lang.String helpid,
Context ctext)
jc - component's namehelpid - id of the help page ("target" in the mapfile : nat.jhm )ctext - contexts
public ContextualHelp(javax.swing.JComponent jc,
Context ctext)
jc - component's namectext - contexts
public ContextualHelp(javax.swing.JComponent jc,
java.lang.String helpid)
jc - component's namehelpid - id of the help page ("target" in the mapfile : nat.jhm )public ContextualHelp(javax.swing.JComponent jc)
jc - component's namepublic ContextualHelp(javax.swing.JTabbedPane jtp)
jtp - tabbed pane| Method Detail |
|---|
public void setHelpKey(java.awt.AWTKeyStroke ks)
ks - : new helpkey
public void setParameters(javax.swing.JComponent jc,
java.lang.String helpid,
Context ctext)
jc - componenthelpid - id in the help sheet (=anchor)ctext - context
public void setParameters(javax.swing.JComponent jc,
java.lang.String helpid)
jc - component's namehelpid - id of the help page ("target" in the mapfile : nat.jhm )public void changeID(java.lang.String newID)
newID - new idpublic void setHelpName(java.lang.String newName)
newName - : name in the help pagepublic void focusGained(java.awt.event.FocusEvent e)
focusGained in interface java.awt.event.FocusListenere - : focus eventpublic void focusLost(java.awt.event.FocusEvent e)
focusLost in interface java.awt.event.FocusListenere - : focus eventpublic void keyPressed(java.awt.event.KeyEvent k)
keyPressed in interface java.awt.event.KeyListenerk - : key eventpublic void keyReleased(java.awt.event.KeyEvent k)
keyReleased in interface java.awt.event.KeyListenerk - : key eventpublic void keyTyped(java.awt.event.KeyEvent k)
keyTyped in interface java.awt.event.KeyListenerk - : key event
public void addLabels(java.lang.String[] labels,
java.lang.String[] keys)
labels - labelskeys - keys
public void addContext(Context c,
java.lang.Boolean b)
c - contextb - true to add basic keys (name, description, tooltip, label) to the dialog
public void addLabel(java.lang.String label,
java.lang.String key)
label - labelkey - keyprivate void setShortCut()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||