public class Helpers
extends java.lang.Object
Constructor and Description |
---|
Helpers() |
Modifier and Type | Method and Description |
---|---|
static void |
copyLocationIntoTextFields(Location l,
javax.swing.JTextField x,
javax.swing.JTextField y,
javax.swing.JTextField z) |
static void |
copyLocationIntoTextFields(Location l,
javax.swing.JTextField x,
javax.swing.JTextField y,
javax.swing.JTextField z,
javax.swing.JTextField rotation) |
static java.lang.String |
createUniqueName(java.lang.String prefix,
java.util.Collection existingObjects,
java.lang.String propertyName)
Create a unique name consisting of the prefix and an integer.
|
static void |
selectFirstTableRow(javax.swing.JTable table) |
static void |
selectLastTableRow(javax.swing.JTable table)
Select the last row in a table.
|
static void |
selectNextTableRow(javax.swing.JTable table) |
static void |
selectObjectTableRow(javax.swing.JTable table,
java.lang.Object row)
Select the specified row object in the table.
|
static void |
selectObjectTableRows(javax.swing.JTable table,
java.util.List<? extends java.lang.Object> rows)
Select the specified multiple row objects in the table.
|
public static void copyLocationIntoTextFields(Location l, javax.swing.JTextField x, javax.swing.JTextField y, javax.swing.JTextField z)
public static void copyLocationIntoTextFields(Location l, javax.swing.JTextField x, javax.swing.JTextField y, javax.swing.JTextField z, javax.swing.JTextField rotation)
public static void selectLastTableRow(javax.swing.JTable table)
table
- public static void selectObjectTableRows(javax.swing.JTable table, java.util.List<? extends java.lang.Object> rows)
table
- rows
- public static void selectObjectTableRow(javax.swing.JTable table, java.lang.Object row)
table
- row
- public static void selectNextTableRow(javax.swing.JTable table)
public static void selectFirstTableRow(javax.swing.JTable table)
public static java.lang.String createUniqueName(java.lang.String prefix, java.util.Collection existingObjects, java.lang.String propertyName)
prefix
- existingObjects
- Objects against which to compare the property identified by
propertyName against for the unique name.propertyName
- The name of a String property.