|
ElegantJ Data Tables Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JList
com.elegantj.jfc.list.JFCList
This bean component allows the user to get the look and feel of JList.
This bean provides powerful designing aspects by providing following user friendly properties
VisibleRowCount the preferred number of visible rows
FixedCellHeight the fixed cell height value
FixedCellWidth the fixed cell width value
SelectionForeground the foreground color for selected cells
SelectionBackground the background color for selected cells
SelectionMode specifies whether single-item or multiple-item selections are allowed
ListData the vector containing the items to display in the list
SelectedItem the string representing the selected item
SelectedIndex the first selected item index
SelectedIndices the selected items indices
SortedList the sorting criteria
DragEnabled whether row can be dragged
DefaultAttributes the default list cell attributes
RowAttributes the list cell attributes of each row
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JList |
javax.swing.JList.AccessibleJList |
| Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
static int |
ASCENDING_SORT
Specifies the ascending sorting |
com.elegantj.editors.C1 |
c1
|
static java.awt.Cursor |
DEFAULT_MOVE_CURSOR
Specifies the default drag cursor indicates valid item to move |
static int |
DESCENDING_SORT
Specifies the descending sorting |
static int |
NONE_SORT
Specifies the none sorting |
| Fields inherited from class javax.swing.JList |
HORIZONTAL_WRAP, VERTICAL, VERTICAL_WRAP |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
JFCList()
Creates a JFCList with a default data model |
|
JFCList(javax.swing.ListModel aModel)
Creates a JFCList that takes it's items from an existing ListModel |
|
JFCList(java.lang.Object[] items)
Creates a JFCList that contains the elements in the specified array |
|
JFCList(java.util.Vector items)
Creates a JFCList that contains the elements in the specified Vector |
|
| Method Summary | |
void |
addItem(java.lang.Object item)
Adds the item to the list |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a PropertyChangeListener to the listener list. |
void |
addSelectionInterval(int anchor,
int lead)
Sets the selection to be the union of the specified interval with current selection. |
void |
clearRowAttributes()
Clears the list cell attributes at each row. |
static java.util.Hashtable |
convertAttributesArrayToTable(java.lang.Object[][] attributesArray)
Converts the Object array contains the cell attributes into Hashtable. |
static java.lang.Object[][] |
convertAttributesTableToArray(java.util.Hashtable attributesTable)
Converts the Hashtable contains the cell attributes into Object array. |
protected RowCellRenderer |
createCellRenderer()
Returns the cell renderer which can allow to set the row wise attributes |
protected ListCellAttributes |
createDefaultAttributes()
Returns the default list cell attributes object, which is a ListCellAttributes. |
protected DefaultJFCListModel |
createDefaultModel()
Creates the default list model |
protected java.util.Hashtable |
createDefaultRowsAttributes()
Returns the default list cell attributes for each row, which is a Hashtable. |
java.awt.Color |
getCellBackgroundNonSelectionColor(int row)
Returns the cell background non selection color at given row |
java.awt.Color |
getCellBackgroundSelectionColor(int row)
Returns the cell background selection color at given row |
java.awt.Color |
getCellBorderSelectionColor(int row)
Returns the cell border selection color at given row |
java.awt.Font |
getCellFont(int row)
Returns the cell font at given row |
javax.swing.Icon |
getCellIcon(int row)
Returns the cell icon at given row |
java.lang.String |
getCellIconPath(int row)
Returns the cell icon path at given row |
javax.swing.ListCellRenderer |
getCellRenderer(int row)
Returns the cell renderer at given row |
java.awt.Color |
getCellTextNonSelectionColor(int row)
Returns the cell text non selection color at given row |
java.awt.Color |
getCellTextSelectionColor(int row)
Returns the cell text selection color at given row |
ListCellAttributes |
getDefaultAttributes()
Gets the default list cell attributes for each row in the list, |
java.awt.Color |
getDefaultBackgroundNonSelectionColor()
Gets the default deselected background color |
java.awt.Color |
getDefaultBackgroundSelectionColor()
Gets the default selected background color |
java.awt.Color |
getDefaultBorderSelectionColor()
Gets the default selected border color |
javax.swing.ListCellRenderer |
getDefaultCellRenderer()
Gets the default cell renderer |
java.awt.Color |
getDefaultFocusCellBackground()
Gets the default focus cell background |
java.awt.Color |
getDefaultFocusCellForeground()
Gets the default focus cell foreground |
java.awt.Font |
getDefaultFont()
Gets the default cell font |
javax.swing.Icon |
getDefaultIcon()
Gets the default icon |
java.lang.String |
getDefaultIconPath()
Gets the default icon path |
java.awt.Color |
getDefaultTextNonSelectionColor()
Gets the default deselected text color |
java.awt.Color |
getDefaultTextSelectionColor()
Gets the default selected text color |
java.awt.Color |
getFocusCellBackground(int row)
Returns the cell focus background color at given row |
java.awt.Color |
getFocusCellForeground(int row)
Returns the cell focus foreground color at given row |
java.awt.Insets |
getInsets()
Gets the insets value for this component |
java.lang.Object |
getItemAt(int index)
Gets the item at specified index |
int |
getItemCount()
Gets the total number of items in the list |
java.lang.String |
getLicenseKey()
Gets the license key |
java.util.Vector |
getListData()
Gets the items from the list model return the vector containing the items to display in the list |
java.util.Locale |
getLocale()
Returns the value of locale. |
java.util.Hashtable |
getRowAttributes()
Gets the cell attributes at each row of the list |
ListCellAttributes |
getRowAttributes(int row)
Gets the cell attributes at specified row of the list |
java.awt.Color |
getRowBackgroundNonSelectionColor(int row)
Gets the deselected background color at row |
java.awt.Color |
getRowBackgroundSelectionColor(int row)
Gets the selected background color at row |
java.awt.Color |
getRowBorderSelectionColor(int row)
Gets the selected border color at row |
javax.swing.ListCellRenderer |
getRowCellRenderer(int row)
Gets the cell renderer at row |
java.awt.Color |
getRowFocusCellBackground(int row)
Gets the focus cell background at row |
java.awt.Color |
getRowFocusCellForeground(int row)
Gets the focus cell foreground at row |
java.awt.Font |
getRowFont(int row)
Gets the cell font at row |
javax.swing.Icon |
getRowIcon(int row)
Gets the icon at row |
java.lang.String |
getRowIconPath(int row)
Gets the icon path at row |
java.awt.Color |
getRowTextNonSelectionColor(int row)
Gets the deselected text color at row |
java.awt.Color |
getRowTextSelectionColor(int row)
Gets the selected text color at row |
java.lang.String |
getSelectedItem()
Gets the selected item |
int |
getSortedList()
Gets the sorting criteria |
void |
insertItemAt(java.lang.Object item,
int index)
Inserts the specified item at the specified index |
boolean |
isDragEnabled()
Gets true if row can be dragged in the list |
boolean |
isLightweight()
Returns whether this component has a lightweight peer, native peer or no peer. |
protected boolean |
isNavigationKey(int keyCode)
Returns whether or not the supplied keyCode maps to a key that is used for navigation. |
void |
moveItem(int oldIndex,
int newIndex)
Moves the item |
protected void |
processKeyEvent(java.awt.event.KeyEvent e)
Processes key events occurring on this component by dispatching them to any registered KeyListener objects |
protected void |
processMouseEvent(java.awt.event.MouseEvent e)
Processes mouse events occurring on this component by dispatching them to any registered MouseListener objects |
protected void |
processMouseMotionEvent(java.awt.event.MouseEvent e)
Processes mouse motion events occurring on this component by dispatching them to any registered MouseMotionListener objects |
void |
readExternal(java.io.ObjectInput in)
Externalizable interface implementation to save and retrieve the state of this bean |
void |
removeAllItems()
Removes the all items from the list |
void |
removeItem(java.lang.Object item)
Removes the specified item from the list |
void |
removeItemAt(int index)
Removes the item at specified index from the list |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a PropertyChangeListener from the listener list. |
boolean |
selectWithKeyChar(char keyChar)
Selects the list item that correponds to the specified keyboard character and returns true, if there is an item corresponding to that character. |
void |
setAutoscrolls(boolean b)
Sets whether this component will automatically scroll its contents when dragged, if contained in a component that supports scrolling |
void |
setBackground(java.awt.Color c)
Sets the Background color. |
void |
setBorder(javax.swing.border.Border b)
Sets the border of this component. |
void |
setBounds(int x,
int y,
int width,
int height)
Moves and resizes this bean. |
void |
setCellRenderer(javax.swing.ListCellRenderer renderer)
Sets the delegate that's used to paint each cell in the list. |
void |
setCursor(java.awt.Cursor c)
Sets value of the cursor. |
void |
setDefaultAttributes(ListCellAttributes defaultAttributes)
Sets the default list cell attributes for each row in the list, it can be applicable if the row wise list cell attributes are not set. |
void |
setDefaultBackgroundNonSelectionColor(java.awt.Color color)
Sets the default deselected background color |
void |
setDefaultBackgroundSelectionColor(java.awt.Color color)
Sets the default selected background color |
void |
setDefaultBorderSelectionColor(java.awt.Color color)
Sets the default selected border color |
void |
setDefaultCellRenderer(javax.swing.ListCellRenderer renderer)
Sets the default cell renderer |
void |
setDefaultFocusCellBackground(java.awt.Color color)
Sets the default focus cell background |
void |
setDefaultFocusCellForeground(java.awt.Color color)
Sets the default focus cell foreground |
void |
setDefaultFont(java.awt.Font font)
Sets the default cell font |
void |
setDefaultIcon(javax.swing.Icon icon)
Sets default the icon |
void |
setDefaultIconPath(java.lang.String path)
Sets the default icon path |
void |
setDefaultTextNonSelectionColor(java.awt.Color color)
Sets the default deselected text color |
void |
setDefaultTextSelectionColor(java.awt.Color color)
Sets the deafult selected text color |
void |
setDoubleBuffered(boolean b)
Sets whether the receiving component should use a buffer to paint. |
void |
setDragEnabled(boolean b)
Sets true if row can be dragged in the list Dragged row is moved to dragged position |
void |
setEnabled(boolean b)
sets Enablity. |
void |
setFixedCellHeight(int n)
Sets the height of every cell in the list. |
void |
setFixedCellWidth(int n)
Sets the width of every cell in the list. |
void |
setFont(java.awt.Font f)
Sets the font. |
void |
setForeground(java.awt.Color c)
Sets the Foreground color. |
void |
setInsets(java.awt.Insets i)
Sets the insets value for this component |
void |
setItemAt(java.lang.Object item,
int index)
Sets the specified item at specified index in the list |
void |
setLayout(java.awt.LayoutManager mgr)
Sets the layout manager for this component. |
void |
setLicenseKey(java.lang.String key)
Sets the license key |
void |
setLightweight(boolean b)
Sets whether this component has a lightweight peer, native peer or no peer. |
void |
setListData(java.lang.Object[] listData)
Constructs a ListModel from an array of objects and then applies setModel to it. |
void |
setListData(java.util.Vector vect)
Sets a ListModel from a Vector and then applies setModel to it |
void |
setLocale(java.util.Locale l)
Sets value of the locale. |
void |
setModel(javax.swing.ListModel model)
Sets the list model that will provide the data. |
void |
setOpaque(boolean b)
Sets whether this component paints every pixel within its bounds. |
void |
setRequestFocusEnabled(boolean b)
Sets whether the receiving component can obtain the focus by calling requestFocus. |
void |
setRowAttributes(java.util.Hashtable attributesTable)
Sets the cell attributes at each row of the list, It has the maximum priority. |
void |
setRowAttributes(ListCellAttributes rowAttributes,
int row)
Sets the cell attributes at specified row of the list |
void |
setRowBackgroundNonSelectionColor(java.awt.Color color,
int row)
Sets the deselected background color at row |
void |
setRowBackgroundSelectionColor(java.awt.Color color,
int row)
Sets the selected background color at row |
void |
setRowBorderSelectionColor(java.awt.Color color,
int row)
Sets the selected border color at row |
void |
setRowCellRenderer(javax.swing.ListCellRenderer renderer,
int row)
Sets the cell renderer at row |
void |
setRowFocusCellBackground(java.awt.Color color,
int row)
Sets the focus cell background at row |
void |
setRowFocusCellForeground(java.awt.Color color,
int row)
Sets the focus cell foreground at row |
void |
setRowFont(java.awt.Font font,
int row)
Sets the cell font at row |
void |
setRowIcon(javax.swing.Icon icon,
int row)
Sets the icon at row |
void |
setRowIconPath(java.lang.String path,
int row)
Sets the icon path at row |
void |
setRowTextNonSelectionColor(java.awt.Color color,
int row)
Sets the deselected text color at row |
void |
setRowTextSelectionColor(java.awt.Color color,
int row)
Sets the selected text color at row |
void |
setSelectedIndex(int n)
Selects a single cell. |
void |
setSelectedIndices(int[] indices)
Selects a set of cells. |
void |
setSelectedItem(java.lang.String s)
Sets the item selected |
void |
setSelectionInterval(int anchor,
int lead)
Selects the specified interval. |
void |
setSelectionMode(int n)
Sets whether single-item or multiple-item selections are allowed. |
void |
setSortedList(int i)
Sets the sorting criteria |
void |
setToolTipText(java.lang.String s)
Sets the text to display in a tool tip. |
void |
setVisible(boolean b)
sets Visiblity. |
void |
setVisibleRowCount(int n)
Sets the preferred number of rows in the list that can be displayed without a scollbar |
boolean |
valueExists(java.lang.String s)
Determines whether the specified value is exist in the list model. |
void |
writeExternal(java.io.ObjectOutput out)
|
| Methods inherited from class javax.swing.JList |
addListSelectionListener, clearSelection, createSelectionModel, ensureIndexIsVisible, fireSelectionValueChanged, getAccessibleContext, getAnchorSelectionIndex, getCellBounds, getCellRenderer, getDragEnabled, getFirstVisibleIndex, getFixedCellHeight, getFixedCellWidth, getLastVisibleIndex, getLayoutOrientation, getLeadSelectionIndex, getListSelectionListeners, getMaxSelectionIndex, getMinSelectionIndex, getModel, getNextMatch, getPreferredScrollableViewportSize, getPrototypeCellValue, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedIndex, getSelectedIndices, getSelectedValue, getSelectedValues, getSelectionBackground, getSelectionForeground, getSelectionMode, getSelectionModel, getToolTipText, getUI, getUIClassID, getValueIsAdjusting, getVisibleRowCount, indexToLocation, isSelectedIndex, isSelectionEmpty, locationToIndex, paramString, removeListSelectionListener, removeSelectionInterval, setLayoutOrientation, setPrototypeCellValue, setSelectedValue, setSelectionBackground, setSelectionForeground, setSelectionModel, setUI, setValueIsAdjusting, updateUI |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setDebugGraphicsOptions, setDefaultLocale, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setPreferredSize, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static java.awt.Cursor DEFAULT_MOVE_CURSOR
public static final int DESCENDING_SORT
public static final int NONE_SORT
public static final int ASCENDING_SORT
public transient com.elegantj.editors.C1 c1
| Constructor Detail |
public JFCList()
public JFCList(javax.swing.ListModel aModel)
aModel - the ListModel that provides the displayed list of itemspublic JFCList(java.lang.Object[] items)
items - an array of objects to insert into the listpublic JFCList(java.util.Vector items)
items - a vector of items to insert into the list| Method Detail |
public void setLicenseKey(java.lang.String key)
key - the license keypublic java.lang.String getLicenseKey()
protected DefaultJFCListModel createDefaultModel()
protected RowCellRenderer createCellRenderer()
protected ListCellAttributes createDefaultAttributes()
public void setDefaultAttributes(ListCellAttributes defaultAttributes)
defaultAttributes - the default list cell attributespublic ListCellAttributes getDefaultAttributes()
public void setDefaultTextSelectionColor(java.awt.Color color)
color - the default selected text colorpublic java.awt.Color getDefaultTextSelectionColor()
public void setDefaultTextNonSelectionColor(java.awt.Color color)
color - the default deselected text colorpublic java.awt.Color getDefaultTextNonSelectionColor()
public void setDefaultBackgroundSelectionColor(java.awt.Color color)
color - the default selected background colorpublic java.awt.Color getDefaultBackgroundSelectionColor()
public void setDefaultBackgroundNonSelectionColor(java.awt.Color color)
color - the default deselected background colorpublic java.awt.Color getDefaultBackgroundNonSelectionColor()
public void setDefaultBorderSelectionColor(java.awt.Color color)
color - the default selected border colorpublic java.awt.Color getDefaultBorderSelectionColor()
public void setDefaultFocusCellBackground(java.awt.Color color)
color - the default focus cell backgroundpublic java.awt.Color getDefaultFocusCellBackground()
public void setDefaultFocusCellForeground(java.awt.Color color)
color - the default focus cell foregroundpublic java.awt.Color getDefaultFocusCellForeground()
public void setDefaultFont(java.awt.Font font)
font - default the cell fontpublic java.awt.Font getDefaultFont()
public void setDefaultIcon(javax.swing.Icon icon)
icon - the default iconpublic javax.swing.Icon getDefaultIcon()
public void setDefaultIconPath(java.lang.String path)
path - the default icon pathpublic java.lang.String getDefaultIconPath()
public void setDefaultCellRenderer(javax.swing.ListCellRenderer renderer)
renderer - the default cell rendererpublic javax.swing.ListCellRenderer getDefaultCellRenderer()
public void setRowAttributes(java.util.Hashtable attributesTable)
attributesTable - the cell attributes at each rowpublic java.util.Hashtable getRowAttributes()
public void clearRowAttributes()
protected java.util.Hashtable createDefaultRowsAttributes()
public void setRowAttributes(ListCellAttributes rowAttributes,
int row)
rowAttributes - the cell attributes at specified rowpublic ListCellAttributes getRowAttributes(int row)
public void setRowTextSelectionColor(java.awt.Color color,
int row)
color - the selected text colorrow - the rowpublic java.awt.Color getRowTextSelectionColor(int row)
row - the row
public void setRowTextNonSelectionColor(java.awt.Color color,
int row)
color - the deselected text colorrow - the rowpublic java.awt.Color getRowTextNonSelectionColor(int row)
row - the row
public void setRowBackgroundSelectionColor(java.awt.Color color,
int row)
color - the selected background colorrow - the rowpublic java.awt.Color getRowBackgroundSelectionColor(int row)
row - the row
public void setRowBackgroundNonSelectionColor(java.awt.Color color,
int row)
color - the deselected background colorrow - the rowpublic java.awt.Color getRowBackgroundNonSelectionColor(int row)
row - the row
public void setRowBorderSelectionColor(java.awt.Color color,
int row)
color - the selected border colorrow - the rowpublic java.awt.Color getRowBorderSelectionColor(int row)
row - the row
public void setRowFocusCellBackground(java.awt.Color color,
int row)
color - the focus cell backgroundrow - the row indexpublic java.awt.Color getRowFocusCellBackground(int row)
row - the row index
public void setRowFocusCellForeground(java.awt.Color color,
int row)
color - the focus cell foregroundrow - the row indexpublic java.awt.Color getRowFocusCellForeground(int row)
row - the row index
public void setRowFont(java.awt.Font font,
int row)
font - the cell fontrow - the row indexpublic java.awt.Font getRowFont(int row)
row - the row index
public void setRowIcon(javax.swing.Icon icon,
int row)
icon - the iconrow - the rowpublic javax.swing.Icon getRowIcon(int row)
row - the row
public void setRowIconPath(java.lang.String path,
int row)
path - the icon pathrow - the rowpublic java.lang.String getRowIconPath(int row)
row - the row
public void setRowCellRenderer(javax.swing.ListCellRenderer renderer,
int row)
renderer - the cell rendererrow - the rowpublic javax.swing.ListCellRenderer getRowCellRenderer(int row)
row - the row
public java.awt.Color getCellBackgroundSelectionColor(int row)
row - the row index
public java.awt.Color getCellBackgroundNonSelectionColor(int row)
row - the row index
public java.awt.Color getCellTextSelectionColor(int row)
row - the row index
public java.awt.Color getCellTextNonSelectionColor(int row)
row - the row index
public java.awt.Color getCellBorderSelectionColor(int row)
row - the row index
public java.awt.Color getFocusCellBackground(int row)
row - the row index
public java.awt.Color getFocusCellForeground(int row)
row - the row index
public java.awt.Font getCellFont(int row)
row - the row index
public javax.swing.Icon getCellIcon(int row)
row - the row index
public java.lang.String getCellIconPath(int row)
row - the row index
public javax.swing.ListCellRenderer getCellRenderer(int row)
row - the row index
public static java.lang.Object[][] convertAttributesTableToArray(java.util.Hashtable attributesTable)
attributesTable - the Hashtable containing the cell attributes
public static java.util.Hashtable convertAttributesArrayToTable(java.lang.Object[][] attributesArray)
attributesArray - the Object array containing the cell attributes
public java.util.Vector getListData()
public void setSelectedItem(java.lang.String s)
s - the item to be selectedpublic java.lang.String getSelectedItem()
public void setSortedList(int i)
i - one of the constants : ASCENDING_SORT, DESCENDING_SORT, NONE_SORTpublic int getSortedList()
public boolean valueExists(java.lang.String s)
public void addItem(java.lang.Object item)
item - the item to addedpublic java.lang.Object getItemAt(int index)
index - the index of the item
public int getItemCount()
public void insertItemAt(java.lang.Object item,
int index)
item - the item to be insertedindex - the insertion indexpublic void removeAllItems()
public void removeItem(java.lang.Object item)
item - the item to be removedpublic void removeItemAt(int index)
index - the removal index
public void setItemAt(java.lang.Object item,
int index)
item - an itemindex - an index of the item
public void moveItem(int oldIndex,
int newIndex)
oldIndex - the index of the item to be movednewIndex - the new index of the itempublic void setDragEnabled(boolean b)
b - true, if row can be draggedpublic boolean isDragEnabled()
public boolean selectWithKeyChar(char keyChar)
keyChar - a char, typically this is a keyboard key typed by the userprotected boolean isNavigationKey(int keyCode)
public void setModel(javax.swing.ListModel model)
model - the ListModel that is to provide the datapublic void setVisibleRowCount(int n)
n - an integer specifying the preferred number of visible rows, default 8public void setFixedCellHeight(int n)
n - an integer giving the height, in pixels, for all cells in this list, default -1public void setFixedCellWidth(int n)
n - an integer giving the width, in pixels, for all cells in this list, default -1public void setSelectionMode(int n)
n - an integer specifying the type of selections that are permissiblepublic void setListData(java.util.Vector vect)
vect - a Vector containing the items to display in the listpublic void setListData(java.lang.Object[] listData)
listData - an array of Objects containing the items to display in the listpublic void setSelectedIndex(int n)
n - the index of the one cell to selectpublic void setSelectedIndices(int[] indices)
indices - an array of the indices of the cells to selectpublic void setCellRenderer(javax.swing.ListCellRenderer renderer)
renderer - the ListCellRenderer that paints list cells
public void addSelectionInterval(int anchor,
int lead)
anchor - the first index to add to the selectionlead - the last index to add to the selection
public void setSelectionInterval(int anchor,
int lead)
anchor - the first index to selectlead - the last index to selectpublic void setLightweight(boolean b)
b - true if this component has a lightweight peer; false if it has a native peer or no peer.public boolean isLightweight()
public void setOpaque(boolean b)
b - true if this component paints every pixel within its bounds.public void setToolTipText(java.lang.String s)
public void setDoubleBuffered(boolean b)
b - if true, all the drawing from this component will be done
in an offscreen painting buffer. The offscreen painting buffer will
the be copied onto the screen.public void setBorder(javax.swing.border.Border b)
b - the border to be rendered for this componentpublic void setAutoscrolls(boolean b)
b - if true, this component will automatically scroll its contents when draggedpublic void setRequestFocusEnabled(boolean b)
b - if true the receiving component can obtain the focus by calling requestFocuspublic void addPropertyChangeListener(java.beans.PropertyChangeListener l)
l - the PropertyChangeListener to be addedpublic void removePropertyChangeListener(java.beans.PropertyChangeListener l)
l - the PropertyChangeListener to be removedpublic void setInsets(java.awt.Insets i)
i - the insets valuepublic java.awt.Insets getInsets()
public void setLayout(java.awt.LayoutManager mgr)
mgr - the specified layout managerprotected void processKeyEvent(java.awt.event.KeyEvent e)
e - - the key eventprotected void processMouseEvent(java.awt.event.MouseEvent e)
e - - the mouse eventprotected void processMouseMotionEvent(java.awt.event.MouseEvent e)
e - - the mouse event
public void setBounds(int x,
int y,
int width,
int height)
x - x-coordinate of this bean.y - y-coordinate of this bean.width - the new width of this bean.height - the new height of this bean.public void setForeground(java.awt.Color c)
public void setBackground(java.awt.Color c)
public void setFont(java.awt.Font f)
public void setVisible(boolean b)
b - flag representing visibility of bean.public void setEnabled(boolean b)
b - flag representing enability of bean.public void setLocale(java.util.Locale l)
l - current value of the locale.public java.util.Locale getLocale()
public void setCursor(java.awt.Cursor c)
c - current value of the cursor.
public void readExternal(java.io.ObjectInput in)
throws java.lang.ClassNotFoundException,
java.io.IOException
readExternal in interface java.io.Externalizablejava.lang.ClassNotFoundException
java.io.IOException
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException
|
ElegantJ Data Tables Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||