All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.awt.text.TableListView

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----jp.kyasu.awt.KContainer
                           |
                           +----jp.kyasu.awt.Panel
                                   |
                                   +----jp.kyasu.awt.text.TableListView

public class TableListView
extends Panel
implements ActionListener, Scrollable, ScrollListener
The TableListView class implements a composite view of the TextListViews.

Version:
12 Dec 1998
Author:
Kazuki YASUMATSU
See Also:
TextListModel, TextListView, TextListController

Variable Index

 o AUTO_RESIZE_ALL_COLUMNS
Proportionately resize all columns when table is resized
 o AUTO_RESIZE_LAST_COLUMN
Auto resize last column only when table is resized
 o AUTO_RESIZE_OFF
Do not auto resize column when table is resized.

Constructor Index

 o TableListView(TextListModel, Button[])
Constructs a table list view with the specified model.

Method Index

 o actionPerformed(ActionEvent)
Invoked when an action occurs.
 o addActionListener(ActionListener)
Adds the specified action listener to receive action events from this controller.
 o addScrollListener(ScrollListener)
Add a listener to recieve scroll events when the value of the scroll component changes.
 o doLayout()
Lays out this view.
 o getAutoResizeMode()
Returns the auto resize mode of the panel.
 o getColumnButtons()
Returns the column buttons of this table list view.
 o getColumnTotalSize()
Returns the total size of the column widths.
 o getHBlockIncrement()
Gets the horizontal block value increment for the scrollable object.
 o getHMaximum()
Gets the horizontal maximum value of the scrollable object.
 o getHMinimum()
Gets the horizontal minimum value of the scrollable object.
 o getHUnitIncrement()
Gets the horizontal unit value increment for the scrollable object.
 o getHValue()
Gets the horizontal current value of the scrollable object.
 o getHVisibleAmount()
Gets the horizontal length of the propertional indicator.
 o getMinimumSize()
Returns the minimum size of this view.
 o getMinimumSize(int)
Returns the minimum size of this view with the specified number of rows.
 o getModel()
Returns the model of this table list view.
 o getPreferredButtonsHeight()
Returns the preferred height for the buttons.
 o getPreferredSize()
Returns the preferred size of this view.
 o getPreferredSize(int)
Returns the preferred size of this view with the specified number of rows.
 o getVBlockIncrement()
Gets the vertical block value increment for the scrollable object.
 o getView()
Returns the view of this table list view.
 o getVMaximum()
Gets the vertical maximum value of the scrollable object.
 o getVMinimum()
Gets the vertical minimum value of the scrollable object.
 o getVUnitIncrement()
Gets the vertical unit value increment for the scrollable object.
 o getVValue()
Gets the vertical current value of the scrollable object.
 o getVVisibleAmount()
Gets the vertical length of the propertional indicator.
 o paint(Graphics)
Paints this view.
 o removeActionListener(ActionListener)
Removes the specified action listener so it no longer receives action events from this controller.
 o removeScrollListener(ScrollListener)
Removes an scroll listener.
 o scrollValueChanged(ScrollEvent)
Invoked when the value of the scrollable has changed.
 o setAutoResizeMode(int)
Sets the the auto resize mode of the panel.
 o setEnabled(boolean)
Enables or disables this table list view.
 o setHValue(int)
Sets the horizontal current value of the scrollable object.
 o setLayout(LayoutManager)
Sets the layout manager for this view.
 o setVValue(int)
Sets the vertical current value of the scrollable object.

Variables

 o AUTO_RESIZE_OFF
 public static final int AUTO_RESIZE_OFF
Do not auto resize column when table is resized.

 o AUTO_RESIZE_LAST_COLUMN
 public static final int AUTO_RESIZE_LAST_COLUMN
Auto resize last column only when table is resized

 o AUTO_RESIZE_ALL_COLUMNS
 public static final int AUTO_RESIZE_ALL_COLUMNS
Proportionately resize all columns when table is resized

Constructors

 o TableListView
 public TableListView(TextListModel model,
                      Button buttons[])
Constructs a table list view with the specified model.

Parameters:
model - the text list movel.

Methods

 o getAutoResizeMode
 public int getAutoResizeMode()
Returns the auto resize mode of the panel. The default is AUTO_RESIZE_ALL_COLUMNS.

Returns:
the auto resize mode of the table.
 o setAutoResizeMode
 public void setAutoResizeMode(int mode)
Sets the the auto resize mode of the panel.

Parameters:
mode - the auto resize mode.
See Also:
AUTO_RESIZE_OFF, AUTO_RESIZE_LAST_COLUMN, AUTO_RESIZE_ALL_COLUMNS
 o addActionListener
 public void addActionListener(ActionListener l)
