public class HelpAction extends javax.swing.AbstractAction
Modifier and Type | Field and Description |
---|---|
private javax.swing.JTable |
membershipTable |
private java.util.function.IntFunction<IRelation<?>> |
memberValueSupplier |
private java.util.function.IntFunction<java.lang.String> |
tagKeySupplier |
private javax.swing.JTable |
tagTable |
private java.util.function.IntFunction<java.util.Map<java.lang.String,java.lang.Integer>> |
tagValuesSupplier |
Constructor and Description |
---|
HelpAction(javax.swing.JTable tagTable,
java.util.function.IntFunction<java.lang.String> tagKeySupplier,
java.util.function.IntFunction<java.util.Map<java.lang.String,java.lang.Integer>> tagValuesSupplier,
javax.swing.JTable membershipTable,
java.util.function.IntFunction<IRelation<?>> memberValueSupplier)
Constructs a new
HelpAction . |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
static void |
displayGenericHelp()
Displays the localized Map Features.
|
static void |
displayHelp(java.util.List<java.lang.String> pages)
Display help by opening the first existing wiki page in the given list.
|
static void |
displayRelationHelp(IRelation<?> rel)
Displays the most specific wiki page for the given relation.
|
static void |
displayTagHelp(java.lang.String key,
java.lang.String val)
Displays the most specific wiki page for the given key/value.
|
javax.swing.KeyStroke |
getKeyStroke()
Returns the keystroke launching this action (F1).
|
private final javax.swing.JTable tagTable
private final java.util.function.IntFunction<java.lang.String> tagKeySupplier
private final java.util.function.IntFunction<java.util.Map<java.lang.String,java.lang.Integer>> tagValuesSupplier
private final javax.swing.JTable membershipTable
private final java.util.function.IntFunction<IRelation<?>> memberValueSupplier
public HelpAction(javax.swing.JTable tagTable, java.util.function.IntFunction<java.lang.String> tagKeySupplier, java.util.function.IntFunction<java.util.Map<java.lang.String,java.lang.Integer>> tagValuesSupplier, javax.swing.JTable membershipTable, java.util.function.IntFunction<IRelation<?>> memberValueSupplier)
HelpAction
.tagTable
- The tag table. Cannot be nulltagKeySupplier
- Finds the key from given row of tag table. Cannot be nulltagValuesSupplier
- Finds the values from given row of tag table (map of values and number of occurrences). Cannot be nullmembershipTable
- The membership table. Can be nullmemberValueSupplier
- Finds the parent relation from given row of membership table. Can be nullpublic javax.swing.KeyStroke getKeyStroke()
public void actionPerformed(java.awt.event.ActionEvent e)
public static void displayTagHelp(java.lang.String key, java.lang.String val)
key
- Keyval
- Valuepublic static void displayRelationHelp(IRelation<?> rel)
rel
- Relationpublic static void displayGenericHelp()
public static void displayHelp(java.util.List<java.lang.String> pages)
pages
- list of wiki page names to test