|
Enterprise Information Portal APIs |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--com.ibm.mm.beans.gui.CMBItemAttributesEditor
The ItemAttributesEditor bean displays a panel for viewing and modifying the index class and indexing attributes of a folder or document.
Selecting Index classes
If a new index class is selected, any attributes whose names are the same as the previously selected index class will have their values propagated to the like-names attributes in the new index class. Buttons
The ItemAttributesEditor has four buttons: Help, OK, Cancel, and Reset, which may be shown or hidden based on the xxxButtonVisible property, where "xxx" is either "help", "ok", "cancel", or "reset". If the xxxButtonVisible property is set to true, then the correspnding button will be shown.
Update Events
Events are triggered before and after the attributes are updated. The event before the update, CMBEditRequestedEvent, can be used by an application programmer to validate fields or fill in missing fields before the update is performed. This event allows for a "veto" of the update to be specified, in which case the bean will not perform an update. The CMBEditCompletedEvent is fired when the update is complete.
Inner classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
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 |
Fields inherited from interface com.ibm.mm.beans.gui.CMBEditItemAttributesListener |
copyright |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
CMBItemAttributesEditor()
|
Method Summary | |
void |
addEditCancelledListener(CMBEditCancelledListener listener)
Add the specified listener, which will receive CMBEditCancelledEvents from the CMBItemAttributesEditor |
void |
addEditCompletedListener(CMBEditCompletedListener listener)
Add the specified listener, which will receive CMBEditCompletedEvents from the CMBItemAttributesEditor |
void |
addEditRequestedListener(CMBEditRequestedListener listener)
Add the specified listener, which will receive CMBEditRequestedEvents from the CMBItemAttributesEditor |
void |
addHelpListener(CMBHelpListener listener)
Add the specified listener, which will receive CMBHelpEvents from the CMBItemAttributesEditor |
void |
addNotify()
Override addNotify |
boolean |
getCancelButtonVisible()
Determine if the cancel button should be shown |
CMBConnection |
getConnection()
Get the connection object for the CMBItemAttributesEditor |
boolean |
getHelpButtonVisible()
Determine if the help button should be shown |
CMBItem |
getItem()
Get the item currently being edited by the CMBItemAttributesEditor |
boolean |
getOKButtonVisible()
Determine if the ok button should be shown |
boolean |
getResetButtonVisible()
Determine if the reset button should be shown |
void |
onEditItemAttributes(CMBEditItemAttributesEvent event)
Implementation of the CMBEditItemAttributesListener, for easy wiring to CMBSearchResultsViewer and CMBFolderViewer beans. |
void |
refresh()
Retrieve current values for an item from the server and redisplay |
void |
removeEditCancelledListener(CMBEditCancelledListener listener)
Remove the specified listener so it will no longer receive CMBEditCancelledEvents from the CMBItemAttributesEditor |
void |
removeEditCompletedListener(CMBEditCompletedListener listener)
Remove the specified listener so it will no longer receive CMBEditCompletedEvents from the CMBItemAttributesEditor |
void |
removeEditRequestedListener(CMBEditRequestedListener listener)
Remove the specified listener so it will no longer receive CMBEditRequestedEvents from the CMBItemAttributesEditor |
void |
removeHelpListener(CMBHelpListener listener)
Remove the specified listener so it will no longer receive CMBHelpEvents from the CMBItemAttributesEditor |
void |
setBackground(java.awt.Color newColor)
Overrides the setBackground function |
void |
setCancelButtonVisible(boolean newCancelButtonVisible)
Set whether the cancel button should be shown |
void |
setConnection(CMBConnection newConn)
Set the connection object for the CMBItemAttributesEditor |
void |
setCursor(java.awt.Cursor newCursor)
Overridden to set cursor of contained controls |
void |
setEnabled(boolean newEnable)
Overridden to enable/disable contained controls |
void |
setFont(java.awt.Font newFont)
Overrides the setFont function |
void |
setForeground(java.awt.Color newColor)
Overrides the setForeground function |
void |
setHelpButtonVisible(boolean newHelpButtonVisible)
Set whether the help button should be shown |
void |
setItem(CMBItem newItem)
Set the item currently being edited by the CMBItemAttributesEditor |
void |
setLayout(java.awt.LayoutManager mgr)
Overridden to disable changing of the layout manager. |
void |
setLocale(java.util.Locale newLocale)
Overrides the setLocale function |
void |
setOKButtonVisible(boolean newOKButtonVisible)
Set whether the ok button should be shown |
void |
setOpaque(boolean newOpaque)
Overridden to set opaque on contained controls |
void |
setResetButtonVisible(boolean newResetButtonVisible)
Set whether the reset button should be shown |
void |
setToolTipText(java.lang.String newTooltip)
Overridden to set tooltip text on contained controls |
void |
update()
update the index class and attributes for the item |
void |
updateUI()
Override update UI to ensure proper update of components |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUIClassID, paramString |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setPreferredSize, setRequestFocusEnabled, setUI, setVerifyInputWhenFocusTarget, 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, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, 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, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setDropTarget, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CMBItemAttributesEditor()
Method Detail |
public void addNotify()
addNotify
in class javax.swing.JComponent
public void setLayout(java.awt.LayoutManager mgr)
setLayout
in class java.awt.Container
public CMBConnection getConnection()
public void setConnection(CMBConnection newConn)
public CMBItem getItem()
public void setItem(CMBItem newItem)
public boolean getHelpButtonVisible()
public void setHelpButtonVisible(boolean newHelpButtonVisible)
public boolean getOKButtonVisible()
public void setOKButtonVisible(boolean newOKButtonVisible)
public boolean getCancelButtonVisible()
public void setCancelButtonVisible(boolean newCancelButtonVisible)
public boolean getResetButtonVisible()
public void setResetButtonVisible(boolean newResetButtonVisible)
public void refresh()
public void update()
public void updateUI()
updateUI
in class javax.swing.JPanel
public void onEditItemAttributes(CMBEditItemAttributesEvent event)
onEditItemAttributes
in interface CMBEditItemAttributesListener
public void setBackground(java.awt.Color newColor)
setBackground
in class javax.swing.JComponent
public void setForeground(java.awt.Color newColor)
setForeground
in class javax.swing.JComponent
public void setFont(java.awt.Font newFont)
setFont
in class javax.swing.JComponent
public void setCursor(java.awt.Cursor newCursor)
setCursor
in class java.awt.Component
public void setOpaque(boolean newOpaque)
setOpaque
in class javax.swing.JComponent
public void setToolTipText(java.lang.String newTooltip)
setToolTipText
in class javax.swing.JComponent
public void setEnabled(boolean newEnable)
setEnabled
in class javax.swing.JComponent
public void setLocale(java.util.Locale newLocale)
setLocale
in class java.awt.Component
public void addEditRequestedListener(CMBEditRequestedListener listener)
public void removeEditRequestedListener(CMBEditRequestedListener listener)
public void addEditCompletedListener(CMBEditCompletedListener listener)
public void removeEditCompletedListener(CMBEditCompletedListener listener)
public void addEditCancelledListener(CMBEditCancelledListener listener)
public void removeEditCancelledListener(CMBEditCancelledListener listener)
public void addHelpListener(CMBHelpListener listener)
public void removeHelpListener(CMBHelpListener listener)
|
EIP JavaBeans | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |