All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.beans.tools.dataFormatWizard.ItemAttributesView

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----com.ibm.beans.tools.dataFormatWizard.ItemAttributesView

public class ItemAttributesView
extends Canvas
implements ViewForItem, Highlightable, PropertyChangeListener
The ItemAttributesView class is a view component for the attributes of a schema item. It extends the Canvas class, listens for property changes on the schema item that owns it, and displays a text string based on the attributes of the owner item.

See Also:
SchemaItem, ViewForItem

Constructor Index

 o ItemAttributesView()
Creates an ItemAttributesView instance.

Method Index

 o getOwner()
Gets the schema item that this component displays.
 o getPreferredSize()
Returns the preferred size for this label.
 o getViewComponent()
Gets a component reference for this view.
 o isHighlighted()
Gets the highlight state of this component.
 o paint(Graphics)
Paints this view.
 o propertyChange(PropertyChangeEvent)
Handles the event generated when a bound property is changed.
 o setHighlight(boolean)
Sets the new highlight state of this component.
 o setOwner(SchemaItem)
Sets the new schema item that this component displays.
 o validate()
Validates this component.

Constructors

 o ItemAttributesView
 public ItemAttributesView()
Creates an ItemAttributesView instance.

Methods

 o getPreferredSize
 public Dimension getPreferredSize()
Returns the preferred size for this label.

Returns:
The preferred size for this label.
Overrides:
getPreferredSize in class Component
 o paint
 public void paint(Graphics g)
Paints this view.

Parameters:
g - The graphics context for this view.
Overrides:
paint in class Canvas
 o getOwner
 public SchemaItem getOwner()
Gets the schema item that this component displays.

Returns:
The schema item displayed by this component.
 o setOwner
 public void setOwner(SchemaItem newOwner)
Sets the new schema item that this component displays.

Parameters:
newOwner - The new schema item to be displayed by this component.
 o getViewComponent
 public Component getViewComponent()
Gets a component reference for this view.

Returns:
A component reference for this view.
 o isHighlighted
 public boolean isHighlighted()
Gets the highlight state of this component.

Returns:
true if this component is highlighted; false otherwise.
 o setHighlight
 public void setHighlight(boolean newState)
Sets the new highlight state of this component.

Parameters:
newState - true to make this component become highlighted; false otherwise.
 o propertyChange
 public void propertyChange(PropertyChangeEvent evt)
Handles the event generated when a bound property is changed.

Parameters:
evt - The property change event.
 o validate
 public void validate()
Validates this component.

Overrides:
validate in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index