com.ibm.dse.desktop
Class Bookmark

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.AbstractButton
                          |
                          +--javax.swing.JButton
                                |
                                +--com.ibm.dse.desktop.Bookmark

public class Bookmark
extends javax.swing.JButton
implements TaskLauncher, java.awt.event.ActionListener, java.awt.event.MouseListener, java.awt.event.FocusListener

This class provides a button that launches an specific task that is related to an operation and its corresponding operation panel.

The Bookmarks are the elements of the list that forms the bookmarkArea.

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JButton
javax.swing.JButton.AccessibleJButton
 
Inner classes inherited from class javax.swing.AbstractButton
javax.swing.AbstractButton.AccessibleAbstractButton, javax.swing.AbstractButton.ButtonChangeListener
 
Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Fields inherited from class javax.swing.AbstractButton
actionListener, BORDER_PAINTED_CHANGED_PROPERTY, changeEvent, changeListener, CONTENT_AREA_FILLED_CHANGED_PROPERTY, DISABLED_ICON_CHANGED_PROPERTY, DISABLED_SELECTED_ICON_CHANGED_PROPERTY, FOCUS_PAINTED_CHANGED_PROPERTY, HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, HORIZONTAL_TEXT_POSITION_CHANGED_PROPERTY, ICON_CHANGED_PROPERTY, itemListener, MARGIN_CHANGED_PROPERTY, MNEMONIC_CHANGED_PROPERTY, model, MODEL_CHANGED_PROPERTY, PRESSED_ICON_CHANGED_PROPERTY, ROLLOVER_ENABLED_CHANGED_PROPERTY, ROLLOVER_ICON_CHANGED_PROPERTY, ROLLOVER_SELECTED_ICON_CHANGED_PROPERTY, SELECTED_ICON_CHANGED_PROPERTY, TEXT_CHANGED_PROPERTY, VERTICAL_ALIGNMENT_CHANGED_PROPERTY, VERTICAL_TEXT_POSITION_CHANGED_PROPERTY
 
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.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
Bookmark()
          This constructor creates a Bookmark object.
