public abstract class MustContainer extends javax.swing.JComponent implements ContextHelp, AppTextResource, WindowController
Modifier and Type | Class and Description |
---|---|
static class |
MustContainer.Creator
Creator class for container.
|
static interface |
MustContainer.Owner |
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected boolean |
destroyed |
protected boolean |
dirty |
protected javax.swing.JLabel |
header |
protected MustContainer.Owner |
owner |
protected SessionResources |
sd
to unify multilingualism handling of web server and desktop applications
|
protected javax.swing.ImageIcon |
specialImageIcon |
protected MustStatusLabel |
statusLabel |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
MustContainer(MustContainer.Owner owner) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
protected void |
free()
Releases external resources.
|
void |
generalActionBeginnung() |
void |
generalActionEnding() |
java.lang.String |
getAppResStr(java.lang.String resourceKey)
Returns a text in the corresponding language according to the locale specific resource bundle.
|
java.awt.Container |
getContentPane() |
MustFrameWithStatusLabel |
getFrame() |
java.lang.String |
getHelpTarget()
Returns the target of the component's help context
|
java.lang.String |
getHelpTopic()
Returns the topic of the component's help context
|
protected javax.swing.ImageIcon |
getImageIcon(java.lang.String imageIconName) |
java.util.Locale |
getLocale() |
javax.swing.JRootPane |
getRootPane() |
java.lang.String |
getTranslation(java.lang.String key) |
boolean |
isCancelAllowed()
Returns true if it is allowed to cancel user interaction.
|
boolean |
isClosingAllowed()
Returns true if closing of the window is allowed.
|
boolean |
isClosingAllowed(int closeConfirmId) |
void |
receive(java.lang.String message) |
DataObject |
register(DataObject dataObject)
Registers an object to free its external resources as soon as they are not needed any more.
|
void |
register(Exemptible exemptible)
Registers an object to free its external resources as soon as they are not needed any more.
|
void |
resetMessage() |
void |
resetTemporaryMessage() |
void |
setDefaultButton(MustButton button) |
void |
setHelpContext(java.lang.String helpTopic)
Sets the component's context help.
|
void |
setHelpContext(java.lang.String helpTopic,
java.lang.String helpTarget)
Sets the component's context help.
|
void |
setMessage(java.lang.String message)
Sets the message to be read by the user, which is presented in the status
label in this context.
|
void |
setMessageToKeep(java.lang.String messageToKeep)
Sets the message to be read by the user, it is not reset by
generalActionEnding when action completed.
|
void |
setMessageToKeep(java.lang.String messageToKeep,
java.lang.Object origin)
Sets the message to be read by the user, it is not reset by
generalActionEnding when action completed.
|
void |
setTitle(java.lang.String headerText) |
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected MustContainer.Owner owner
protected SessionResources sd
protected javax.swing.JLabel header
protected javax.swing.ImageIcon specialImageIcon
protected MustStatusLabel statusLabel
protected boolean dirty
protected boolean destroyed
public MustContainer(MustContainer.Owner owner)
public void setTitle(java.lang.String headerText)
public void setHelpContext(java.lang.String helpTopic)
helpTopic
- the context help's topichelpTarget
- the context help's targetpublic void setHelpContext(java.lang.String helpTopic, java.lang.String helpTarget)
setHelpContext
in interface ContextHelp
helpTopic
- the context help's topichelpTarget
- the context help's targetpublic java.lang.String getHelpTopic()
getHelpTopic
in interface ContextHelp
public java.lang.String getHelpTarget()
getHelpTarget
in interface ContextHelp
public java.lang.String getAppResStr(java.lang.String resourceKey)
AppTextResource
getAppResStr
in interface AppTextResource
resourceKey
- the key of the resource to retrievepublic MustFrameWithStatusLabel getFrame()
public javax.swing.JRootPane getRootPane()
getRootPane
in class javax.swing.JComponent
public java.awt.Container getContentPane()
public void register(Exemptible exemptible)
exemptible
- the exemptible object to registerpublic DataObject register(DataObject dataObject)
dataObject
- the data object to register to be released at a suitable later momentpublic java.util.Locale getLocale()
getLocale
in class java.awt.Component
public java.lang.String getTranslation(java.lang.String key)
protected javax.swing.ImageIcon getImageIcon(java.lang.String imageIconName)
public boolean isClosingAllowed()
public boolean isClosingAllowed(int closeConfirmId)
public void generalActionBeginnung()
generalActionBeginnung
in interface WindowController
public void generalActionEnding()
generalActionEnding
in interface WindowController
public void setDefaultButton(MustButton button)
public void receive(java.lang.String message)
receive
in interface MessageReceiver
public void setMessage(java.lang.String message)
message
- the message for the userpublic void setMessageToKeep(java.lang.String messageToKeep)
messageToKeep
- the message for the userpublic void setMessageToKeep(java.lang.String messageToKeep, java.lang.Object origin)
messageToKeep
- the message for the userorigin
- the origin witch caused message - special value to suppress dialog completelypublic void resetMessage()
public void resetTemporaryMessage()
public boolean isCancelAllowed()
protected void free()
public void destroy()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de