public class XTCEViewerFunctions extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
buildSpaceSystemTree(JTree tree,
List<XTCESpaceSystem> spaceSystems)
Helper function to add the XTCE SpaceSystem array list to a JTree.
|
static void |
clearTree(JTree tree)
Helper function to clear/erase the contents of a JTree Swing widget.
|
static void |
copyCell(JTable table)
Helper function to implement copying contents of a table cell to the
System Clipboard for pasting in other applications.
|
static void |
copyColumn(JTable table)
Helper function to implement copying contents of a table column to the
System Clipboard for pasting in other applications.
|
static void |
copyPasteTextArea(KeyEvent evt,
JTextComponent textArea)
Helper function to implement copy and paste from JTextArea to the OS
when it is not supported by default.
|
static void |
copyRow(JTable table)
Helper function to implement copying contents of a table row to the
System Clipboard for pasting in other applications.
|
static void |
copyTable(JTable table)
Helper function to implement copying contents of a table to the
System Clipboard for pasting in other applications.
|
static void |
expandAllTreeNodes(JTree tree)
Helper function to expand all the nodes of a JTree object.
|
static boolean |
selectSpaceSystemFromTree(JTree tree,
String searchString,
boolean basenameOnly)
Helper function to determine if a provided SpaceSystem by name is a
node in a JTree list of Space Systems.
|
static void |
showRightClickTableMenu(MouseEvent evt,
JTable table,
JPopupMenu menu)
Show the right click menu associated with a table in the viewer.
|
public static void expandAllTreeNodes(JTree tree)
tree - JTree to expand all nodes.public static void showRightClickTableMenu(MouseEvent evt, JTable table, JPopupMenu menu)
evt - MouseEvent associated with the click.table - JTable that the click event occurred on.menu - JPopupMenu from the viewer that is associated with this
particular table.public static void copyCell(JTable table)
table - JTable object to query for the cell contents and copypublic static void copyRow(JTable table)
table - JTable object to query for the row contents and copypublic static void copyColumn(JTable table)
table - JTable object to query for the column contents and copypublic static void copyTable(JTable table)
table - JTable object to query for the contents and copypublic static void copyPasteTextArea(KeyEvent evt, JTextComponent textArea)
evt - KeyEvent object from the Swing callback.textArea - JTextComponent to cut, copy, paste to or from.public static void clearTree(JTree tree)
tree - JTree to clear/erase.public static void buildSpaceSystemTree(JTree tree, List<XTCESpaceSystem> spaceSystems)
tree - JTree to add the XTCEViewerSpaceSystemTreeNode objects to.spaceSystems - ArrayList of XTCESpaceSystem objects to add.public static boolean selectSpaceSystemFromTree(JTree tree, String searchString, boolean basenameOnly)
tree - JTree containing the tree for which to search for nodes.searchString - String containing the Space System name or path to
search for.basenameOnly - Boolean indicating of the search string argument is
a basename or a full path.Copyright © 2015–2019. All rights reserved.