Bookmark(java.lang.String text)
          This constructor creates a Boomark object.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Handles events for the ActionListener interface.
 void delete(java.awt.event.MouseEvent e)
          Shows the PopUpMenu to delete an element from the BookmarkArea
 void focusGained(java.awt.event.FocusEvent e)
          This method is called when the component gains the Focus
 void focusLost(java.awt.event.FocusEvent e)
          This method is called when the component losts the Focus
 java.lang.String getApplication()
          Returns the value of the ID property.
 java.lang.String getCode()
          Returns the value of the code property.
 java.lang.String getErrorMessageOnInstantiateOperation()
          Returns the value of the errorMessageOnInstantiateOperation property.
 java.lang.Boolean getExecuteOperation()
          Returns the value of the executeOperation property.
 int getHeight()
          Returns the value of the height property.
 int getHeightNavigationArea()
          Returns the value of the height property.
 javax.swing.JMenuItem getJMenuItem()
          Returns and creates the Delete menuItem for each element of the list.
 javax.swing.JPopupMenu getJPopupMenu()
          Returns and creates the popupMenu for each element of the list.
 java.lang.String getLabel()
          Returns the value of the label property.
 java.lang.String getLaunchable()
          Returns the value of the launchable property.
 java.lang.String getLongDescription()
          Returns the value of the longDescription property.
 java.lang.String getOperation()
          Returns the value of the operation property.
 java.lang.String getOperationPanel()
          Returns the value of the operationPanel property.
 java.lang.String getParameters()
          Returns the value of the parameters property.
 int getPositionX()
          Returns the value of the positionX property.
 java.lang.String getProcess()
          Returns the value of the process property.
 java.lang.String getShortDescription()
          Returns the value of the shortDescription property.
 java.lang.String getTaskName()
          Returns the value of the taskName property.
 java.lang.String getTypeLaunchable()
          Returns the value of the type property.
 int getWidth()
          Returns the value of the width property.
 int getWidthNavigationArea()
          Returns the value of the width property.
 int getXNavigationArea()
          Returns the value of the xNavigationArea property.
 int getYNavigationArea()
          Returns the value of the yNavigationArea property.
 void initAttributes(java.lang.String text)
          Initializes a Bookmark object with the text attributes.
 void mouseClicked(java.awt.event.MouseEvent e)
          Method to handle events for the MouseListener interface.
 void mouseEntered(java.awt.event.MouseEvent e)
          Method to handle events for the MouseListener interface.
 void mouseExited(java.awt.event.MouseEvent e)
          Method to handle events for the MouseListener interface.
 void mousePressed(java.awt.event.MouseEvent e)
          Method to handle events for the MouseListener interface.
 void mouseReleased(java.awt.event.MouseEvent e)
          Method to handle events for the MouseListener interface.
 void openTask()
          Asks the Desktop to launch the task described by the TaskLauncherButton.
 void setApplication(java.lang.Object o)
          Sets the value of the application property.
 void setCode(java.lang.Object o)
          Sets the value of the code property.
 void setErrorMessageOnInstantiateOperation(java.lang.Object o)
          Sets the value of the errorMessageOnInstantiateOperation property.
 void setExecuteOperation(java.lang.Object o)
          Sets the value of the executeOperation property of the TaskLauncherButton.
 void setHeight(int o)
          Sets the value of the height property.
 void setHeightNavigationArea(java.lang.Object o)
          Sets the value of the height property.
 void setIconName(java.lang.Object o)
          Sets the icon of the Boomark.
 void setLabel(java.lang.Object o)
          Sets the value of the label property.
 void setLaunchable(java.lang.Object o)
          Sets the value of the launchable property.
 void setLongDescription(java.lang.Object o)
          Sets the value of the longDescription property of the task described by the TaskLauncherButton.
 void setOperation(java.lang.Object o)
          Sets the value of the operation property.
 void setOperationPanel(java.lang.Object o)
          Sets the the value of the operationPanel property.
 void setParameters(java.lang.Object o)
          Sets the value of the parameters property.
 void setProcess(java.lang.Object o)
          Sets the value of the process property.
 void setShortDescription(java.lang.Object o)
          Sets the value of the shortDescription property.
 void setTaskName(java.lang.Object o)
          Sets the value of the taskName property.
 void setTypeLaunchable(java.lang.String s)
          Sets the value of the type property.
 void setWidth(int o)
          Sets the value of the width property.
 void setWidthNavigationArea(java.lang.Object o)
          Sets the value of the width property.
 void setXNavigationArea(java.lang.Object o)
          Sets the value of the xNavigationArea property.
 void setYNavigationArea(java.lang.Object o)
          Sets the value of the yNavigationArea property.
 java.lang.String toString()
          This method returns a string representation of the Bookmark object.
 
Methods inherited from class javax.swing.JButton
getAccessibleContext, getUIClassID, isDefaultButton, isDefaultCapable, paramString, setDefaultCapable, updateUI
 
Methods inherited from class javax.swing.AbstractButton
addActionListener, addChangeListener, addItemListener, checkHorizontalKey, checkVerticalKey, createActionListener, createChangeListener, createItemListener, doClick, doClick, fireActionPerformed, fireItemStateChanged, fireStateChanged, getActionCommand, getDisabledIcon, getDisabledSelectedIcon, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getMargin, getMnemonic, getModel, getPressedIcon, getRolloverIcon, getRolloverSelectedIcon, getSelectedIcon, getSelectedObjects, getText, getUI, getVerticalAlignment, getVerticalTextPosition, init, isBorderPainted, isContentAreaFilled, isFocusPainted, isRolloverEnabled, isSelected, paintBorder, removeActionListener, removeChangeListener, removeItemListener, setActionCommand, setBorderPainted, setContentAreaFilled, setDisabledIcon, setDisabledSelectedIcon, setEnabled, setFocusPainted, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setLabel, setMargin, setMnemonic, setMnemonic, setModel, setPressedIcon, setRolloverEnabled, setRolloverIcon, setRolloverSelectedIcon, setSelected, setSelectedIcon, setText, setUI, setVerticalAlignment, setVerticalTextPosition
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getInsets, getInsets, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVisibleRect, getX, getY, grabFocus, hasFocus, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, paintComponent, paintImmediately, paintImmediately, processComponentKeyEvent, processFocusEvent, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setFont, setForeground, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setCursor, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hide, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Bookmark

