|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLayeredPane
javax.swing.JDesktopPane
com.ibm.dse.desktop.WorkingArea
The WorkingArea class provides a generic pane in which you can add operation panels dynamically when the operations are launched.
Nested Class Summary | |
---|---|
(package private) class |
WorkingArea.MenuButtonL
|
Nested classes inherited from class javax.swing.JDesktopPane |
---|
javax.swing.JDesktopPane.AccessibleJDesktopPane |
Nested classes inherited from class javax.swing.JLayeredPane |
---|
javax.swing.JLayeredPane.AccessibleJLayeredPane |
Nested classes inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected int |
CASCADE
identifier of the cascading position |
(package private) static int |
heightScreen
|
static int |
NOKEY
|
static int |
NOMASK
|
protected int |
OVERLAPPING
identifier of the overlapping position |
(package private) static boolean |
screenSizeComputed
|
protected int |
SOURCE
identifier of the overlapping position |
protected int |
TILE
identifier of the tiling position |
protected int |
UNDO
identifier of the undo position |
(package private) static int |
widthScreen
|
Fields inherited from class javax.swing.JDesktopPane |
---|
LIVE_DRAG_MODE, OUTLINE_DRAG_MODE |
Fields inherited from class javax.swing.JLayeredPane |
---|
DEFAULT_LAYER, DRAG_LAYER, FRAME_CONTENT_LAYER, LAYER_PROPERTY, MODAL_LAYER, PALETTE_LAYER, POPUP_LAYER |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Container |
---|
|
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 | |
---|---|
WorkingArea()
This constructor creates a WorkingArea object. |
Method Summary | |
---|---|
int |
calculateSize()
Returns the number of frames that are visible. |
void |
clearAllFrames()
Clears all the frames created for the operation panels. |
protected boolean |
createNewFrame(int i)
Returns whether a new Frame is necessary. |
java.awt.Color |
getColor()
Gets the color of the background of the WorkingArea when a user selects it. |
javax.swing.Icon |
getDefaultIcon()
Gets the default icon used in the frames that are added to the WorkingArea. |
SpInternalFrame |
getFrameAtLevel(int i)
Gets the frame created for an operation panel with the cascade level of i. |
SpInternalFrame |
getFrameAtLevel(int i,
int widthNA,
int heightNA,
int x,
int y)
Gets the frame created for an operation panel with the cascade level of i. |
java.util.Vector |
getFrames()
Returns a Vector of frames in the WorkingArea. |
javax.swing.Icon |
getIcon()
Gets the background image of the WorkingArea. |
protected javax.swing.JPopupMenu |
getJPopupMenu()
Returns the JPopupMenu1 property value. |
javax.swing.JRadioButtonMenuItem |
getJRadioButtonMenuItem1()
Returns the JRadioButtonMenuItem1 property value. |
javax.swing.JRadioButtonMenuItem |
getJRadioButtonMenuItem2()
Returns the JRadioButtonMenuItem2 property value. |
javax.swing.JRadioButtonMenuItem |
getJRadioButtonMenuItem3()
Returns the JRadioButtonMenuItem3 property value. |
javax.swing.JRadioButtonMenuItem |
getJRadioButtonMenuItem4()
Returns the JRadioButtonMenuItem4 property value. |
javax.swing.JRadioButtonMenuItem |
getJRadioButtonMenuItem5()
Returns the JRadioButtonMenuItem5 property value. |
javax.swing.JRadioButtonMenuItem |
getJRadioButtonMenuItem6()
Returns the JRadioButtonMenuItem6 property value. |
protected SpInternalFrame |
getNewInternalFrame()
Returns a new instance of InternalFrame. |
java.lang.String |
getRedGreenBlue()
Returns (as red component, green component, blue component) the value of the redGreenBlue property that defines the color of the background. |
boolean |
getShowPopup()
Returns whether the pop-up is shown. |
java.awt.Dimension |
getSizeForLevel(int i)
Gets a dimension for a given level of the WorkingArea. |
int |
getVisual()
Returns the view's type of visualization. |
java.lang.String |
getWarningMessageWhenAViewCanNotBeClosed()
Returns the message shown when a view cannot be closed. |
int |
getXCascade()
Returns the X cascade position of the view. |
int |
getYCascade()
Returns the Y cascade position of the view. |
void |
hideAllFrames()
Sets all the frames to not visible. |
void |
itemChanged(java.lang.Object e)
Sets the way the pop-up is shown. |
void |
itemStateChanged(java.awt.event.ItemEvent e)
Handles events for the ItemListener interface. |
static void |
main(java.lang.String[] args)
Provides the main entrypoint. |
protected void |
menuButton_KeyPressed(java.awt.event.KeyEvent keyEvent)
Handles what happens when a key is pressed on the MenuButton or MenuItem: Down arrow key => one step down Up arrow key => one step up Escape key => quit the menu Enter key => launch the corresponding operation |
void |
mouseClicked(java.awt.event.MouseEvent e)
Handles events for the MouseListener interface. |
void |
mouseDragged(java.awt.event.MouseEvent event)
Handles events for the MouseMotionListener interface. |
void |
mouseEntered(java.awt.event.MouseEvent e)
Handles events for the MouseListener interface. |
void |
mouseExited(java.awt.event.MouseEvent e)
Handles events for the MouseListener interface. |
void |
mouseMoved(java.awt.event.MouseEvent event)
Handles events for the MouseListener interface. |
void |
mousePressed(java.awt.event.MouseEvent e)
Handles events for the MouseListener interface. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Handles events for the MouseListener interface. |
protected void |
navigatePopupMenu(int direction)
Navigates in the pop-up menu according to the direction parameter value: +1 => one step up -1 => one step down |
void |
removeFrame(SpInternalFrame i)
Removes the frame at level i. |
void |
removeFrames()
|
void |
reWrite()
Rewrites the pop-up menu of the Desktop. |
void |
setColor(java.lang.Object o)
Sets the color of the background of the working area when the user selects it. |
void |
setComponentOrientation(java.awt.ComponentOrientation o)
Changes the orientation of the components inside the WorkingArea. |
void |
setDefaultIcon(javax.swing.Icon anIcon)
Sets the default icon used in the frames that are added to the WorkingArea. |
void |
setDefaultIcon(java.lang.Object o)
Sets the default icon used in the frames that are added to the WorkingArea. |
void |
setFrames(java.util.Vector v)
Sets the frames property with the vector passed as a parameter. |
void |
setHeight(java.lang.Object o)
Sets the height of the WorkingArea. |
void |
setIcon(javax.swing.Icon anIcon)
Sets the background image of the WorkingArea. |
void |
setIconName(java.lang.Object o)
Sets the background image of the WorkingArea. |
void |
setId(java.lang.Object o)
Sets the ID (name) for this WorkingArea. |
void |
setName(java.lang.Object o)
Sets the name of the WorkingArea. |
void |
setRedGreenBlue(java.lang.Object o)
Creates an RGB color with the specified red, green and blue values in the range (0 - 255) and sets the color of the background of the working area when the user selects it. |
void |
setShowPopup(java.lang.Object o)
Sets the showpopup boolean of the WorkingArea. |
void |
setVisual(int i)
Sets how the view is displayed in the WorkingArea. |
void |
setVisualMode()
Sets the visual mode of the current view in the WorkingArea. |
void |
setVisualMode(int position)
Sets the visual mode of showing the view to the WorkingArea. |
void |
setWarningMessageWhenAViewCanNotBeClosed(java.lang.Object o)
Sets the message shown when a view cannot be closed. |
void |
setWidth(java.lang.Object o)
Sets the width of the WorkingArea. |
void |
setXCascade(java.lang.Object o)
Sets the X cascade of the WorkingArea. |
void |
setYCascade(java.lang.Object o)
Sets the Y cascade of the WorkingArea. |
void |
showCascadePosition()
Displays tasks in a cascade arrangement. |
protected void |
showMenu(javax.swing.JPopupMenu popup,
int x,
int y)
Shows the MenuButton's pop-up menu in a visible area. |
protected void |
showMenu(javax.swing.JPopupMenu popup,
java.awt.event.MouseEvent e)
Shows the MenuButton's pop-up menu in a visible area. |
void |
showOverlappingPosition()
Displays tasks in an overlapped arrangement. |
void |
showTilePosition()
Displays tasks in a tiled arrangement. |
java.lang.String |
toString()
Returns a string representation of the WorkingArea. |
void |
undoPosition()
Displays tasks in their previous locations and sizes. |
Methods inherited from class javax.swing.JDesktopPane |
---|
getAccessibleContext, getAllFrames, getAllFramesInLayer, getDesktopManager, getDragMode, getSelectedFrame, getUI, getUIClassID, isOpaque, paramString, setDesktopManager, setDragMode, setSelectedFrame, setUI, updateUI |
Methods inherited from class javax.swing.JLayeredPane |
---|
addImpl, getComponentCountInLayer, getComponentsInLayer, getComponentToLayer, getIndexOf, getLayer, getLayer, getLayeredPaneAbove, getObjectForLayer, getPosition, highestLayer, insertIndexForLayer, isOptimizedDrawingEnabled, lowestLayer, moveToBack, moveToFront, paint, putLayer, remove, setLayer, setLayer, setPosition |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int OVERLAPPING
protected int TILE
protected int CASCADE
protected int SOURCE
protected int UNDO
static int widthScreen
static int heightScreen
public static final int NOKEY
public static final int NOMASK
static boolean screenSizeComputed
Constructor Detail |
public WorkingArea()
Method Detail |
public int calculateSize()
public void clearAllFrames()
protected boolean createNewFrame(int i)
public java.awt.Color getColor()
public javax.swing.Icon getDefaultIcon()
public SpInternalFrame getFrameAtLevel(int i)
i
- int
public SpInternalFrame getFrameAtLevel(int i, int widthNA, int heightNA, int x, int y)
i
- intheightNA
- intx
- inty
- int
public java.util.Vector getFrames()
public javax.swing.Icon getIcon()
protected javax.swing.JPopupMenu getJPopupMenu()
public javax.swing.JRadioButtonMenuItem getJRadioButtonMenuItem1()
public javax.swing.JRadioButtonMenuItem getJRadioButtonMenuItem2()
public javax.swing.JRadioButtonMenuItem getJRadioButtonMenuItem3()
public javax.swing.JRadioButtonMenuItem getJRadioButtonMenuItem4()
public javax.swing.JRadioButtonMenuItem getJRadioButtonMenuItem5()
public javax.swing.JRadioButtonMenuItem getJRadioButtonMenuItem6()
protected SpInternalFrame getNewInternalFrame()
public java.lang.String getRedGreenBlue()
public boolean getShowPopup()
public java.awt.Dimension getSizeForLevel(int i)
i
- int
public int getVisual()
public java.lang.String getWarningMessageWhenAViewCanNotBeClosed()
public int getXCascade()
public int getYCascade()
public void hideAllFrames()
public void itemChanged(java.lang.Object e)
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
e
- java.awt.event.ItemEventpublic static void main(java.lang.String[] args)
args
- java.lang.String[]protected void menuButton_KeyPressed(java.awt.event.KeyEvent keyEvent)
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
e
- java.awt.event.MouseEventpublic void mouseDragged(java.awt.event.MouseEvent event)
mouseDragged
in interface java.awt.event.MouseMotionListener
event
- java.awt.event.MouseEventpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
e
- java.awt.event.MouseEventpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
e
- java.awt.event.MouseEventpublic void mouseMoved(java.awt.event.MouseEvent event)
mouseMoved
in interface java.awt.event.MouseMotionListener
event
- java.awt.event.MouseEventpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
e
- java.awt.event.MouseEventpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
e
- java.awt.event.MouseEventprotected void navigatePopupMenu(int direction)
direction
- intpublic void removeFrame(SpInternalFrame i)
public void removeFrames()
public void reWrite()
public void setColor(java.lang.Object o)
public void setComponentOrientation(java.awt.ComponentOrientation o)
o
- ComponentOrientationpublic void setDefaultIcon(java.lang.Object o)
o
- java.lang.Objectpublic void setDefaultIcon(javax.swing.Icon anIcon)
public void setFrames(java.util.Vector v)
public void setHeight(java.lang.Object o)
o
- java.lang.Objectpublic void setIcon(javax.swing.Icon anIcon)
anIcon
- Iconpublic void setIconName(java.lang.Object o)
public void setId(java.lang.Object o)
o
- java.lang.Objectpublic void setName(java.lang.Object o)
o
- java.lang.Objectpublic void setRedGreenBlue(java.lang.Object o)
The parameter o should be given in the following format: (red component,green component,blue component) For example, the parameter is "127,127,34" so the instantiated color is Color(127,127,34).
o
- java.lang.Objectpublic void setShowPopup(java.lang.Object o)
o
- java.lang.Objectpublic void setVisual(int i)
public void setVisualMode()
public void setVisualMode(int position)
public void setWarningMessageWhenAViewCanNotBeClosed(java.lang.Object o)
public void setWidth(java.lang.Object o)
o
- java.lang.Objectpublic void setXCascade(java.lang.Object o)
public void setYCascade(java.lang.Object o)
public void showCascadePosition()
protected void showMenu(javax.swing.JPopupMenu popup, int x, int y)
protected void showMenu(javax.swing.JPopupMenu popup, java.awt.event.MouseEvent e)
public void showOverlappingPosition()
public void showTilePosition()
public java.lang.String toString()
public void undoPosition()
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |