borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.view 

HeaderView component

java.lang.Object
   +----java.awt.Component
           +----java.awt.Container
                   +----java.awt.Panel
                           +----borland.jbcl.view.BeanPanel
                                   +----borland.jbcl.view.HeaderView

About the HeaderView component

Variables  Constructors  Properties  Methods  Event Listeners

Implements VectorModelListener, MenuContainer, AdjustmentListener, ImageObserver, Serializable, EventListener

The HeaderView component is the horizontal or vertical header for a grid. Property names are in terms of a horizontal, top header.


HeaderView variables

Variables implemented in this class

Variables implemented in borland.jbcl.view.BeanPanel

Variables implemented in java.awt.Component

HeaderView constructors

HeaderView properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in borland.jbcl.view.BeanPanel

Properties implemented in java.awt.Component

Properties implemented in java.awt.Container

Properties implemented in java.lang.Object

HeaderView methods

Methods implemented in this class

Methods implemented in borland.jbcl.view.BeanPanel

Methods implemented in java.awt.Component

Methods implemented in java.awt.Container

Methods implemented in java.awt.Panel

Methods implemented in java.lang.Object

HeaderView event listeners


HeaderView variables

border

  protected ButtonItemPainter border

HeaderView constructors

HeaderView()

  public HeaderView()
Constructs a header view manager.

HeaderView(int)

  public HeaderView(int defaultOrientation)
Constructs a header view manager.


HeaderView properties

batchMode

 public boolean isBatchMode()
 public void setBatchMode(boolean batchMode)

itemSizes

 public SizeVector getItemSizes()
 public void setItemSizes(borland.jbcl.view.SizeVector newSizes)
An array of widths of the header cells, for a horizontal header.

liveResize

 public boolean isLiveResize()
 public void setLiveResize(boolean liveResize)

model

 public VectorModel getModel()
 public void setModel(borland.jbcl.model.VectorModel vm)

moveable

 public boolean isMoveable()
 public void setMoveable(boolean moveable)

offset

 public int getOffset()
 public void setOffset(int offset)

orientation

 public int getOrientation()
 public void setOrientation(int orientation)
Specifies the orientation of the header. Can be borland.jbcl.util.Orientation.HORIZONTAL or borland.jbcl.util.Orientation.VERTICAL.

preferredSize

 public Dimension getPreferredSize()
The preferred size of the header in a layout.

resizable

 public boolean isResizable()
 public void setResizable(boolean resizable)

thickness

 public int getThickness()
 public void setThickness(int thickness)
Thickness of this header; height when horizontal, width when vertical. Set this property to 0 to automatically calculate this property's value.

viewManager

 public VectorViewManager getViewManager()
 public void setViewManager(borland.jbcl.model.VectorViewManager newViewManager)
Specifies the view manager for the header items.


HeaderView methods

getItemBounds(int)

  public Rectangle getItemBounds(int item)
Returns the bounding rectangle for a given header item, in pixels.

paint(java.awt.Graphics)

  public void paint(java.awt.Graphics pg)
Paints or repaints the header.

Overrides: java.awt.Container.paint(Graphics)

processHeaderEvent(borland.jbcl.view.HeaderEvent)

  protected void processHeaderEvent(borland.jbcl.view.HeaderEvent e)

processMouseClicked(java.awt.event.MouseEvent)

  protected void processMouseClicked(java.awt.event.MouseEvent e)
Handles clicking of the mouse on the header.

Overrides: borland.jbcl.view.ViewPanel.processMouseClicked(MouseEvent)

processMouseDragged(java.awt.event.MouseEvent)

  protected void processMouseDragged(java.awt.event.MouseEvent e)
Handles dragging of the mouse on the header.

Overrides: borland.jbcl.view.ViewPanel.processMouseDragged(MouseEvent)

processMouseMoved(java.awt.event.MouseEvent)

  protected void processMouseMoved(java.awt.event.MouseEvent e)
Handles moving the mouse in the header.

Overrides: borland.jbcl.view.ViewPanel.processMouseMoved(MouseEvent)

processMousePressed(java.awt.event.MouseEvent)

  protected void processMousePressed(java.awt.event.MouseEvent e)
Handles clicking of the mouse button on the header.

Overrides: borland.jbcl.view.ViewPanel.processMousePressed(MouseEvent)

processMouseReleased(java.awt.event.MouseEvent)

  protected void processMouseReleased(java.awt.event.MouseEvent e)
Handles release of the mouse button, if the mouse was previously clicked in the header.

Overrides: borland.jbcl.view.ViewPanel.processMouseReleased(MouseEvent)

repaintItem(int)

  public void repaintItem(int index)

repaintItems()

  public void repaintItems()

update(java.awt.Graphics)

  public void update(java.awt.Graphics g)
Repaints the header.

Overrides: java.awt.Component.update(Graphics)


HeaderView event listeners

This component is a source for the following event sets. For information on the standard AWT event sets, see Standard Java events. For information on the JBCL event sets, see Events in JBCL.

action

 public synchronized void addActionListener(java.awt.event.ActionListener l)
 public synchronized void removeActionListener(java.awt.event.ActionListener l)

component

 public synchronized void addComponentListener(java.awt.event.ComponentListener l)
 public synchronized void removeComponentListener(java.awt.event.ComponentListener l)

container

 public synchronized void addContainerListener(java.awt.event.ContainerListener l)
 public void removeContainerListener(java.awt.event.ContainerListener l)

focus

 public synchronized void addFocusListener(java.awt.event.FocusListener l)
 public synchronized void removeFocusListener(java.awt.event.FocusListener l)

header

 public void addHeaderListener(borland.jbcl.view.HeaderListener listener)
 public void removeHeaderListener(borland.jbcl.view.HeaderListener listener)

key

 public synchronized void addKeyListener(java.awt.event.KeyListener l)
 public synchronized void removeKeyListener(java.awt.event.KeyListener l)

mouse

 public synchronized void addMouseListener(java.awt.event.MouseListener l)
 public synchronized void removeMouseListener(java.awt.event.MouseListener l)

mouseMotion

 public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener l)
 public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener l)