|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
jv.object.PsDialog
jvx.project.PjWorkshop_Dialog
Dialog for displaying the info panel of a workshop. The workshop is registered as parent of this dialog, and a new info panel of the workshop is displayed in the center of this dialog, plus an optional notice message in the north and a panel with dialog buttons in the south.
The info panel of the workshop is registered as ActionListener of this dialog. Pressing either dialog button will fire an ActionEvent in PsDialog that is then handled by the info panel PjWorkshop_IP. PjWorkshop_IP will call methods corresponding to button events. This mechanism allows that the dialog has a universal use for all workshops in JavaView.
PjWorkshop_IP,
Serialized Form| Field Summary |
| Fields inherited from class jv.object.PsDialog |
BUTTON_CANCEL, BUTTON_CLEAR, BUTTON_CLOSE, BUTTON_HIDE, BUTTON_LOAD, BUTTON_OK, BUTTON_RESET, BUTTON_SAVE |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
PjWorkshop_Dialog()
Constructor of dialog, dialog is not modal. |
|
PjWorkshop_Dialog(boolean modal)
Constructor of dialog to show the info panel of a workshop. |
|
PjWorkshop_Dialog(java.lang.String title,
boolean modal)
Constructor of dialog to show the info panel of a workshop. |
|
| Method Summary | |
static PsPanel |
createNotice(java.lang.String text)
Create a panel showing a user notice given as text with line breaks. |
void |
init()
Initialization method sets the layout manager to BorderLayout. |
void |
setPanel(PjWorkshop_IP panel)
Assign an inspector panel to be used to fill this dialog. |
void |
setParent(PsUpdateIf object)
Assign the parent workshop and perform a layout of the dialog. |
boolean |
update(java.lang.Object event)
Update the class whenever a child has changed. |
void |
windowClosed(java.awt.event.WindowEvent event)
Catch closing of a dialog by the window manager and call parent workshop's cancel() method. |
| Methods inherited from class jv.object.PsDialog |
actionPerformed, addActionListener, getBottomButtons, getFather, getUserAction, instanceOf, removeActionListener, reset, setHeader, windowActivated, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened |
| Methods inherited from class java.awt.Dialog |
addNotify, dispose, getAccessibleContext, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
| Methods inherited from class java.awt.Window |
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, toBack, toFront |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, 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, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jv.object.PsUpdateIf |
getName |
| Constructor Detail |
public PjWorkshop_Dialog()
public PjWorkshop_Dialog(boolean modal)
modal - true if dialog is modal
public PjWorkshop_Dialog(java.lang.String title,
boolean modal)
title - title of the dialogmodal - true if dialog is modal| Method Detail |
public void init()
init in class PsDialogpublic void setPanel(PjWorkshop_IP panel)
Usually this method is called indirectly when a parent workshop is assigned to this dialog. Then this method is invoked with a new default inspector panel.
If a user wants to register a different inspector panel, then this panel must be created outside and registered using this method. After registration, the workshop registers as usual as parent using setParent().
Currently, this method does not register the info panel of the workshop as action listener in order to receive button events.
panel - Must be an instance of jvx.project.PjWorkshop_IP.public void setParent(PsUpdateIf object)
Dialog title of the info panel is set as title of the dialog. If the title of the info panel shows the same string as the requested dialog title then the title label is removed from the info panel.
The info panel of the workshop is registered as action listener in order to receive button events.
setParent in interface PsUpdateIfsetParent in class PsDialogobject - Must be an instance of jvx.project.PjWorkshop.PsDialog.getFather(),
PsDialog.update(Object)public boolean update(java.lang.Object event)
This method basically returns true if the event is the workshop. More functionality might be added by subclasses of this dialog.
update in interface PsUpdateIfupdate in class PsDialogPsDialog.getFather(),
PsDialog.setParent(PsUpdateIf)public static PsPanel createNotice(java.lang.String text)
text - text including line breaks "\n".
public void windowClosed(java.awt.event.WindowEvent event)
windowClosed in interface java.awt.event.WindowListenerwindowClosed in class PsDialog
|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||