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
TextListView
s.
- Version:
- 12 Dec 1998
- Author:
- Kazuki YASUMATSU
- See Also:
- TextListModel, TextListView, TextListController
-
AUTO_RESIZE_ALL_COLUMNS
- Proportionately resize all columns when table is resized
-
AUTO_RESIZE_LAST_COLUMN
- Auto resize last column only when table is resized
-
AUTO_RESIZE_OFF
- Do not auto resize column when table is resized.
-
TableListView(TextListModel, Button[])
- Constructs a table list view with the specified model.
-
actionPerformed(ActionEvent)
- Invoked when an action occurs.
-
addActionListener(ActionListener)
- Adds the specified action listener to receive action events from
this controller.
-
addScrollListener(ScrollListener)
- Add a listener to recieve scroll events when the value
of the scroll component changes.
-
doLayout()
- Lays out this view.
-
getAutoResizeMode()
- Returns the auto resize mode of the panel.
-
getColumnButtons()
- Returns the column buttons of this table list view.
-
getColumnTotalSize()
- Returns the total size of the column widths.
-
getHBlockIncrement()
- Gets the horizontal block value increment for the scrollable object.
-
getHMaximum()
- Gets the horizontal maximum value of the scrollable object.
-
getHMinimum()
- Gets the horizontal minimum value of the scrollable object.
-
getHUnitIncrement()
- Gets the horizontal unit value increment for the scrollable object.
-
getHValue()
- Gets the horizontal current value of the scrollable object.
-
getHVisibleAmount()
- Gets the horizontal length of the propertional indicator.
-
getMinimumSize()
- Returns the minimum size of this view.
-
getMinimumSize(int)
- Returns the minimum size of this view with the specified number of
rows.
-
getModel()
- Returns the model of this table list view.
-
getPreferredButtonsHeight()
- Returns the preferred height for the buttons.
-
getPreferredSize()
- Returns the preferred size of this view.
-
getPreferredSize(int)
- Returns the preferred size of this view with the specified number of
rows.
-
getVBlockIncrement()
- Gets the vertical block value increment for the scrollable object.
-
getView()
- Returns the view of this table list view.
-
getVMaximum()
- Gets the vertical maximum value of the scrollable object.
-
getVMinimum()
- Gets the vertical minimum value of the scrollable object.
-
getVUnitIncrement()
- Gets the vertical unit value increment for the scrollable object.
-
getVValue()
- Gets the vertical current value of the scrollable object.
-
getVVisibleAmount()
- Gets the vertical length of the propertional indicator.
-
paint(Graphics)
- Paints this view.
-
removeActionListener(ActionListener)
- Removes the specified action listener so it no longer receives action
events from this controller.
-
removeScrollListener(ScrollListener)
- Removes an scroll listener.
-
scrollValueChanged(ScrollEvent)
- Invoked when the value of the scrollable has changed.
-
setAutoResizeMode(int)
- Sets the the auto resize mode of the panel.
-
setEnabled(boolean)
- Enables or disables this table list view.
-
setHValue(int)
- Sets the horizontal current value of the scrollable object.
-
setLayout(LayoutManager)
- Sets the layout manager for this view.
-
setVValue(int)
- Sets the vertical current value of the scrollable object.
AUTO_RESIZE_OFF
public static final int AUTO_RESIZE_OFF
- Do not auto resize column when table is resized.
AUTO_RESIZE_LAST_COLUMN
public static final int AUTO_RESIZE_LAST_COLUMN
- Auto resize last column only when table is resized
AUTO_RESIZE_ALL_COLUMNS
public static final int AUTO_RESIZE_ALL_COLUMNS
- Proportionately resize all columns when table is resized
TableListView
public TableListView(TextListModel model,
Button buttons[])
- Constructs a table list view with the specified model.
- Parameters:
- model - the text list movel.
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.
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
addActionListener
public void addActionListener(ActionListener l)
- Adds the specified action listener to receive action events from
this controller.
- Parameters:
- l - the action listener.
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.
actionPerformed
public void actionPerformed(ActionEvent e)
- Invoked when an action occurs.
- See Also:
- ActionListener
getModel
public TextListModel getModel()
- Returns the model of this table list view.
getView
public TextListView getView()
- Returns the view of this table list view.
getColumnButtons
public synchronized Button[] getColumnButtons()
- Returns the column buttons of this table list view.
setEnabled
public synchronized void setEnabled(boolean b)
- Enables or disables this table list view.
- Overrides:
- setEnabled in class KContainer
getColumnTotalSize
public synchronized int getColumnTotalSize()
- Returns the total size of the column widths.
getPreferredButtonsHeight
public int getPreferredButtonsHeight()
- Returns the preferred height for the buttons.
paint
public void paint(Graphics g)
- Paints this view.
- Overrides:
- paint in class Container
setLayout
public void setLayout(LayoutManager mgr)
- Sets the layout manager for this view.
- Overrides:
- setLayout in class Container
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.
getPreferredSize
public Dimension getPreferredSize()
- Returns the preferred size of this view.
- Overrides:
- getPreferredSize in class KContainer
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.
getMinimumSize
public Dimension getMinimumSize()
- Returns the minimum size of this view.
- Overrides:
- getMinimumSize in class KContainer
doLayout
public void doLayout()
- Lays out this view.
- Overrides:
- doLayout in class KContainer
getVMinimum
public int getVMinimum()
- Gets the vertical minimum value of the scrollable object.
- See Also:
- Scrollable
getHMinimum
public int getHMinimum()
- Gets the horizontal minimum value of the scrollable object.
- See Also:
- Scrollable
getVMaximum
public int getVMaximum()
- Gets the vertical maximum value of the scrollable object.
- See Also:
- Scrollable
getHMaximum
public int getHMaximum()
- Gets the horizontal maximum value of the scrollable object.
- See Also:
- Scrollable
getVUnitIncrement
public int getVUnitIncrement()
- Gets the vertical unit value increment for the scrollable object.
- See Also:
- Scrollable
getHUnitIncrement
public int getHUnitIncrement()
- Gets the horizontal unit value increment for the scrollable object.
- See Also:
- Scrollable
getVBlockIncrement
public int getVBlockIncrement()
- Gets the vertical block value increment for the scrollable object.
- See Also:
- Scrollable
getHBlockIncrement
public int getHBlockIncrement()
- Gets the horizontal block value increment for the scrollable object.
- See Also:
- Scrollable
getVVisibleAmount
public int getVVisibleAmount()
- Gets the vertical length of the propertional indicator.
- See Also:
- Scrollable
getHVisibleAmount
public int getHVisibleAmount()
- Gets the horizontal length of the propertional indicator.
- See Also:
- Scrollable
getVValue
public int getVValue()
- Gets the vertical current value of the scrollable object.
- See Also:
- Scrollable
getHValue
public int getHValue()
- Gets the horizontal current value of the scrollable object.
- See Also:
- Scrollable
setVValue
public void setVValue(int v)
- Sets the vertical current value of the scrollable object.
- Parameters:
- v - the current value.
- See Also:
- Scrollable
setHValue
public void setHValue(int v)
- Sets the horizontal current value of the scrollable object.
- Parameters:
- v - the current value.
- See Also:
- Scrollable
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
removeScrollListener
public void removeScrollListener(ScrollListener l)
- Removes an scroll listener.
- Parameters:
- l - the listener being removed.
- See Also:
- Scrollable
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