@Deprecated public class EnhancedGenericDialog extends GenericDialogPlus
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType
Window.AccessibleAWTWindow, Window.Type
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
windowIDs, windowTitles
checkbox, choice, defaultChoiceIndexes, defaultStrings, defaultText, defaultValues, numberField, radioButtonGroups, slider, stringField, textArea1, textArea2, theLabel
DEFAULT_MODALITY_TYPE
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
EnhancedGenericDialog(String title)
Deprecated.
|
EnhancedGenericDialog(String title,
Frame parent)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Deprecated.
|
void |
addCitationMessage()
Deprecated.
Allows users to visit the manuscript from a dialog prompt
|
protected static void |
addClickableURLtoLabel(Component label,
String url,
Color color)
Deprecated.
|
void |
addHyperlinkMessage(String text,
Font font,
Color color,
String url)
Deprecated.
Appends a message to the specified dialog consisting of one or more lines
of text, and assigns a functional URL to it.
|
void |
assignListenerToHelpButton(String buttonLabel,
ActionListener listener)
Deprecated.
Adds a "Help" button and attaches the specified listener to it.
|
void |
assignPopupToHelpButton(JPopupMenu popupmenu)
Deprecated.
Attaches the specified JPopupMenu to the GenericDialog "Help" button
renamed "More »".
|
void |
assignPopupToHelpButton(String buttonLabel,
JPopupMenu popupmenu)
Deprecated.
Adds a "Help" button and attaches the specified JPopupMenu to it.
|
protected static String |
citationMsg()
Deprecated.
|
protected static String |
citationURL()
Deprecated.
|
void |
disposeWithouRecording()
Deprecated.
Closes the dialog without Recording the command.
|
static Color |
getDisabledComponentColor()
Deprecated.
Returns the foreground color of disabled components.
|
static void |
improveRecording()
Deprecated.
Customizes macro recordings
|
static Color |
infoColor()
Deprecated.
|
static boolean |
isHeadless()
Deprecated.
|
static JMenuItem |
menuItemTrigerringURL(String label,
String URL)
Deprecated.
|
static JMenuItem |
menuItemTriggeringResources()
Deprecated.
|
void |
showScrollableDialog()
Deprecated.
Adds AWT scroll bars to the dialog before displaying it, when not running
headless.
|
static Color |
warningColor()
Deprecated.
|
addButton, addComponent, addComponent, addDirectoryField, addDirectoryField, addDirectoryOrFileField, addDirectoryOrFileField, addFileField, addFileField, addImage, addImage, addImage, addImageChoice, addStringField, createImageIcon, getConstraints, getNextImage, keyPressed, keyReleased, keyTyped
addCheckbox, addCheckboxGroup, addCheckboxGroup, addChoice, addDialogListener, addHelp, addImage, addMessage, addMessage, addMessage, addNumericField, addNumericField, addNumericField, addPanel, addPanel, addPreviewCheckbox, addPreviewCheckbox, addRadioButtonGroup, addSlider, addSlider, addStringField, addTextAreas, addToSameRow, adjustmentValueChanged, centerDialog, dispose, enableYesNoCancel, enableYesNoCancel, focusGained, focusLost, getButtons, getCheckboxes, getChoices, getErrorMessage, getInsets, getInstance, getLabel, getMessage, getNextBoolean, getNextChoice, getNextChoiceIndex, getNextNumber, getNextRadioButton, getNextString, getNextText, getNumericFields, getPreviewCheckbox, getRadioButtonGroups, getSliders, getStringFields, getTextArea1, getTextArea2, getValue, hideCancelButton, invalidNumber, isMacro, isPreviewActive, itemStateChanged, paint, parseDouble, previewRunning, repaint, setCancelLabel, setDefaultString, setEchoChar, setFont, setHelpLabel, setInsets, setLocation, setOKLabel, setSmartRecording, setup, showDialog, textValueChanged, wasCanceled, wasOKed, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
addNotify, getAccessibleContext, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, paramString, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBack
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, update, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public EnhancedGenericDialog(String title)
title
- Dialog's titlepublic void addHyperlinkMessage(String text, Font font, Color color, String url)
text
- The contents of the clickable labelfont
- the label font. If null
, the GenericDialog's default
font is usedcolor
- the label color. If null
, the GenericDialog's default
foreground color is usedurl
- The URL to be opened by the default browser of the OSpublic void addCitationMessage()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
actionPerformed
in class GenericDialog
public void assignListenerToHelpButton(String buttonLabel, ActionListener listener)
IJ.doCommand()
callsbuttonLabel
- the label of the customized "Help" buttonlistener
- the ActionListener monitoring action eventspublic void assignPopupToHelpButton(JPopupMenu popupmenu)
IJ.doCommand()
calls.popupmenu
- the JPopupMenu to be attached to the "More »" button.assignPopupToHelpButton(String, JPopupMenu)
public void assignPopupToHelpButton(String buttonLabel, JPopupMenu popupmenu)
IJ.doCommand()
calls.buttonLabel
- the label of the "Help" button.popupmenu
- the JPopupMenu to be attached to the "Help" button.public void showScrollableDialog()
IJ.getScreenSize()
. Dialog remains fully recordable.public void disposeWithouRecording()
protected static void addClickableURLtoLabel(Component label, String url, Color color)
public static final void improveRecording()
public static Color getDisabledComponentColor()
UIManager
foreground color of a disabled component.public static JMenuItem menuItemTrigerringURL(String label, String URL)
@Deprecated public static JMenuItem menuItemTriggeringResources()
public static boolean isHeadless()
true
if running on an headless environmentprotected static final String citationURL()
protected static final String citationMsg()
public static final Color infoColor()
public static final Color warningColor()
Copyright © 2015–2021 Fiji. All rights reserved.