public class TableListView extends Panel implements java.awt.event.ActionListener, Scrollable, ScrollListener
TableListView class implements a composite view of the
TextListViews.| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected java.awt.event.ActionListener |
actionListener |
protected static java.lang.String |
actionListenerK
Internal constant for serialization
|
static int |
AUTO_RESIZE_ALL_COLUMNS
Proportionately resize all columns when table is resized
|
static int |
AUTO_RESIZE_LAST_COLUMN
Auto resize last column only when table is resized
|
static int |
AUTO_RESIZE_OFF
Do not auto resize column when table is resized.
|
protected TextListModel |
model |
protected SplitPanel |
panel |
protected java.util.Vector |
scrollListeners |
protected TextListView |
view |
insets, PanelInsets, PanelLayoutfocusTraversable| コンストラクタと説明 |
|---|
TableListView(TextListModel model,
Button[] buttons)
Constructs a table list view with the specified model.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Invoked when an action occurs.
|
void |
addActionListener(java.awt.event.ActionListener l)
Adds the specified action listener to receive action events from
this controller.
|
protected void |
addImpl(java.awt.Component comp,
java.lang.Object constraints,
int index)
Adds the specified component to this view.
|
void |
addScrollListener(ScrollListener l)
Add a listener to recieve scroll events when the value
of the scroll component changes.
|
void |
doLayout()
Lays out this view.
|
int |
getAutoResizeMode()
Returns the auto resize mode of the panel.
|
Button[] |
getColumnButtons()
Returns the column buttons of this table list view.
|
protected int |
getColumnFromButton(java.awt.Component button) |
int |
getColumnTotalSize()
Returns the total size of the column widths.
|
int |
getHBlockIncrement()
Gets the horizontal block value increment for the scrollable object.
|
int |
getHMaximum()
Gets the horizontal maximum value of the scrollable object.
|
int |
getHMinimum()
Gets the horizontal minimum value of the scrollable object.
|
int |
getHUnitIncrement()
Gets the horizontal unit value increment for the scrollable object.
|
int |
getHValue()
Gets the horizontal current value of the scrollable object.
|
int |
getHVisibleAmount()
Gets the horizontal length of the propertional indicator.
|
java.awt.Dimension |
getMinimumSize()
Returns the minimum size of this view.
|
java.awt.Dimension |
getMinimumSize(int rows)
Returns the minimum size of this view with the specified number of
rows.
|
TextListModel |
getModel()
Returns the model of this table list view.
|
int |
getPreferredButtonsHeight()
Returns the preferred height for the buttons.
|
java.awt.Dimension |
getPreferredSize()
Returns the preferred size of this view.
|
java.awt.Dimension |
getPreferredSize(int rows)
Returns the preferred size of this view with the specified number of
rows.
|
int |
getVBlockIncrement()
Gets the vertical block value increment for the scrollable object.
|
TextListView |
getView()
Returns the view of this table list view.
|
int |
getVMaximum()
Gets the vertical maximum value of the scrollable object.
|
int |
getVMinimum()
Gets the vertical minimum value of the scrollable object.
|
int |
getVUnitIncrement()
Gets the vertical unit value increment for the scrollable object.
|
int |
getVValue()
Gets the vertical current value of the scrollable object.
|
int |
getVVisibleAmount()
Gets the vertical length of the propertional indicator.
|
protected void |
notifyActionListeners(java.awt.event.ActionEvent event)
Notifies the specified action event to the action listeners.
|
protected void |
notifyScrollListeners(ScrollEvent event)
Notifies the specified scroll event to the scroll listeners.
|
void |
paint(java.awt.Graphics g)
Paints this view.
|
void |
removeActionListener(java.awt.event.ActionListener l)
Removes the specified action listener so it no longer receives action
events from this controller.
|
void |
removeScrollListener(ScrollListener l)
Removes an scroll listener.
|
void |
scrollValueChanged(ScrollEvent e)
Invoked when the value of the scrollable has changed.
|
void |
setAutoResizeMode(int mode)
Sets the the auto resize mode of the panel.
|
void |
setEnabled(boolean b)
Enables or disables this table list view.
|
void |
setHValue(int v)
Sets the horizontal current value of the scrollable object.
|
void |
setLayout(java.awt.LayoutManager mgr)
Sets the layout manager for this view.
|
void |
setVValue(int v)
Sets the vertical current value of the scrollable object.
|
addNotify, bounds, disable, enable, enable, getBounds, getFrame, getLocation, getSize, hide, insets, isDirectNotification, isFocusTraversable, layout, location, minimumSize, postOldEvent, preferredSize, repaintNow, requestFocus, reshape, setBounds, setFocusTraversable, setVisible, show, show, size, updateadd, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getListeners, getMaximumSize, getMousePosition, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, isValidateRoot, list, list, locate, paintComponents, paramString, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setBackground, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, toString, transferFocus, transferFocusBackward, transferFocusUpCycleprotected SplitPanel panel
protected TextListModel model
protected TextListView view
protected transient java.awt.event.ActionListener actionListener
protected transient java.util.Vector scrollListeners
public static final int AUTO_RESIZE_OFF
public static final int AUTO_RESIZE_LAST_COLUMN
public static final int AUTO_RESIZE_ALL_COLUMNS
protected static final java.lang.String actionListenerK
public TableListView(TextListModel model, Button[] buttons)
model - the text list movel.public int getAutoResizeMode()
public void setAutoResizeMode(int mode)
mode - the auto resize mode.AUTO_RESIZE_OFF,
AUTO_RESIZE_LAST_COLUMN,
AUTO_RESIZE_ALL_COLUMNSpublic void addActionListener(java.awt.event.ActionListener l)
l - the action listener.public void removeActionListener(java.awt.event.ActionListener l)
l - the action listener.protected void notifyActionListeners(java.awt.event.ActionEvent event)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed インタフェース内 java.awt.event.ActionListenerActionListenerprotected int getColumnFromButton(java.awt.Component button)
public TextListModel getModel()
public TextListView getView()
public Button[] getColumnButtons()
public void setEnabled(boolean b)
setEnabled クラス内 KContainerpublic int getColumnTotalSize()
public int getPreferredButtonsHeight()
public void paint(java.awt.Graphics g)
paint クラス内 java.awt.Containerpublic void setLayout(java.awt.LayoutManager mgr)
setLayout クラス内 java.awt.Containerprotected void addImpl(java.awt.Component comp,
java.lang.Object constraints,
int index)
addImpl クラス内 java.awt.Containerpublic java.awt.Dimension getPreferredSize(int rows)
rows - number of rows in the table list.public java.awt.Dimension getPreferredSize()
getPreferredSize クラス内 KContainerpublic java.awt.Dimension getMinimumSize(int rows)
rows - number of rows in the table list.public java.awt.Dimension getMinimumSize()
getMinimumSize クラス内 KContainerpublic void doLayout()
doLayout クラス内 KContainerpublic int getVMinimum()
getVMinimum インタフェース内 ScrollableScrollablepublic int getHMinimum()
getHMinimum インタフェース内 ScrollableScrollablepublic int getVMaximum()
getVMaximum インタフェース内 ScrollableScrollablepublic int getHMaximum()
getHMaximum インタフェース内 ScrollableScrollablepublic int getVUnitIncrement()
getVUnitIncrement インタフェース内 ScrollableScrollablepublic int getHUnitIncrement()
getHUnitIncrement インタフェース内 ScrollableScrollablepublic int getVBlockIncrement()
getVBlockIncrement インタフェース内 ScrollableScrollablepublic int getHBlockIncrement()
getHBlockIncrement インタフェース内 ScrollableScrollablepublic int getVVisibleAmount()
getVVisibleAmount インタフェース内 ScrollableScrollablepublic int getHVisibleAmount()
getHVisibleAmount インタフェース内 ScrollableScrollablepublic int getVValue()
getVValue インタフェース内 ScrollableScrollablepublic int getHValue()
getHValue インタフェース内 ScrollableScrollablepublic void setVValue(int v)
setVValue インタフェース内 Scrollablev - the current value.Scrollablepublic void setHValue(int v)
setHValue インタフェース内 Scrollablev - the current value.Scrollablepublic void addScrollListener(ScrollListener l)
addScrollListener インタフェース内 Scrollablel - the listener to recieve events.Scrollablepublic void removeScrollListener(ScrollListener l)
removeScrollListener インタフェース内 Scrollablel - the listener being removed.Scrollableprotected void notifyScrollListeners(ScrollEvent event)
public void scrollValueChanged(ScrollEvent e)
scrollValueChanged インタフェース内 ScrollListenerScrollListener