|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttranslator.TranslatableGUIElement
translator.AnimalSpecificTranslatableGUIElement
public class AnimalSpecificTranslatableGUIElement
Provides a common interface for translatable GUI element generation Requires an appropriate resource file containing the message translations.
| Field Summary |
|---|
| Fields inherited from class translator.TranslatableGUIElement |
|---|
animalImageDummy, GRAPHICS_PATH |
| Constructor Summary | |
|---|---|
AnimalSpecificTranslatableGUIElement(Translator t)
Generate a new GUI generator using the concrete Translator passed in |
|
| Method Summary | |
|---|---|
components.ArrayInputTable |
generateArrayInputTable(java.lang.String key)
Method for generating a new ArrayInputTable, with an empty Constructor. |
components.ArrayInputTable |
generateArrayInputTable(java.lang.String key,
int numElements)
Method for generating a new ArrayInputTable. |
components.ArrayInputTable |
generateArrayInputTable(java.lang.String key,
int[] newValues)
Method for generating a new ArrayInputTable, with passed int values. |
components.ArrayInputTable |
generateArrayInputTable(java.lang.String key,
java.lang.String[] newValues)
Method for generating a new ArrayInputTable, with passed String values. |
components.ColorChooserComboBox |
generateColorChooserComboBox(java.lang.String key)
Method for generating a new ColorChooserComboBox, with an empty Constructor. |
components.ColorChooserComboBox |
generateColorChooserComboBox(java.lang.String key,
java.awt.Color colorSelected)
Method for generating a new ColorChooserComboBox and setting the selected Color. |
components.ColorChooserComboBox |
generateColorChooserComboBox(java.lang.String key,
java.lang.String strSelected)
Method for generating a new ColorChooserComboBox and setting the selected Color. |
components.FontChooserComboBox |
generateFontChooserComboBox(java.lang.String key)
Method for generating a new FontChooserComboBox, with an empty Constructor. |
components.FontChooserComboBox |
generateFontChooserComboBox(java.lang.String key,
java.lang.String selected)
Method for generating a new FontChooserComboBox, and setting the default Font. |
components.IntegerTextField |
generateIntegerTextField(java.lang.String key)
Method for generating a new IntegerTextField, with an empty Constructor. |
components.IntegerTextField |
generateIntegerTextField(java.lang.String key,
java.lang.String text)
Method for generating a new IntegerTextField, and setting the default Text. |
components.IntegerTextFieldEx |
generateIntegerTextFieldEx(java.lang.String key)
Method for generating a new IntegerTextFieldEx, with an empty Constructor. |
components.IntegerTextFieldEx |
generateIntegerTextFieldEx(java.lang.String key,
java.lang.String text)
Method for generating a new IntegerTextFieldEx, and setting the default Text. |
components.MatrixInputTable |
generateMatrixInputTable(java.lang.String key)
Method for generating a new MatrixInputTable with an empty Constructor. |
components.MatrixInputTable |
generateMatrixInputTable(java.lang.String key,
int[][] newValues)
Method for generating a new MatrixInputTable, with passed int values. |
components.MatrixInputTable |
generateMatrixInputTable(java.lang.String key,
int numRows,
int numColumns)
Method for generating a new MatrixInputTable. |
javax.swing.ImageIcon |
getImageIcon(java.lang.String name)
returns the imageIcon with the given name. |
protected void |
updateComponent(java.lang.String key,
java.awt.Component component)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnimalSpecificTranslatableGUIElement(Translator t)
t - the current Translator for this object| Method Detail |
|---|
public components.ArrayInputTable generateArrayInputTable(java.lang.String key)
key - The Key for the new ArrayInputTable.
public components.ArrayInputTable generateArrayInputTable(java.lang.String key,
int numElements)
key - The Key for the new ArrayInputTable.numElements - The number of elements in the table.
public components.ArrayInputTable generateArrayInputTable(java.lang.String key,
int[] newValues)
key - The Key for the new ArrayInputTable.newValues - The int-values to use in the table.
public components.ArrayInputTable generateArrayInputTable(java.lang.String key,
java.lang.String[] newValues)
key - The Key for the new ArrayInputTable.newValues - The String-values to use in the table.
public components.ColorChooserComboBox generateColorChooserComboBox(java.lang.String key)
key - The Key for the new ColorChooserComboBox.
public components.ColorChooserComboBox generateColorChooserComboBox(java.lang.String key,
java.awt.Color colorSelected)
key - The Key for the new ColorChooserComboBox.colorSelected - The Color that should be selected (as a Color).
public components.ColorChooserComboBox generateColorChooserComboBox(java.lang.String key,
java.lang.String strSelected)
key - The Key for the new ColorChooserComboBox.strSelected - The Color that should be selected (as an Animal-Color-String).
public components.FontChooserComboBox generateFontChooserComboBox(java.lang.String key)
key - The Key for the new FontChooserComboBox.
public components.FontChooserComboBox generateFontChooserComboBox(java.lang.String key,
java.lang.String selected)
key - The Key for the new FontChooserComboBox.selected - The default Font. Can be "Serif", "SansSerif" and "Monospaced".
public components.IntegerTextField generateIntegerTextField(java.lang.String key)
key - The Key for the new IntegerTextField.
public components.IntegerTextField generateIntegerTextField(java.lang.String key,
java.lang.String text)
key - The Key for the new IntegerTextField.text - The Text that should be displayed.
public components.IntegerTextFieldEx generateIntegerTextFieldEx(java.lang.String key)
key - The Key for the new IntegerTextFieldEx.
public components.IntegerTextFieldEx generateIntegerTextFieldEx(java.lang.String key,
java.lang.String text)
key - The Key for the new IntegerTextFieldEx.text - The Text that should be displayed.
public components.MatrixInputTable generateMatrixInputTable(java.lang.String key)
key - The Key for the new ArrayInputTable.
public components.MatrixInputTable generateMatrixInputTable(java.lang.String key,
int numRows,
int numColumns)
key - The Key for the new ArrayInputTable.numRows - The number of displayed Rows.numColumns - The number of displayed Columns.
public components.MatrixInputTable generateMatrixInputTable(java.lang.String key,
int[][] newValues)
key - The Key for the new ArrayInputTable.newValues - The int-values to use in the table.
public javax.swing.ImageIcon getImageIcon(java.lang.String name)
getImageIcon in class TranslatableGUIElement
protected void updateComponent(java.lang.String key,
java.awt.Component component)
updateComponent in class TranslatableGUIElement
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||