public Bookmark()
This constructor creates a Bookmark object.

Bookmark

public Bookmark(java.lang.String text)
This constructor creates a Boomark object.
Parameters:
text - java.lang.String. This text contains the information to create the Bokkmark.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Handles events for the ActionListener interface.

Deletes the selected element from the BookmarkArea list

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - java.awt.event.ActionEvent

delete

public void delete(java.awt.event.MouseEvent e)
Shows the PopUpMenu to delete an element from the BookmarkArea
Parameters:
e - java.awt.event.ActionEvent

focusGained

public void focusGained(java.awt.event.FocusEvent e)
This method is called when the component gains the Focus
Specified by:
focusGained in interface java.awt.event.FocusListener

focusLost

public void focusLost(java.awt.event.FocusEvent e)
This method is called when the component losts the Focus
Specified by:
focusLost in interface java.awt.event.FocusListener

getApplication

public java.lang.String getApplication()
Returns the value of the ID property.
Specified by:
getApplication in interface TaskLauncher
Returns:
java.lang.String - The current value of the ID of the application related to the task described by the TaskLauncher..

getCode

public java.lang.String getCode()
Returns the value of the code property.
Specified by:
getCode in interface TaskLauncher
Returns:
java.lang.String - The current value of the code of the task described by the TaskLauncherButton.

getErrorMessageOnInstantiateOperation

public java.lang.String getErrorMessageOnInstantiateOperation()
Returns the value of the errorMessageOnInstantiateOperation property.
Specified by:
getErrorMessageOnInstantiateOperation in interface TaskLauncher
Returns:
java.lang.String - The errorMessageOnInstantiateOperation of the task described by the TaskLauncherButton..

getExecuteOperation

public java.lang.Boolean getExecuteOperation()
Returns the value of the executeOperation property.
Specified by:
getExecuteOperation in interface TaskLauncher
Returns:
boolean - The current value of the executeOperation of the TaskLauncherButton.

getHeight

public int getHeight()
Returns the value of the height property.
Overrides:
getHeight in class javax.swing.JComponent
Returns:
int - The current value of height.

getHeightNavigationArea

public int getHeightNavigationArea()
Returns the value of the height property.
Specified by:
getHeightNavigationArea in interface TaskLauncher
Returns:
int - The current value of height.

getJMenuItem

public javax.swing.JMenuItem getJMenuItem()
Returns and creates the Delete menuItem for each element of the list.
Returns:
javax.swing.JMenuItem

getJPopupMenu

public javax.swing.JPopupMenu getJPopupMenu()
Returns and creates the popupMenu for each element of the list.
Returns:
javax.swing.JPopupMenu

getLabel

public java.lang.String getLabel()
Returns the value of the label property.
Overrides:
getLabel in class javax.swing.AbstractButton
Returns:
java.lang.String - The current value of label.

getLaunchable

public java.lang.String getLaunchable()
Returns the value of the launchable property.

This method returns the name of the process/operation/application launched from the TaskLauncher.

Specified by:
getLaunchable in interface TaskLauncher
Returns:
java.lang.String - The current value of launchable.

getLongDescription

public java.lang.String getLongDescription()
Returns the value of the longDescription property.

This method gets the long description of the task described by the TaskLauncherButton.

Specified by:
getLongDescription in interface TaskLauncher
Returns:
java.lang.String - The current value of longDescription.