Adds the specified action listener to receive action events from this controller.

Parameters:
l - the action listener.
 o removeActionListener
 public void removeActionListener(ActionListener l)
Removes the specified action listener so it no longer receives action events from this controller.

Parameters:
l - the action listener.
 o actionPerformed
 public void actionPerformed(ActionEvent e)
Invoked when an action occurs.

See Also:
ActionListener
 o getModel
 public TextListModel getModel()
Returns the model of this table list view.

 o getView
 public TextListView getView()
Returns the view of this table list view.

 o getColumnButtons
 public synchronized Button[] getColumnButtons()
Returns the column buttons of this table list view.

 o setEnabled
 public synchronized void setEnabled(boolean b)
Enables or disables this table list view.

Overrides:
setEnabled in class KContainer
 o getColumnTotalSize
 public synchronized int getColumnTotalSize()
Returns the total size of the column widths.

 o getPreferredButtonsHeight
 public int getPreferredButtonsHeight()
Returns the preferred height for the buttons.

 o paint
 public void paint(Graphics g)
Paints this view.

Overrides:
paint in class Container
 o setLayout
 public void setLayout(LayoutManager mgr)
Sets the layout manager for this view.

Overrides:
setLayout in class Container
 o getPreferredSize
 public Dimension getPreferredSize(int rows)
Returns the preferred size of this view with the specified number of rows.

Parameters:
rows - number of rows in the table list.
 o getPreferredSize
 public Dimension getPreferredSize()
Returns the preferred size of this view.

Overrides:
getPreferredSize in class KContainer
 o getMinimumSize
 public Dimension getMinimumSize(int rows)
Returns the minimum size of this view with the specified number of rows.

Parameters:
rows - number of rows in the table list.
 o getMinimumSize
 public Dimension getMinimumSize()
Returns the minimum size of this view.

Overrides:
getMinimumSize in class KContainer
 o doLayout
 public void doLayout()
Lays out this view.

Overrides:
doLayout in class KContainer
 o getVMinimum
 public int getVMinimum()
Gets the vertical minimum value of the scrollable object.

See Also:
Scrollable
 o getHMinimum
 public int getHMinimum()
Gets the horizontal minimum value of the scrollable object.

See Also:
Scrollable
 o getVMaximum
 public int getVMaximum()
Gets the vertical maximum value of the scrollable object.

See Also:
Scrollable
 o getHMaximum
 public int getHMaximum()
Gets the horizontal maximum value of the scrollable object.

See Also:
Scrollable
 o getVUnitIncrement
 public int getVUnitIncrement()
Gets the vertical unit value increment for the scrollable object.

See Also:
Scrollable
 o getHUnitIncrement
 public int getHUnitIncrement()
Gets the horizontal unit value increment for the scrollable object.

See Also:
Scrollable
 o getVBlockIncrement
 public int getVBlockIncrement()
Gets the vertical block value increment for the scrollable object.

See Also:
Scrollable
 o getHBlockIncrement
 public int getHBlockIncrement()
Gets the horizontal block value increment for the scrollable object.

See Also:
Scrollable
 o getVVisibleAmount
 public int getVVisibleAmount()
Gets the vertical length of the propertional indicator.

See Also:
Scrollable
 o getHVisibleAmount
 public int getHVisibleAmount()
Gets the horizontal length of the propertional indicator.

See Also:
Scrollable
 o getVValue
 public int getVValue()
Gets the vertical current value of the scrollable object.

See Also:
Scrollable
 o getHValue
 public int getHValue()
Gets the horizontal current value of the scrollable object.

See Also:
Scrollable
 o setVValue
 public void setVValue(int v)
Sets the vertical current value of the scrollable object.

Parameters:
v - the current value.
See Also:
Scrollable
 o setHValue
 public void setHValue(int v)
Sets the horizontal current value of the scrollable object.

Parameters:
v - the current value.
See Also:
Scrollable
 o addScrollListener
 public void addScrollListener(ScrollListener l)
Add a listener to recieve scroll events when the value of the scroll component changes.

Parameters:
l - the listener to recieve events.
See Also:
Scrollable
 o removeScrollListener
 public void removeScrollListener(ScrollListener l)
Removes an scroll listener.

Parameters:
l - the listener being removed.
See Also:
Scrollable
 o scrollValueChanged
 public void scrollValueChanged(ScrollEvent e)
Invoked when the value of the scrollable has changed.

See Also:
ScrollListener

All Packages  Class Hierarchy  This Package  Previous  Next  Index