public class ClassSelectionDialog extends javax.swing.JDialog implements ClassSelectionListener
ClassSelectionPanel in order to allow
to select a specific class that extends a given super class.javax.swing.JDialog.AccessibleJDialogjava.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityTypejava.awt.Window.AccessibleAWTWindow, java.awt.Window.TypeaccessibleContext, rootPane, rootPaneCheckingEnabledBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT| Constructor and Description |
|---|
ClassSelectionDialog(java.awt.Dialog ownerDialog,
JListClassSearcher jListClassSearcher,
java.lang.String clazz2Search4CurrentValue,
java.lang.String clazz2Search4DefaultValue,
java.lang.String clazz2Search4Description,
boolean allowNull)
Constructor to configure the type of class, we are looking for.
|
ClassSelectionDialog(java.awt.Frame owner)
Default constructor.
|
ClassSelectionDialog(java.awt.Frame ownerFrame,
java.lang.Class<?> clazz2Search4,
java.lang.String clazz2Search4CurrentValue,
java.lang.String clazz2Search4DefaultValue,
java.lang.String clazz2Search4Description,
boolean allowNull)
Constructor to configure the type of class, we are looking for.
|
ClassSelectionDialog(java.awt.Frame ownerFrame,
JListClassSearcher jListClassSearcher,
java.lang.String clazz2Search4CurrentValue,
java.lang.String clazz2Search4DefaultValue,
java.lang.String clazz2Search4Description,
boolean allowNull)
Constructor to configure the type of class, we are looking for.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?> |
getClass2Search4()
Gets the class2 search4.
|
java.lang.String |
getClass2Search4CurrentValue()
Gets the class2 search4 current value.
|
java.lang.String |
getClass2Search4DefaultValue()
Gets the class2 search4 default value.
|
java.lang.String |
getClass2Search4Description()
Gets the class2 search4 description.
|
java.lang.String |
getClassSelected()
Gets the class selected.
|
ClassSelectionPanel |
getClassSelectionPanel()
Gets the class selector panel.
|
javax.swing.JButton |
getJButtonCancel()
Returns the JButton for the cancel action.
|
javax.swing.JButton |
getJButtonOK()
Returns the JButton for the OK action.
|
void |
handleOkClick()
Handles the OK action click.
|
boolean |
isAllowNull()
Checks if null or empty values are allowed.
|
boolean |
isCanceled()
Checks if is canceled.
|
void |
setAllowNull(boolean allowNull)
Sets to allow null as a result or not.
|
void |
setCanceled(boolean canceled)
Sets the canceled.
|
void |
setClass2Search4CurrentValue(java.lang.String newClassName)
Sets the class2 search4 current value.
|
void |
setClassSelected(java.lang.String classSelected)
Sets the class selected.
|
void |
setClassSelectionPanel(ClassSelectionPanel newClassSelectionPanel)
Sets a new class selector panel.
|
void |
setSelectedClass(java.lang.String classSelected)
Will be invoked, if the user selected a class and confirmed its usage with the OK button.
|
void |
setSelectionCanceled()
Will be invoked, if the user canceled the class selection
|
void |
setVisible(boolean visible) |
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateaddNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, show, toBackaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, 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, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFrontadd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeaction, 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, 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, transferFocusUpCyclepublic ClassSelectionDialog(java.awt.Frame owner)
owner - the ownerpublic ClassSelectionDialog(java.awt.Frame ownerFrame,
java.lang.Class<?> clazz2Search4,
java.lang.String clazz2Search4CurrentValue,
java.lang.String clazz2Search4DefaultValue,
java.lang.String clazz2Search4Description,
boolean allowNull)
ownerFrame - the owner frameclazz2Search4 - the clazz2 search4clazz2Search4CurrentValue - the clazz2 search4 current valueclazz2Search4DefaultValue - the clazz2 search4 default valueclazz2Search4Description - the clazz2 search4 descriptionallowNull - the allow nullpublic ClassSelectionDialog(java.awt.Frame ownerFrame,
JListClassSearcher jListClassSearcher,
java.lang.String clazz2Search4CurrentValue,
java.lang.String clazz2Search4DefaultValue,
java.lang.String clazz2Search4Description,
boolean allowNull)
ownerFrame - the owner framejListClassSearcher - an actual instance of a JListClassSearcherclazz2Search4CurrentValue - the clazz2 search4 current valueclazz2Search4DefaultValue - the clazz2 search4 default valueclazz2Search4Description - the clazz2 search4 descriptionallowNull - the allow nullpublic ClassSelectionDialog(java.awt.Dialog ownerDialog,
JListClassSearcher jListClassSearcher,
java.lang.String clazz2Search4CurrentValue,
java.lang.String clazz2Search4DefaultValue,
java.lang.String clazz2Search4Description,
boolean allowNull)
ownerDialog - the owner dialogjListClassSearcher - an actual instance of a JListClassSearcherclazz2Search4CurrentValue - the clazz2 search4 current valueclazz2Search4DefaultValue - the clazz2 search4 default valueclazz2Search4Description - the clazz2 search4 descriptionallowNull - the allow nullpublic void setClassSelectionPanel(ClassSelectionPanel newClassSelectionPanel)
newClassSelectionPanel - the new class selector panelpublic ClassSelectionPanel getClassSelectionPanel()
public java.lang.Class<?> getClass2Search4()
public java.lang.String getClass2Search4CurrentValue()
public void setClass2Search4CurrentValue(java.lang.String newClassName)
newClassName - the new class2 search4 current valuepublic java.lang.String getClass2Search4DefaultValue()
public java.lang.String getClass2Search4Description()
public boolean isAllowNull()
public void setAllowNull(boolean allowNull)
allowNull - the allowNull to setpublic void setCanceled(boolean canceled)
canceled - the canceled to setpublic boolean isCanceled()
public void setClassSelected(java.lang.String classSelected)
classSelected - the classSelected to setpublic java.lang.String getClassSelected()
public void setSelectedClass(java.lang.String classSelected)
ClassSelectionListenersetSelectedClass in interface ClassSelectionListenerclassSelected - the class that was selectedpublic void setSelectionCanceled()
ClassSelectionListenersetSelectionCanceled in interface ClassSelectionListenerpublic void setVisible(boolean visible)
setVisible in class java.awt.Dialogpublic javax.swing.JButton getJButtonOK()
public javax.swing.JButton getJButtonCancel()
public void handleOkClick()