getOperation

public java.lang.String getOperation()
Returns the value of the operation property.

This method gets the ID of the operation related to the task described by the MenuItem

Specified by:
getOperation in interface TaskLauncher
Returns:
java.lang.String - The current value of operation.

getOperationPanel

public java.lang.String getOperationPanel()
Returns the value of the operationPanel property.

This method gets the name of the operation panel related to the task described by the TaskLauncherButton.

Specified by:
getOperationPanel in interface TaskLauncher
Returns:
java.lang.String - The current value of operationPanel.

getParameters

public java.lang.String getParameters()
Returns the value of the parameters property.

This method gets the parameters of the task described by the TaskLauncherButton.

Specified by:
getParameters in interface TaskLauncher
Returns:
java.lang.String - The current value of parameters.

getPositionX

public int getPositionX()
Returns the value of the positionX property.
Returns:
int - The current value of positionX.

getProcess

public java.lang.String getProcess()
Returns the value of the process property.

This method gets the ID of the process related to the task described by the TaskLauncher.

Specified by:
getProcess in interface TaskLauncher
Returns:
java.lang.String - The current value of process.

getShortDescription

public java.lang.String getShortDescription()
Returns the value of the shortDescription property.

This method gets the short description of the task described by the TaskLauncherButton.

Specified by:
getShortDescription in interface TaskLauncher
Returns:
java.lang.String - The current value of shortDescription.

getTaskName

public java.lang.String getTaskName()
Returns the value of the taskName property.

This method gets the name of the task described by the TaskLauncherButton.

Specified by:
getTaskName in interface TaskLauncher
Returns:
java.lang.String - The current value of taskName.

getTypeLaunchable

public java.lang.String getTypeLaunchable()
Returns the value of the type property.

This method gets the type of the task described by the TaskLauncherButton.

Specified by:
getTypeLaunchable in interface TaskLauncher
Returns:
java.lang.String - The current value of type.

getWidth

public int getWidth()
Returns the value of the width property.
Overrides:
getWidth in class javax.swing.JComponent
Returns:
int - The current value of width.

getWidthNavigationArea

public int getWidthNavigationArea()
Returns the value of the width property.
Specified by:
getWidthNavigationArea in interface TaskLauncher
Returns:
int - The current value of width.

getXNavigationArea

public int getXNavigationArea()
Returns the value of the xNavigationArea property.
Specified by:
getXNavigationArea in interface TaskLauncher
Returns:
int - The current value of xNavigationArea.

getYNavigationArea

public int getYNavigationArea()
Returns the value of the yNavigationArea property.
Specified by:
getYNavigationArea in interface TaskLauncher
Returns:
int - The current value of yNavigationArea.

initAttributes

public void initAttributes(java.lang.String text)
Initializes a Bookmark object with the text attributes.
Parameters:
text - java.lang.String Contains the attributes of the object to be created.

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Method to handle events for the MouseListener interface.
Specified by:
mouseClicked in interface java.awt.event.MouseListener
Parameters:
e - java.awt.event.MouseEvent

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Method to handle 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)
Method to handle events for the MouseListener interface.
Specified by:
mouseExited in interface java.awt.event.MouseListener
Parameters:
e - java.awt.event.MouseEvent

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Method to handle 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)
Method to handle events for the MouseListener interface.
Specified by:
mouseReleased in interface java.awt.event.MouseListener
Parameters:
e - java.awt.event.MouseEvent

openTask

public void openTask()
Asks the Desktop to launch the task described by the TaskLauncherButton.

setApplication

public void setApplication(java.lang.Object o)
Sets the value of the application property.

This method sets the ID of the operation related to the task described by the TaskLauncherButton and also sets the Type of the task described by the TaskLauncherButton to Application.

Parameters:
o - java.lang.Object - The new value of the property.

setCode

