Class GuiMap
- java.lang.Object
-
- org.openscience.jmol.app.jmolpanel.GuiMap
-
-
Constructor Summary
Constructors Constructor Description GuiMap()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
get(String key)
static URL
getHtmlResource(Object object, String root)
String
getLabel(String key)
static URL
getResource(Object object, String fileName)
static URL
getResource(Object object, String fileName, boolean flagError)
static String
getResourceString(Object object, String name)
protected void
moreLabels(Map<String,String> labels)
Add more labels if desiredJButton
newJButton(String key)
JCheckBox
newJCheckBox(String key, boolean isChecked)
JCheckBoxMenuItem
newJCheckBoxMenuItem(String key, boolean isChecked)
JMenu
newJMenu(String key)
JMenuItem
newJMenuItem(String key)
JRadioButtonMenuItem
newJRadioButtonMenuItem(String key)
void
setEnabled(String key, boolean b)
void
setSelected(String key, boolean b)
private static void
setTranslations()
allows for web page material to be internationalized, inserting language-specific code, as for WebExport, or by inserting boiler-plate information, as for About_xx.htmlprivate void
setupLabels()
static String
translate(String str)
void
updateLabels()
-
-
-
Method Detail
-
setupLabels
private void setupLabels()
-
moreLabels
protected void moreLabels(Map<String,String> labels)
Add more labels if desired- Parameters:
labels
-
-
newJCheckBoxMenuItem
public JCheckBoxMenuItem newJCheckBoxMenuItem(String key, boolean isChecked)
-
newJRadioButtonMenuItem
public JRadioButtonMenuItem newJRadioButtonMenuItem(String key)
-
setSelected
public void setSelected(String key, boolean b)
-
setEnabled
public void setEnabled(String key, boolean b)
-
updateLabels
public void updateLabels()
-
getResource
public static URL getResource(Object object, String fileName, boolean flagError)
- Parameters:
object
- UNUSEDfileName
-flagError
-- Returns:
- URL
-
getResourceString
public static String getResourceString(Object object, String name) throws IOException
- Throws:
IOException
-
setTranslations
private static void setTranslations()
allows for web page material to be internationalized, inserting language-specific code, as for WebExport, or by inserting boiler-plate information, as for About_xx.html
-
-