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) booleanprotected SCprivate Stringprivate static PopupResourceprivate boolean(package private) booleanprivate static final int(package private) ModelKitset by MODELKIT [DISPLAY/HIDE]protected SCFields inherited from class org.jmol.popup.JmolGenericPopup
frankPopup, menuText, nFrankList, vwrFields 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 voidaddAllCheckboxItems(SC menu, String[] labels) protected booleanappGetBooleanProperty(String name) protected booleanappRunSpecialCheckBox(SC item, String basename, String script, boolean TF) protected voidprotected voidappUpdateSpecialCheckBoxValue(SC source, String actionCommand, boolean selected) Set the active menu based on updating a value -- usually by the user, but also during setup (ignored).voidprotected voidprotected PopupResourceprotected StringgetScriptForCallback(SC source, String id, String script) Secondary processing of menu item clickgetUnknownCheckBoxScriptToRun(SC item, String name, String what, boolean TF) (package private) voidvoidjpiShow(int x, int y) voidvoidmenuClickCallback(SC source, String script) voidmenuFocusCallback(String name, String actionCommand, boolean gained) protected abstract voidmenuHidePopup(SC popup) setActiveMenu(String name) Set the active menu and request a repaint.private voidprotected voidvoidupdateCheckBoxesForModelKit(String menuName) protected voidMethods inherited from class org.jmol.popup.JmolGenericPopup
appFixLabel, appRestorePopupMenu, appRunScript, initialize, jpiDispose, jpiGetMenuAsObject, jpiInitialize, showFrankMenuMethods 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:
getBundlein classJmolGenericPopup
-
jpiShow
public void jpiShow(int x, int y) - Specified by:
jpiShowin interfaceGenericMenuInterface- Overrides:
jpiShowin classJmolGenericPopup
-
jpiUpdateComputedMenus
public void jpiUpdateComputedMenus() -
appUpdateForShow
protected void appUpdateForShow()- Specified by:
appUpdateForShowin 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:
appUpdateSpecialCheckBoxValuein classGenericPopup
-
exitBondRotation
protected void exitBondRotation() -
appGetBooleanProperty
- Overrides:
appGetBooleanPropertyin classJmolGenericPopup
-
getUnknownCheckBoxScriptToRun
- Specified by:
getUnknownCheckBoxScriptToRunin classGenericPopup
-
getScriptForCallback
Secondary processing of menu item click- Specified by:
getScriptForCallbackin classGenericPopup
-
appRunSpecialCheckBox
- Overrides:
appRunSpecialCheckBoxin classJmolGenericPopup
-
updateCheckBoxesForModelKit