|
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.JPanel
com.ibm.dse.gui.SpPanel
com.ibm.dse.gui.EmbeddedPanel
com.ibm.dse.desktop.TaskArea
The TaskArea class provides a reserved area for keeping the list of tasks that are launched during the application process. It takes into account the maximum number of tasks that the customer wants the system to support at a given time.
Nested Class Summary | |
---|---|
(package private) class |
TaskArea.MenuButtonL
|
Nested classes inherited from class com.ibm.dse.gui.SpPanel |
---|
|
Nested classes inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
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 TaskButton |
activeTask
identifier of the activeTask |
protected java.util.Vector |
DSEtasks
vector of toolkit tasks |
(package private) static int |
heightScreen
|
protected int |
numberOfButtonTasks
identifier of the number of button tasks |
(package private) static boolean |
screenSizeComputed
|
protected java.util.Vector |
threads
vector of no toolkit tasks |
(package private) static int |
widthScreen
|
Fields inherited from class com.ibm.dse.gui.SpPanel |
---|
NULL_VALUE, refreshing |
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 | |
---|---|
TaskArea()
This constructor creates a TaskArea object. |
|
TaskArea(boolean isDoubleBuffered)
This constructor creates a TaskArea object. |
|
TaskArea(java.awt.LayoutManager layout)
This constructor creates a TaskArea object. |
|
TaskArea(java.awt.LayoutManager layout,
boolean isDoubleBuffered)
This constructor creates a TaskArea object. |
Method Summary | |
---|---|
void |
activate(DSETaskButton t)
Activates a task, which happens when it is clicked or when it becomes the active task because another is closed. |
void |
activate(ExternalTaskButton t)
Activates a task, which happens when it is clicked or when it becomes the active task because another is closed. |
void |
activate(TaskButton t)
|
void |
activateCurrentTask()
Activates the current task, which is the one selected. |
void |
activateNextTask(TaskButton t)
Activates the next task when the current task is minimized. |
void |
closeAll()
Closes all Tasks. |
java.lang.String |
getBaseHotKey()
Gets the base hotKey of the TaskArea. |
TaskButton |
getCurrentTask()
Gets the current task, which is the selected one. |
java.lang.String |
getErrorMessageWhenClassNotExist()
Returns a String of the error message when the class doesn't exist. |
int |
getHSpace()
Returns the horizontal space between tasks. |
int |
getMaxNumberOfTasks()
Returns the maximum number of tasks. |
DSETaskButton |
getNewTaskButton()
Returns a new instance of DSETaskButton. |
int |
getNumberOfButtonTasks()
Returns the number of button tasks. |
java.lang.String |
getSubstituteHotKey()
Returns the substitute hot key of the hot key. |
int |
getTaskHeight()
Returns the height of the Task. |
java.util.Vector |
getTasks()
Returns the task attribute of the TaskArea. |
int |
getTaskWidth()
Returns the width of the Task. |
int |
getVSpace()
Returns the Vertical Space of the task. |
java.lang.String |
getWarningMessageWhenMaxNumberOfTasksReached()
Gets the warning message that is shown to the user when the maximum number of tasks is reached. |
protected void |
initializeTaskView(DSETaskButton newTask)
Initializes the view of the Task component. |
void |
interruptThreads()
Interrupts the threads that have been launched. |
boolean |
isThereRoomForAnotherTask()
Indicates whether the maximum number of tasks that are allowed has been reached. |
void |
key(java.awt.event.KeyEvent event)
Rewrites the key method of the embedded panel. |
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 MouseMotionListener 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. |
void |
openTask(java.lang.String op,
java.lang.String sp,
java.lang.Boolean execOp,
java.lang.String type,
java.lang.String shortDescription,
java.lang.String longDescription,
java.lang.String taskName)
Opens a new task. |
void |
openTask(java.lang.String op,
java.lang.String sp,
java.lang.Boolean execOp,
java.lang.String type,
java.lang.String shortDescription,
java.lang.String longDescription,
java.lang.String taskName,
java.lang.String parameters,
java.lang.String error,
int width,
int height,
int x,
int y)
Opens a new task. |
void |
relocateTasks()
Relocates the list of the opened task buttons. |
void |
removeTask(TaskButton t)
Removes the task. |
void |
reshapeTasks()
Reshapes the location and size of all the tasks. |
void |
setBaseHotKey(java.lang.Object o)
Sets the base hotkey (keyboard shortcut) of the TaskArea. |
void |
setComponentOrientation(java.awt.ComponentOrientation o)
Changes the orientation of the components inside the TaskArea. |
protected void |
setCurrentTask(TaskButton aTask)
Sets the currentTask of the TaskArea with aTask. |
void |
setErrorMessageWhenClassNotExist(java.lang.Object o)
Returns the value of the errorMessageWhenClassNotExist property. |
void |
setHeight(java.lang.Object o)
Sets the height of the TaskArea. |
void |
setHSpace(java.lang.Object o)
Sets the horizontal space between the opened Tasks for the TaskArea. |
void |
setId(java.lang.Object o)
Sets the ID (name) for this TaskArea. |
void |
setMaxNumberOfTasks(java.lang.Object o)
Sets the maximum number of tasks of the TaskArea. |
void |
setName(java.lang.Object o)
Sets the name of the TaskArea. |
void |
setNumberOfButtonTasks(int i)
Sets the number of Button Tasks. |
void |
setSubstituteHotKey(java.lang.Object o)
Sets the base hotkey (keyboard shortcut) of the TaskArea. |
void |
setTaskHeight(java.lang.Object o)
Sets the height of the opened task buttons in the TaskArea. |
void |
setTaskWidth(java.lang.Object o)
Sets the width of the opened task buttons in the TaskArea. |
void |
setVSpace(java.lang.Object o)
Sets the vertical space between the Task buttons and the TaskArea's border. |
void |
setWarningMessageWhenMaxNumberOfTasksReached(java.lang.Object o)
Sets the warning message that is shown to the user when the maximum number of tasks is reached. |
void |
setWidth(java.lang.Object o)
Sets the width of the TaskArea. |
protected void |
showMenu(javax.swing.JPopupMenu popup,
int x,
int y)
Shows the MenuButton's pop-up menu in a visible area. |
Methods inherited from class com.ibm.dse.gui.EmbeddedPanel |
---|
getEmbeddedPanel, getEmbeddedPanelParent, getNesting, getNesting, register, registerOutsider, setNesting |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
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, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, 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, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
addContainerListener, addImpl, 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, 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, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.util.Vector DSEtasks
protected java.util.Vector threads
protected TaskButton activeTask
protected int numberOfButtonTasks
static int widthScreen
static int heightScreen
static boolean screenSizeComputed
Constructor Detail |
public TaskArea()
public TaskArea(java.awt.LayoutManager layout)
layout
- java.awt.LayoutManagerpublic TaskArea(java.awt.LayoutManager layout, boolean isDoubleBuffered)
layout
- java.awt.LayoutManagerisDoubleBuffered
- booleanpublic TaskArea(boolean isDoubleBuffered)
isDoubleBuffered
- booleanMethod Detail |
public void activate(DSETaskButton t)
t
- com.ibm.dse.desktop.Taskpublic void activate(ExternalTaskButton t)
t
- com.ibm.dse.desktop.Taskpublic void activate(TaskButton t)
public void activateCurrentTask()
public void activateNextTask(TaskButton t)
public void closeAll()
public java.lang.String getBaseHotKey()
public TaskButton getCurrentTask()
public java.lang.String getErrorMessageWhenClassNotExist()
public int getHSpace()
public int getMaxNumberOfTasks()
public DSETaskButton getNewTaskButton()
public int getNumberOfButtonTasks()
public java.lang.String getSubstituteHotKey()
public int getTaskHeight()
public java.util.Vector getTasks()
public int getTaskWidth()
public int getVSpace()
public java.lang.String getWarningMessageWhenMaxNumberOfTasksReached()
protected void initializeTaskView(DSETaskButton newTask)
newTask
- DSETaskButtonpublic void interruptThreads()
public boolean isThereRoomForAnotherTask()
public void key(java.awt.event.KeyEvent event)
key
in class SpPanel
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.MouseEventpublic void openTask(java.lang.String op, java.lang.String sp, java.lang.Boolean execOp, java.lang.String type, java.lang.String shortDescription, java.lang.String longDescription, java.lang.String taskName)
op
- java.lang.Stringsp
- java.lang.StringexecOp
- booleanshortDescription
- java.lang.StringlongDescription
- java.lang.StringtaskName
- java.lang.Stringpublic void openTask(java.lang.String op, java.lang.String sp, java.lang.Boolean execOp, java.lang.String type, java.lang.String shortDescription, java.lang.String longDescription, java.lang.String taskName, java.lang.String parameters, java.lang.String error, int width, int height, int x, int y)
op
- java.lang.Stringsp
- java.lang.StringexecOp
- booleanshortDescription
- java.lang.StringlongDescription
- java.lang.StringtaskName
- java.lang.Stringpublic void relocateTasks()
public void removeTask(TaskButton t)
t
- Taskpublic void reshapeTasks()
public void setBaseHotKey(java.lang.Object o)
o
- java.lang.Objectpublic void setComponentOrientation(java.awt.ComponentOrientation o)
o
- ComponentOrientationprotected void setCurrentTask(TaskButton aTask)
aTask
- com.ibm.dse.desktop.Taskpublic void setErrorMessageWhenClassNotExist(java.lang.Object o)
public void setHeight(java.lang.Object o)
o
- java.lang.Objectpublic void setHSpace(java.lang.Object o)
o
- java.lang.Objectpublic void setId(java.lang.Object o)
o
- java.lang.Objectpublic void setMaxNumberOfTasks(java.lang.Object o)
o
- java.lang.Objectpublic void setName(java.lang.Object o)
o
- java.lang.Objectpublic void setNumberOfButtonTasks(int i)
public void setSubstituteHotKey(java.lang.Object o)
o
- java.lang.Objectpublic void setTaskHeight(java.lang.Object o)
o
- java.lang.Objectpublic void setTaskWidth(java.lang.Object o)
o
- java.lang.Objectpublic void setVSpace(java.lang.Object o)
o
- java.lang.Objectpublic void setWarningMessageWhenMaxNumberOfTasksReached(java.lang.Object o)
o
- java.lang.Objectpublic void setWidth(java.lang.Object o)
o
- java.lang.Objectprotected void showMenu(javax.swing.JPopupMenu popup, int x, int y)
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |