    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Interface jclass.bwt.JCMultiColumnInterface

public interface JCMultiColumnInterface

An interface which defines the API for components which have a multiple-column behavior.

See Also:
  JCOutliner, JCMultiColumnList, JCMultiColumnWindow

##

calcWidth(int)
  Calculates the width of a column.
getColumnAlignment(int)
  Gets a column's alignment (default: BWTEnum.MIDDLELEFT).
getColumnAlignments()
  Gets the column alignments.
getColumnLeftMargin(int)
  Gets the column's left margin value (pixels).
getColumnPosition(int)
  Gets the physical position of the left boundary of the column (accounting for horizontal scrolling).
getColumnRightMargin(int)
  Gets the column's right margin value (pixels).
getColumnWidth(int)
  Gets the current width of a column, or 0 if the column does not exist.
getColumnWidths()
  Gets a list of column widths.
getMultiColumnData()
  Gets the component's JCMultiColumnData instance.
getNumColumns()
  Gets the current number of columns.
setColumnAlignment(int, int)
  Sets a column's alignment.
setColumnAlignments(int[])
  Sets the column's alignments.
setColumnButtons(JCVector)
  Sets a header for the window with buttons created from the specified labels.
setColumnLabels(JCVector)
  Sets a header for the window with the specified labels.
setColumnLeftMargin(int, int)
  Sets the column's left margin value (pixels).
setColumnRightMargin(int, int)
  Sets the column's right margin value (pixels).
setColumnWidth(int, int)
  Sets the width of a column.
setColumnWidths(int[])
  Sets the list of column widths.
setNumColumns(int)
  Sets the current number of columns.

##

setColumnLabels

     public abstract void setColumnLabels(JCVector labels)

  Sets a header for the window with the specified labels.

setColumnButtons

     public abstract void setColumnButtons(JCVector labels)

  Sets a header for the window with buttons created from the specified labels.

getColumnWidths

     public abstract int[] getColumnWidths()

  Gets a list of column widths.

setColumnWidths

     public abstract void setColumnWidths(int widths[])

  Sets the list of column widths. If a column's value is set to BWTEnum.VARIABLE, the width is set to the widest value in the column.

getColumnWidth

     public abstract int getColumnWidth(int col)

  Gets the current width of a column, or 0 if the column does not exist.

getColumnPosition

     public abstract int getColumnPosition(int col)

  Gets the physical position of the left boundary of the column (accounting for horizontal scrolling).

setColumnWidth

     public abstract void setColumnWidth(int col,
                                         int width)

  Sets the width of a column. If the value is set to BWTEnum.VARIABLE, the width is set to the widest value in the column.

getNumColumns

     public abstract int getNumColumns()

  Gets the current number of columns.

setNumColumns

     public abstract void setNumColumns(int v)

  Sets the current number of columns.

getColumnLeftMargin

     public abstract int getColumnLeftMargin(int col)

  Gets the column's left margin value (pixels).

setColumnLeftMargin

     public abstract void setColumnLeftMargin(int col,
                                              int value)

  Sets the column's left margin value (pixels).

getColumnRightMargin

     public abstract int getColumnRightMargin(int col)

  Gets the column's right margin value (pixels).

setColumnRightMargin

     public abstract void setColumnRightMargin(int col,
                                               int value)

  Sets the column's right margin value (pixels).

getColumnAlignments

     public abstract int[] getColumnAlignments()

  Gets the column alignments.

getColumnAlignment

     public abstract int getColumnAlignment(int col)

  Gets a column's alignment (default: BWTEnum.MIDDLELEFT).

setColumnAlignment

     public abstract void setColumnAlignment(int col,
                                             int align)

  Sets a column's alignment.

  Parameters:
    alignment - one of: BWTEnum.TOPLEFT, TOPCENTER, TOPRIGHT, MIDDLELEFT, MIDDLECENTER, MIDDLERIGHT, BOTTOMLEFT, BOTTOMCENTER and BOTTOMRIGHT

setColumnAlignments

     public abstract void setColumnAlignments(int align[])

  Sets the column's alignments.

  Parameters:
    align - one of: BWTEnum.TOPLEFT, TOPCENTER, TOPRIGHT, MIDDLELEFT, MIDDLECENTER, MIDDLERIGHT, BOTTOMLEFT, BOTTOMCENTER and BOTTOMRIGHT

calcWidth

     public abstract int calcWidth(int col)

  Calculates the width of a column.

getMultiColumnData

     public abstract JCMultiColumnData getMultiColumnData()

  Gets the component's JCMultiColumnData instance.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index