public class ClassSelector
extends java.lang.Object
Constructor and Description |
---|
ClassSelector(javax.swing.JPanel parentPanel,
java.lang.String[] classMap)
Init the ClassSelector panel.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<PredictionClass> |
getMatchingClasses(java.lang.String pattern)
Get the list of classes in our classmap that matches the supplied pattern.
|
int |
getTargetClass() |
void |
initOnGUI(int defaultClassID,
int rowNum)
Init the GUI elements.
|
void |
removeFromParent()
Remove ourselves from the parent panel.
|
void |
setTargetClass(int id) |
public ClassSelector(javax.swing.JPanel parentPanel, java.lang.String[] classMap)
parentPanel
- Parent panel in the GUI.classMap
- Class map to display class names from.public void initOnGUI(int defaultClassID, int rowNum)
defaultClassID
- Default ID to use.rowNum
- Row on the parent GUI to add ourselves to.public void removeFromParent()
public void setTargetClass(int id)
public int getTargetClass()
public java.util.ArrayList<PredictionClass> getMatchingClasses(java.lang.String pattern)
pattern
- Pattern to match against.