Package org.jmol.modelkit
Class ModelKitPopup
java.lang.Object
org.jmol.popup.GenericPopup
org.jmol.popup.JmolGenericPopup
org.jmol.modelkit.ModelKitPopup
- All Implemented Interfaces:
GenericMenuInterface
- Direct Known Subclasses:
AwtModelKitPopup
,JSModelKitPopup
An abstract popup class that is instantiated for a given platform and context
as one of:
-- abstract ModelKitPopup -- AwtModelKitPopup -- JSModelKitPopup
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) String
(package private) boolean
protected SC
private String
private static PopupResource
private boolean
(package private) boolean
private static final int
(package private) ModelKit
set by MODELKIT [DISPLAY/HIDE]protected SC
Fields inherited from class org.jmol.popup.JmolGenericPopup
frankPopup, menuText, nFrankList, vwr
Fields inherited from class org.jmol.popup.GenericPopup
allowSignedFeatures, buttonGroup, currentMenuItemId, helper, htCheckbox, htMenus, isApplet, isJS, isSigned, isTainted, isWebGL, menuName, popupMenu, strMenuStructure, thisPopup, thisx, thisy, updatingForShow
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addAllCheckboxItems
(SC menu, String[] labels) protected boolean
appGetBooleanProperty
(String name) protected boolean
appRunSpecialCheckBox
(SC item, String basename, String script, boolean TF) protected void
protected void
appUpdateSpecialCheckBoxValue
(SC source, String actionCommand, boolean selected) Set the active menu based on updating a value -- usually by the user, but also during setup (ignored).void
protected void
protected PopupResource
protected String
getScriptForCallback
(SC source, String id, String script) Secondary processing of menu item clickgetUnknownCheckBoxScriptToRun
(SC item, String name, String what, boolean TF) (package private) void
void
jpiShow
(int x, int y) void
void
menuClickCallback
(SC source, String script) void
menuFocusCallback
(String name, String actionCommand, boolean gained) protected abstract void
menuHidePopup
(SC popup) setActiveMenu
(String name) Set the active menu and request a repaint.private void
protected void
void
updateCheckBoxesForModelKit
(String menuName) protected void
Methods inherited from class org.jmol.popup.JmolGenericPopup
appFixLabel, appRestorePopupMenu, appRunScript, initialize, jpiDispose, jpiGetMenuAsObject, jpiInitialize, showFrankMenu
Methods inherited from class org.jmol.popup.GenericPopup
addMenu, addMenuItem, addMenuItems, appCheckItem, appCheckSpecialMenu, appGetMenuAsString, convertToMegabytes, doMenuCheckBoxCallback, doMenuClickCallback, getEntryIcon, getImageIcon, initSwing, jpiGetMenuAsString, menuAddSeparator, menuAddSubMenu, menuCheckBoxCallback, menuCreateCheckboxItem, menuCreateItem, menuEnable, menuGetId, menuGetListPosition, menuNewSubMenu, menuRemoveAll, menuSetAutoscrolls, menuSetLabel, menuShowPopup, setText, show, updateButton, updateSignedAppletItems
-
Field Details
-
Constructor Details
-
ModelKitPopup
public ModelKitPopup()
-
-
Method Details
-
getBundle
- Specified by:
getBundle
in classJmolGenericPopup
-
jpiShow
public void jpiShow(int x, int y) - Specified by:
jpiShow
in interfaceGenericMenuInterface
- Overrides:
jpiShow
in classJmolGenericPopup
-
jpiUpdateComputedMenus
public void jpiUpdateComputedMenus() -
appUpdateForShow
protected void appUpdateForShow()- Specified by:
appUpdateForShow
in classGenericPopup
-
hidePopup
void hidePopup() -
clearLastModelSet
public void clearLastModelSet() -
updateOperatorMenu
protected void updateOperatorMenu() -
addAllCheckboxItems
-
updateAllXtalMenuOptions
protected void updateAllXtalMenuOptions() -
setLabel
-
setActiveMenu
Set the active menu and request a repaint.- Parameters:
name
-- Returns:
- activeMenu or null
-
appUpdateSpecialCheckBoxValue
Set the active menu based on updating a value -- usually by the user, but also during setup (ignored).- Specified by:
appUpdateSpecialCheckBoxValue
in classGenericPopup
-
exitBondRotation
protected void exitBondRotation() -
appGetBooleanProperty
- Overrides:
appGetBooleanProperty
in classJmolGenericPopup
-
getUnknownCheckBoxScriptToRun
- Specified by:
getUnknownCheckBoxScriptToRun
in classGenericPopup
-
getScriptForCallback
Secondary processing of menu item click- Specified by:
getScriptForCallback
in classGenericPopup
-
appRunSpecialCheckBox
- Overrides:
appRunSpecialCheckBox
in classJmolGenericPopup
-
updateCheckBoxesForModelKit