| net.xoetrope.swing.XScrollPane net.xoetrope.swing.XTable
Constructor Summary | |
public | XTable() |
addItemListener | public synchronized void addItemListener(ItemListener l)(Code) | | Adds the specified item listener to receive item events from
this list. Item events are sent in response to user input, but not
in response to calls to select or deselect .
If listener l is null ,
no exception is thrown and no action is performed.
Parameters: l - the item listener See Also: java.awt.event.ItemEvent See Also: java.awt.event.ItemListener since: JDK1.1 |
addMouseListener | public void addMouseListener(MouseListener l)(Code) | | Add a mouse listener
Parameters: l - the new mouse listener |
addNotify | public void addNotify()(Code) | | Creates the scroll pane's peer and sizes the child element.
|
checkSize | public void checkSize()(Code) | | Recalculate and check the size of the content
|
first | public void first()(Code) | | Move to the first row
|
getComponentHashCode | public long getComponentHashCode()(Code) | | Get the hash code to be used by the event handler for this component
the hash code |
getComponentPanel | public Container getComponentPanel()(Code) | | Get the container that holds the components
the viewport pane |
getContent | public String getContent()(Code) | | Set the model's name
the name |
getFieldValue | public String getFieldValue(int fieldIdx)(Code) | | Gets a field value as a string from the currently selected row
Parameters: fieldIdx - the field offset the value |
getFieldValue | public String getFieldValue(int rowIdx, int fieldIdx)(Code) | | Gets a field value as a string from the specified row
Parameters: rowIdx - the row offset Parameters: fieldIdx - the field offset the value |
getModel | public XModel getModel()(Code) | | Get the underlying model.
the model |
getSelectedObjects | public Object[] getSelectedObjects()(Code) | | Returns the selected items on the list in an array of objects.
See Also: ItemSelectable |
getSelectedRow | public int getSelectedRow()(Code) | | Get the index of the selected row
the index of the selected row |
getValue | public Object getValue(int fieldIdx)(Code) | | Gets a field value object from the currently selected row
Parameters: fieldIdx - the field offset the value |
getValue | public Object getValue(int rowIdx, int fieldIdx)(Code) | | Gets a field value object from the specified row
Parameters: rowIdx - the row offset Parameters: fieldIdx - the field offset the value |
isInteractiveTable | public boolean isInteractiveTable()(Code) | | Check the if the table is interactive
true if the table supports user interaction |
last | public void last()(Code) | | Move to the last row
|
next | public void next()(Code) | | Move to the next row
|
prev | public void prev()(Code) | | Move to the previous row
|
removeItemListener | public synchronized void removeItemListener(ItemListener l)(Code) | | Removes the specified item listener so that it no longer
receives item events from this list.
If listener l is null ,
no exception is thrown and no action is performed.
Parameters: l - the item listener See Also: java.awt.event.ItemEvent See Also: java.awt.event.ItemListener since: JDK1.1 |
setAttribute | public void setAttribute(String attribName, String attribValue)(Code) | | Set one or more attributes of the component. Currently this handles the
attributes
- headingStyle, value=the table header style
- selectionStyle, value=the selected row style
- interactive, value=true|false
- updateModel, value=true|false update the underlying model selection (the selected row)
Parameters: attribName - the attribute name Parameters: attribValue - the attribute value |
setBorderStyle | public void setBorderStyle(String style)(Code) | | Set the style of the border
Parameters: style - XStyle |
setBounds | public void setBounds(int x, int y, int w, int h)(Code) | | Sets the bounds for this component
Parameters: x - Parameters: y - Parameters: w - Parameters: h - |
setColWidth | public void setColWidth(int fieldIdx, int w)(Code) | | Set the table column width;
Parameters: fieldIdx - the field index Parameters: w - the new column width |
setComponentAt | public void setComponentAt(int col, String className)(Code) | | Set the type of component for a column
Parameters: col - the field index Parameters: className - the class name |
setHeaderStyle | public void setHeaderStyle(String style)(Code) | | Set the style of the header data
Parameters: style - XStyle |
setInteractiveTable | public void setInteractiveTable(boolean state)(Code) | | Set the user interaction state
Parameters: state - true for an user interactive table. |
setModel | public void setModel(XModel xmodel)(Code) | | Set the XModel which we will be generating the table from
Parameters: xmodel - The XModel of data |
setSelectedRow | public void setSelectedRow(int idx)(Code) | | Sets the indexof the selected row
Parameters: idx - the new selected row |
setSelectedStyle | public void setSelectedStyle(String style)(Code) | | Set the style of the selected row
Parameters: style - XStyle |
setStyle | public void setStyle(String style)(Code) | | Set the general style of the XTable
Parameters: style - XStyle |
setUpdateModelSelection | public void setUpdateModelSelection(boolean doUpdate)(Code) | | Tie the model selection to this table's selection
Parameters: doUpdate - true to tie the selections together, false to ignore |
|
|