IBM Branch Transformation Toolkit Javadoc

com.ibm.dse.desktop
Class WorkingArea

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JLayeredPane
                  extended byjavax.swing.JDesktopPane
                      extended bycom.ibm.dse.desktop.WorkingArea
All Implemented Interfaces:
javax.accessibility.Accessible, java.util.EventListener, java.awt.image.ImageObserver, java.awt.event.ItemListener, java.awt.MenuContainer, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.io.Serializable

public class WorkingArea
extends javax.swing.JDesktopPane
implements java.awt.event.ItemListener, java.awt.event.MouseMotionListener, java.awt.event.MouseListener

The WorkingArea class provides a generic pane in which you can add operation panels dynamically when the operations are launched.

See Also:
Serialized Form

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

OVERLAPPING

protected int OVERLAPPING
identifier of the overlapping position


TILE

protected int TILE
identifier of the tiling position


CASCADE

protected int CASCADE
identifier of the cascading position


SOURCE

protected int SOURCE
identifier of the overlapping position


UNDO

protected int UNDO
identifier of the undo position


widthScreen

static int widthScreen

heightScreen

static int heightScreen

NOKEY

public static final int NOKEY
See Also:
Constant Field Values

NOMASK

public static final int NOMASK
See Also:
Constant Field Values

screenSizeComputed

static boolean screenSizeComputed
Constructor Detail

WorkingArea

public WorkingArea()
This constructor creates a WorkingArea object.

Method Detail

calculateSize

public int calculateSize()
Returns the number of frames that are visible.

Returns:
int

clearAllFrames

public void clearAllFrames()
Clears all the frames created for the operation panels.


createNewFrame

protected boolean createNewFrame(int i)
Returns whether a new Frame is necessary.

Returns:
boolean

getColor

public java.awt.Color getColor()
Gets the color of the background of the WorkingArea when a user selects it.

Returns:
java.awt.Color

getDefaultIcon

public javax.swing.Icon getDefaultIcon()
Gets the default icon used in the frames that are added to the WorkingArea.

Returns:
com.sun.java.swing.Icon

getFrameAtLevel

public SpInternalFrame getFrameAtLevel(int i)
Gets the frame created for an operation panel with the cascade level of i.

Parameters:
i - int
Returns:
JInternalFrame

getFrameAtLevel

public 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.

Parameters:
i - int
heightNA - int
x - int
y - int
Returns:
JInternalFrame

getFrames

public java.util.Vector getFrames()
Returns a Vector of frames in the WorkingArea.


getIcon

public javax.swing.Icon getIcon()
Gets the background image of the WorkingArea.

Returns:
com.sun.java.swing.Icon

getJPopupMenu

protected javax.swing.JPopupMenu getJPopupMenu()
Returns the JPopupMenu1 property value.

Returns:
com.sun.java.swing.JPopupMenu

getJRadioButtonMenuItem1

public javax.swing.JRadioButtonMenuItem getJRadioButtonMenuItem1()
Returns the JRadioButtonMenuItem1 property value.

Returns:
javax.swing.JRadioButtonMenuItem

getJRadioButtonMenuItem2

public javax.swing.JRadioButtonMenuItem getJRadioButtonMenuItem2()
Returns the JRadioButtonMenuItem2 property value.

Returns:
javax.swing.JRadioButtonMenuItem

getJRadioButtonMenuItem3

public javax.swing.JRadioButtonMenuItem getJRadioButtonMenuItem3()
Returns the JRadioButtonMenuItem3 property value.

Returns:
javax.swing.JRadioButtonMenuItem

getJRadioButtonMenuItem4

public javax.swing.JRadioButtonMenuItem getJRadioButtonMenuItem4()
Returns the JRadioButtonMenuItem4 property value.

Returns:
javax.swing.JRadioButtonMenuItem

getJRadioButtonMenuItem5

public javax.swing.JRadioButtonMenuItem getJRadioButtonMenuItem5()
Returns the JRadioButtonMenuItem5 property value.

Returns:
javax.swing.JRadioButtonMenuItem

getJRadioButtonMenuItem6

public javax.swing.JRadioButtonMenuItem getJRadioButtonMenuItem6()
Returns the JRadioButtonMenuItem6 property value.

Returns:
javax.swing.JRadioButtonMenuItem

getNewInternalFrame

protected SpInternalFrame getNewInternalFrame()
Returns a new instance of InternalFrame.

Returns:
com.ibm.dse.desktop.SpInternalFrame

getRedGreenBlue

public 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.

Returns:
java.lang.String

getShowPopup

public boolean getShowPopup()
Returns whether the pop-up is shown.

Returns:
boolean - True if the pop-up is visible

getSizeForLevel

public java.awt.Dimension getSizeForLevel(int i)
Gets a dimension for a given level of the WorkingArea.

Parameters:
i - int
Returns:
Dimension

getVisual

public int getVisual()
Returns the view's type of visualization. return int;


getWarningMessageWhenAViewCanNotBeClosed

public java.lang.String getWarningMessageWhenAViewCanNotBeClosed()
Returns the message shown when a view cannot be closed.

Returns:
String

getXCascade

public int getXCascade()
Returns the X cascade position of the view. return int


getYCascade

public int getYCascade()
Returns the Y cascade position of the view. return int


hideAllFrames

public void hideAllFrames()
Sets all the frames to not visible.


