public class JotyDialog
extends javax.swing.JDialog
m_entityName
takes no value or
if the Appplication.m_dialogOpeningAsValueSelector
member is true.
It provides the minimum set of buttons {Ok, Cancel} and little visual behavior on activation events to keep the scene simple, and it collaborates with the Application class to relate itself (in the case it is opened not modal) to the other dialogs currently opened, and, more, in these behavior, it takes in account the three different cases of OS platform. If the dialog represented by the child class 'has name' then, on the instantiation, its name is added to the 'window' menu. On closing of the dialog, the name is deleted from there.
The class provides a static tryCreate
method thought to instantiate
its extending implementations through reflection, and to take care that no
multiple instantiations of the same class happens at the same time; the
Application object helps by keeping track of the currently opened dialogs.
Even if the class is not specialized in data access it hosts a member of type
DataAccessPanel
and a member of type a GridManager
; these two
members may or may not be references to object actually contained in 'this'
instance: this class is root also for classes that need these references but
don't contain (visually) any of the actual objects.
The class, by means of its static tryCreate
method, its constructors
and a member (m_callContext
) hosting a CallContext
object,
supports the propagation of {ParamContext} instances along the opening flow
that the various JotyDialog instances track when they are the invokers of the
opening of another dialog.
Application.m_activationStack
,
WindowsMenuItem
,
DataAccessPanel
,
GridManager
,
Application
,
ParamContext
,
Serialized FormModifier and Type | Class and Description |
---|---|
class |
JotyDialog.CallContext
A ParamContext equipped with two JotyDialog references used to build and
to 'scroll' the propagation chain of ParamContext objects.
|
javax.swing.JDialog.AccessibleJDialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
boolean |
m_accessorMode
Sets the mode by which the JotyDialog instance and all its contained
Term objects look in the Accessor object for their data definition statements. |
boolean |
m_actionEnabled |
boolean |
m_activatedByWindowsMenu |
Application |
m_app |
JotyButton |
m_btnCancel |
JotyButton |
m_btnClose |
JotyButton |
m_btnOk |
javax.swing.JPanel |
m_buttonPane |
JotyDialog.CallContext |
m_callContext |
boolean |
m_canceling |
protected java.lang.String |
m_className |
protected Panel |
m_contentPanel |
DataAccessPanel |
m_currSheet |
boolean |
m_dataUpdate_pending |
JotyButton |
m_defaultButton |
java.lang.Object |
m_dialogOpeningMode |
boolean |
m_editOrNew_command
The associated command edits a record or even, in a single record
management context, adds a new record (in the latter context it is
mutable: its behavior depends on the existence of the underlying record)
|
boolean |
m_enforcedVisible |
protected java.lang.String |
m_entityName |
boolean |
m_frozen |
boolean |
m_gotData |
GridManager |
m_gridManager |
boolean |
m_gridSelChanging |
boolean |
m_guiUpdate_pending |
protected boolean |
m_initAction |
protected boolean |
m_initializing |
boolean |
m_is_deleting |
protected boolean |
m_isEntityNamed |
protected boolean |
m_isViewer |
org.joty.gui.WFieldSet |
m_keyElems |
boolean |
m_listenForPanelActions |
protected boolean |
m_needsExplicitCloseCommand |
boolean |
m_new_command
The associated command adds a record in a multi-record management context
|
protected boolean |
m_newDocument |
java.util.Vector<Panel> |
m_panelsTobeInited |
DataAccessPanel |
m_parentDataPanel |
protected boolean |
m_progressiveAction |
org.joty.data.SearchQueryBuilderFront |
m_queryBuilder |
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
JotyDialog() |
JotyDialog(java.awt.Frame owner) |
JotyDialog(java.lang.Object callContext) |
JotyDialog(java.lang.Object callContext,
java.lang.Object openingMode) |
JotyDialog(java.lang.Object callContext,
java.lang.Object openingMode,
boolean initAction) |
Modifier and Type | Method and Description |
---|---|
void |
addIdentifierFromCallerToTitle(java.lang.String identifierFromCaller) |
protected void |
afterPerformed() |
protected java.lang.String |
appLang(java.lang.String literal) |
protected JotyButton |
buildButton(JotyButton btn,
java.lang.String verbose,
java.awt.event.ActionListener actionListener) |
protected void |
checkAndSetLook() |
protected boolean |
checkEnableAction() |
protected void |
checkForHooveringListener() |
protected void |
checkForHooveringListener(javax.swing.JComponent component) |
boolean |
checkIfFrozen() |
protected void |
checkPanelForNewRec() |
protected void |
clearAppReferences() |
boolean |
close() |
void |
closeDependentDialogs() |
protected boolean |
componentsEnabledOnIdle() |
boolean |
compoundDocument() |
java.lang.String |
contextParameter(java.lang.String name) |
protected static JotyDialog |
create(java.lang.String className,
java.lang.Class[] argTypes,
java.lang.Object[] argValues)
Instantiates a JotyDialog extension class by reflection.
|
protected boolean |
criticalValidation() |
static boolean |
dialogStillLives(java.lang.String dialogClassName)
Detects whether the Dialog is still living and in the positive case it
tries to close it.
|
protected void |
doActivationChange(java.lang.Boolean activating) |
GridManager |
getGridManager() |
GridManager |
getGridManager(boolean DialogLevelImperative) |
static JotyDialog |
getInstance(java.lang.String className)
|
static JotyDialog |
getInstance(java.lang.String className,
java.lang.Class[] argTypes,
java.lang.Object[] argValues)
Try to close a possible living instance of the class of name specified
with
className parameter (by means of dialogStillLives(java.lang.String) )
and when no instance is living gets an new instance by invoking the
create(java.lang.String, java.lang.Class[], java.lang.Object[]) method. |
static JotyDialog |
getInstance(java.lang.String className,
java.lang.Object callContext)
|
static JotyDialog |
getInstance(java.lang.String className,
java.lang.Object callContext,
java.lang.Object openingMode)
As
getInstance(String, Class[], Object[]) but with two specific parameters |
long |
getMainSetSize() |
java.lang.Object |
getMode() |
JotyButton |
getSearcherExpandButton() |
protected JotyButton |
getSelectorButton() |
void |
guiDataExch(boolean predicate) |
protected static javax.swing.ImageIcon |
imageIcon(java.lang.String fileName) |
boolean |
initChildren() |
protected void |
initContext(java.lang.Object callContext) |
protected boolean |
initDialog() |
boolean |
IsCreatable() |
boolean |
isEditing() |
boolean |
isInitializing() |
boolean |
isViewer() |
protected java.lang.String |
jotyLang(java.lang.String literal) |
org.joty.data.WrappedField |
keyElem(java.lang.String keyField) |
GridManager |
masterGridManager() |
void |
onCancel() |
void |
onClose() |
void |
onOK() |
void |
openDetailsDialog() |
boolean |
perform() |
protected void |
preInitChildren() |
protected void |
processFault() |
void |
repaint() |
void |
resetPanel(java.lang.String panelTitle) |
void |
setBounds(int x,
int y,
int width,
int height) |
void |
setContextParam(java.lang.String varName,
org.joty.data.JotyDate valueExpr) |
void |
setContextParam(java.lang.String varName,
long valueExpr) |
void |
setContextParam(java.lang.String varName,
java.lang.String valueExpr) |
protected void |
setEntityName() |
protected void |
setIconImages() |
void |
setToModal() |
protected void |
setValidationUncritical() |
protected void |
showButton(JotyButton theButton) |
protected void |
showButton(JotyButton theButton,
boolean visible) |
protected void |
showButton(JotyButton button,
boolean visible,
boolean enabled) |
protected void |
showDirtyEffect() |
static JotyDialog |
tryCreate(java.lang.String className)
|
static JotyDialog |
tryCreate(java.lang.String className,
java.lang.Class[] argTypes,
java.lang.Object[] argValues)
Tries to create a JotyDialog instance by getting and instance from the
getInstance(java.lang.String) method and then it calls the perform method to
initialize and to show the JotyDialog instance created. |
static JotyDialog |
tryCreate(java.lang.String className,
java.lang.Object oneObjectParam)
as
tryCreate(String, Class[], Object[]) but receives an Object parameter |
static JotyDialog |
tryCreate(java.lang.String className,
java.lang.Object callContext,
java.lang.Object openingMode)
As
tryCreate(String, Class[], Object[]) but with two specific
parameters |
protected void |
updateCommandButtons(boolean Idle) |
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, update
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBack
addPropertyChangeListener, 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, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
add, 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, 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, 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, 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 Application m_app
public boolean m_gotData
protected Panel m_contentPanel
public boolean m_editOrNew_command
public boolean m_new_command
public DataAccessPanel m_currSheet
public boolean m_is_deleting
public GridManager m_gridManager
protected boolean m_newDocument
protected boolean m_isViewer
public org.joty.gui.WFieldSet m_keyElems
protected java.lang.String m_entityName
public org.joty.data.SearchQueryBuilderFront m_queryBuilder
protected boolean m_isEntityNamed
public boolean m_actionEnabled
public javax.swing.JPanel m_buttonPane
public JotyButton m_btnClose
public JotyButton m_btnCancel
public JotyButton m_btnOk
public boolean m_canceling
protected boolean m_initializing
public boolean m_dataUpdate_pending
public boolean m_guiUpdate_pending
public JotyButton m_defaultButton
public boolean m_gridSelChanging
protected boolean m_needsExplicitCloseCommand
public DataAccessPanel m_parentDataPanel
public boolean m_listenForPanelActions
public boolean m_frozen
protected boolean m_initAction
protected boolean m_progressiveAction
protected java.lang.String m_className
public java.lang.Object m_dialogOpeningMode
public boolean m_accessorMode
Term
objects look in the Accessor object for their data definition statements.public boolean m_enforcedVisible
public boolean m_activatedByWindowsMenu
public java.util.Vector<Panel> m_panelsTobeInited
public JotyDialog.CallContext m_callContext
public JotyDialog()
public JotyDialog(java.awt.Frame owner)
public JotyDialog(java.lang.Object callContext)
public JotyDialog(java.lang.Object callContext, java.lang.Object openingMode)
public JotyDialog(java.lang.Object callContext, java.lang.Object openingMode, boolean initAction)
protected static JotyDialog create(java.lang.String className, java.lang.Class[] argTypes, java.lang.Object[] argValues) throws java.lang.ClassNotFoundException
className
- the class nameargTypes
- the array of Class objects for the types of the arguments ( as
used in invoking a constructor by reflection )argValues
- the array of objects for the types of the arguments ( as used
in invoking a constructor by reflection )java.lang.ClassNotFoundException
public static JotyDialog getInstance(java.lang.String className)
public static JotyDialog getInstance(java.lang.String className, java.lang.Class[] argTypes, java.lang.Object[] argValues)
className
parameter (by means of dialogStillLives(java.lang.String)
)
and when no instance is living gets an new instance by invoking the
create(java.lang.String, java.lang.Class[], java.lang.Object[])
method. If the possible living instance is not closable
this method returns null.
For the meaning of the parameters see the create(java.lang.String, java.lang.Class[], java.lang.Object[])
method.
public static JotyDialog getInstance(java.lang.String className, java.lang.Object callContext)
public static JotyDialog getInstance(java.lang.String className, java.lang.Object callContext, java.lang.Object openingMode)
getInstance(String, Class[], Object[])
but with two specific parameterscallContext
- the CallContext
object of the invoking JotyDialog.openingMode
- the opening mode of the target dialog among those defined in its class.public static boolean dialogStillLives(java.lang.String dialogClassName)
dialogClassName
- is the full name of the classprotected static javax.swing.ImageIcon imageIcon(java.lang.String fileName)
public static JotyDialog tryCreate(java.lang.String className)
public static JotyDialog tryCreate(java.lang.String className, java.lang.Class[] argTypes, java.lang.Object[] argValues)
getInstance(java.lang.String)
method and then it calls the perform
method to
initialize and to show the JotyDialog instance created.
For the meaning of the parameters see the create(java.lang.String, java.lang.Class[], java.lang.Object[])
method.
public static JotyDialog tryCreate(java.lang.String className, java.lang.Object oneObjectParam)
tryCreate(String, Class[], Object[])
but receives an Object parameterpublic static JotyDialog tryCreate(java.lang.String className, java.lang.Object callContext, java.lang.Object openingMode)
tryCreate(String, Class[], Object[])
but with two specific
parameterscallContext
- the CallContext
object of the invoking JotyDialog.openingMode
- the opening mode of the target dialog among those defined in its class.public void addIdentifierFromCallerToTitle(java.lang.String identifierFromCaller)
protected void afterPerformed()
protected java.lang.String appLang(java.lang.String literal)
protected JotyButton buildButton(JotyButton btn, java.lang.String verbose, java.awt.event.ActionListener actionListener)
protected void checkAndSetLook()
protected boolean checkEnableAction()
protected void checkForHooveringListener()
protected void checkForHooveringListener(javax.swing.JComponent component)
public boolean checkIfFrozen()
protected void checkPanelForNewRec()
protected void clearAppReferences()
public boolean close()
public void closeDependentDialogs()
protected boolean componentsEnabledOnIdle()
public boolean compoundDocument()
public java.lang.String contextParameter(java.lang.String name)
protected boolean criticalValidation()
protected void doActivationChange(java.lang.Boolean activating)
public GridManager getGridManager()
public GridManager getGridManager(boolean DialogLevelImperative)
public long getMainSetSize()
public java.lang.Object getMode()
public JotyButton getSearcherExpandButton()
protected JotyButton getSelectorButton()
public void guiDataExch(boolean predicate)
public boolean initChildren()
protected void initContext(java.lang.Object callContext)
protected boolean initDialog()
public boolean IsCreatable()
public boolean isEditing()
public boolean isInitializing()
public boolean isViewer()
protected java.lang.String jotyLang(java.lang.String literal)
public org.joty.data.WrappedField keyElem(java.lang.String keyField)
public GridManager masterGridManager()
public void onCancel()
public void onClose()
public void onOK()
public void openDetailsDialog()
public boolean perform()
protected void preInitChildren()
protected void processFault()
public void repaint()
repaint
in class java.awt.Component
public void resetPanel(java.lang.String panelTitle)
public void setBounds(int x, int y, int width, int height)
setBounds
in class java.awt.Window
public void setContextParam(java.lang.String varName, org.joty.data.JotyDate valueExpr)
public void setContextParam(java.lang.String varName, long valueExpr)
public void setContextParam(java.lang.String varName, java.lang.String valueExpr)
protected void setEntityName()
protected void setIconImages()
public void setToModal()
protected void setValidationUncritical()
protected void showButton(JotyButton theButton)
protected void showButton(JotyButton theButton, boolean visible)
protected void showButton(JotyButton button, boolean visible, boolean enabled)
protected void showDirtyEffect()
protected void updateCommandButtons(boolean Idle)