| net.xoetrope.awt.XScrollPane net.xoetrope.awt.XTable
Constructor Summary | |
public | XTable() |
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 |
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
|
repaint | public void repaint()(Code) | | |
scrollToBottom | public void scrollToBottom()(Code) | | recalculates the size of the scroll area for dynamic table;
|
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 - |
setBounds | public void setBounds()(Code) | | recalculates the size of the scroll area for dynamic table;
|
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 |
|
|