itemChanged

public void itemChanged(java.lang.Object e)
Sets the way the pop-up is shown.


itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Handles events for the ItemListener interface.

Specified by:
itemStateChanged in interface java.awt.event.ItemListener
Parameters:
e - java.awt.event.ItemEvent

main

public static void main(java.lang.String[] args)
Provides the main entrypoint. It starts the part when it is run as an application.

Parameters:
args - java.lang.String[]

menuButton_KeyPressed

protected void menuButton_KeyPressed(java.awt.event.KeyEvent keyEvent)
Handles what happens when a key is pressed on the MenuButton or MenuItem:


mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Handles events for the MouseListener interface.

Specified by:
mouseClicked in interface java.awt.event.MouseListener
Parameters:
e - java.awt.event.MouseEvent

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent event)
Handles events for the MouseMotionListener interface.

Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener
Parameters:
event - java.awt.event.MouseEvent

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Handles events for the MouseListener interface.

Specified by:
mouseEntered in interface java.awt.event.MouseListener
Parameters:
e - java.awt.event.MouseEvent

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Handles events for the MouseListener interface.

Specified by:
mouseExited in interface java.awt.event.MouseListener
Parameters:
e - java.awt.event.MouseEvent

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent event)
Handles events for the MouseListener interface.

Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
Parameters:
event - java.awt.event.MouseEvent

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Handles events for the MouseListener interface.

Specified by:
mousePressed in interface java.awt.event.MouseListener
Parameters:
e - java.awt.event.MouseEvent

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Handles events for the MouseListener interface.

Specified by:
mouseReleased in interface java.awt.event.MouseListener
Parameters:
e - java.awt.event.MouseEvent

navigatePopupMenu

protected void navigatePopupMenu(int direction)
Navigates in the pop-up menu according to the direction parameter value:

Parameters:
direction - int

removeFrame

public void removeFrame(SpInternalFrame i)
Removes the frame at level i.


removeFrames

public void removeFrames()

reWrite

public void reWrite()
Rewrites the pop-up menu of the Desktop.


setColor

public void setColor(java.lang.Object o)
Sets the color of the background of the working area when the user selects it.


setComponentOrientation

public void setComponentOrientation(java.awt.ComponentOrientation o)
Changes the orientation of the components inside the WorkingArea.

Parameters:
o - ComponentOrientation

setDefaultIcon

public void setDefaultIcon(java.lang.Object o)
Sets the default icon used in the frames that are added to the WorkingArea.

Parameters:
o - java.lang.Object

setDefaultIcon

public void setDefaultIcon(javax.swing.Icon anIcon)
Sets the default icon used in the frames that are added to the WorkingArea.


setFrames

public void setFrames(java.util.Vector v)
Sets the frames property with the vector passed as a parameter.


setHeight

public void setHeight(java.lang.Object o)
Sets the height of the WorkingArea.

Parameters:
o - java.lang.Object

setIcon

public void setIcon(javax.swing.Icon anIcon)
Sets the background image of the WorkingArea.

Parameters:
anIcon - Icon

setIconName

public void setIconName(java.lang.Object o)
Sets the background image of the WorkingArea.


setId

public void setId(java.lang.Object o)
Sets the ID (name) for this WorkingArea.

Parameters:
o - java.lang.Object

setName

public void setName(java.lang.Object o)
Sets the name of the WorkingArea.

Parameters:
o - java.lang.Object

setRedGreenBlue

public 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.

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).

Parameters:
o - java.lang.Object

setShowPopup

public void setShowPopup(java.lang.Object o)
Sets the showpopup boolean of the WorkingArea.

Parameters:
o - java.lang.Object

setVisual

public void setVisual(int i)
Sets how the view is displayed in the WorkingArea. Examples include tile, overlap, and cascade.


setVisualMode

public void setVisualMode()
Sets the visual mode of the current view in the WorkingArea.


setVisualMode

public void setVisualMode(int position)
Sets the visual mode of showing the view to the WorkingArea.


setWarningMessageWhenAViewCanNotBeClosed

public void setWarningMessageWhenAViewCanNotBeClosed(java.lang.Object o)
Sets the message shown when a view cannot be closed.


setWidth

public void setWidth(java.lang.Object o)
Sets the width of the WorkingArea.

Parameters:
o - java.lang.Object

setXCascade

public void setXCascade(java.lang.Object o)
Sets the X cascade of the WorkingArea.


setYCascade

public void setYCascade(java.lang.Object o)
Sets the Y cascade of the WorkingArea.


showCascadePosition

public void showCascadePosition()
Displays tasks in a cascade arrangement.


showMenu

protected void showMenu(javax.swing.JPopupMenu popup,
                        int x,
                        int y)
Shows the MenuButton's pop-up menu in a visible area.


showMenu

protected void showMenu(javax.swing.JPopupMenu popup,
                        java.awt.event.MouseEvent e)
Shows the MenuButton's pop-up menu in a visible area.


showOverlappingPosition

public void showOverlappingPosition()
Displays tasks in an overlapped arrangement.


showTilePosition

public void showTilePosition()
Displays tasks in a tiled arrangement.


toString

public java.lang.String toString()
Returns a string representation of the WorkingArea.

Returns:
java.lang.String

undoPosition

public void undoPosition()
Displays tasks in their previous locations and sizes.


IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005