borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.view
java.lang.Object +----java.awt.Component +----java.awt.Container +----java.awt.Panel +----borland.jbcl.view.BeanPanel +----borland.jbcl.view.HeaderView
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.
protected ButtonItemPainter border
public HeaderView()Constructs a header view manager.
public HeaderView(int defaultOrientation)Constructs a header view manager.
public boolean isBatchMode() public void setBatchMode(boolean batchMode)
public SizeVector getItemSizes() public void setItemSizes(borland.jbcl.view.SizeVector newSizes)An array of widths of the header cells, for a horizontal header.
public boolean isLiveResize() public void setLiveResize(boolean liveResize)
public VectorModel getModel() public void setModel(borland.jbcl.model.VectorModel vm)
public boolean isMoveable() public void setMoveable(boolean moveable)
public int getOffset() public void setOffset(int offset)
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.
public Dimension getPreferredSize()The preferred size of the header in a layout.
public boolean isResizable() public void setResizable(boolean resizable)
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.
public VectorViewManager getViewManager() public void setViewManager(borland.jbcl.model.VectorViewManager newViewManager)Specifies the view manager for the header items.
public Rectangle getItemBounds(int item)Returns the bounding rectangle for a given header item, in pixels.
public void paint(java.awt.Graphics pg)Paints or repaints the header.
Overrides: java.awt.Container.paint(Graphics)
protected void processHeaderEvent(borland.jbcl.view.HeaderEvent e)
protected void processMouseClicked(java.awt.event.MouseEvent e)Handles clicking of the mouse on the header.
Overrides: borland.jbcl.view.ViewPanel.processMouseClicked(MouseEvent)
protected void processMouseDragged(java.awt.event.MouseEvent e)Handles dragging of the mouse on the header.
Overrides: borland.jbcl.view.ViewPanel.processMouseDragged(MouseEvent)
protected void processMouseMoved(java.awt.event.MouseEvent e)Handles moving the mouse in the header.
Overrides: borland.jbcl.view.ViewPanel.processMouseMoved(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)
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)
public void repaintItem(int index)
public void repaintItems()
public void update(java.awt.Graphics g)Repaints the header.
Overrides: java.awt.Component.update(Graphics)
public synchronized void addActionListener(java.awt.event.ActionListener l) public synchronized void removeActionListener(java.awt.event.ActionListener l)
public synchronized void addComponentListener(java.awt.event.ComponentListener l) public synchronized void removeComponentListener(java.awt.event.ComponentListener l)
public synchronized void addContainerListener(java.awt.event.ContainerListener l) public void removeContainerListener(java.awt.event.ContainerListener l)
public synchronized void addFocusListener(java.awt.event.FocusListener l) public synchronized void removeFocusListener(java.awt.event.FocusListener l)
public void addHeaderListener(borland.jbcl.view.HeaderListener listener) public void removeHeaderListener(borland.jbcl.view.HeaderListener listener)
public synchronized void addKeyListener(java.awt.event.KeyListener l) public synchronized void removeKeyListener(java.awt.event.KeyListener l)
public synchronized void addMouseListener(java.awt.event.MouseListener l) public synchronized void removeMouseListener(java.awt.event.MouseListener l)
public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener l) public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener l)