public void setCode(java.lang.Object o)
Sets the value of the code property.
Parameters:
o - java.lang.Object - The new value of the code of the task described by the TaskLauncherButton.

setErrorMessageOnInstantiateOperation

public void setErrorMessageOnInstantiateOperation(java.lang.Object o)
Sets the value of the errorMessageOnInstantiateOperation property.

This method sets the error message of the task described by the TaskLauncherButton.

Parameters:
o - java.lang.Object - The new value of the property.

setExecuteOperation

public void setExecuteOperation(java.lang.Object o)
Sets the value of the executeOperation property of the TaskLauncherButton.
Parameters:
o - java.lang.Object - The new value of the property.

setHeight

public void setHeight(int o)
Sets the value of the height property.
Parameters:
o - int - The new value of the property.

setHeightNavigationArea

public void setHeightNavigationArea(java.lang.Object o)
Sets the value of the height property.
Parameters:
o - java.lang.Object - The new value of the property.

setIconName

public void setIconName(java.lang.Object o)
Sets the icon of the Boomark.
Parameters:
newValue - java.lang.String

setLabel

public void setLabel(java.lang.Object o)
Sets the value of the label property.
Parameters:
o - java.lang.Object - The new value of the property.

setLaunchable

public void setLaunchable(java.lang.Object o)
Sets the value of the launchable property.
Parameters:
o - java.lang.Object - The new value of the property.

setLongDescription

public void setLongDescription(java.lang.Object o)
Sets the value of the longDescription property of the task described by the TaskLauncherButton.
Parameters:
o - java.lang.Object - The new value of the property.

setOperation

public void setOperation(java.lang.Object o)
Sets the value of the operation property.

This method sets the ID of the operation related to the task described by the TaskLauncherButton and also sets the Type of the task described by the TaskLauncherButton to Operation.

Parameters:
o - java.lang.Object - The new value of the property.

setOperationPanel

public void setOperationPanel(java.lang.Object o)
Sets the the value of the operationPanel property.

This method sets the name of the operation panel related to the task described by the TaskLauncherButton.

Parameters:
o - java.lang.Object - The new value of the property.

setParameters

public void setParameters(java.lang.Object o)
Sets the value of the parameters property.

This method sets the paramters of the task described by the TaskLauncherButton.

Parameters:
o - java.lang.Object - The new value of the property.

setProcess

public void setProcess(java.lang.Object o)
Sets the value of the process property.

This method sets the ID of the operation related to the task described by the TaskLauncherButton and also sets the Type of the task described by the TaskLauncherButton to Process.

Parameters:
o - java.lang.Object - The new value of the property.

setShortDescription

public void setShortDescription(java.lang.Object o)
Sets the value of the shortDescription property. This method sets the short description of the task described by the TaskLauncherButton.
Parameters:
o - java.lang.Object - The new value of the property.

setTaskName

public void setTaskName(java.lang.Object o)
Sets the value of the taskName property. This method sets the name of the task described by the TaskLauncherButton.
Parameters:
o - java.lang.Object - The new value of the property.

setTypeLaunchable

public void setTypeLaunchable(java.lang.String s)
Sets the value of the type property.
Parameters:
s - java.lang.String - The new value of the property.

setWidth

public void setWidth(int o)
Sets the value of the width property.
Parameters:
o - int - The new value of the property.

setWidthNavigationArea

public void setWidthNavigationArea(java.lang.Object o)
Sets the value of the width property.
Parameters:
o - java.lang.Object - The new value of the property.

setXNavigationArea

public void setXNavigationArea(java.lang.Object o)
Sets the value of the xNavigationArea property.
Parameters:
o - java.lang.Object - The new value of the property.

setYNavigationArea

public void setYNavigationArea(java.lang.Object o)
Sets the value of the yNavigationArea property.
Parameters:
o - java.lang.Object - The new value of the property.

toString

public java.lang.String toString()
This method returns a string representation of the Bookmark object.
Overrides:
toString in class java.awt.Component
Returns:
java.lang.String.