2008:SOFTENG702: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
#Sort by multiple columns. | #Sort by multiple columns. | ||
#*Sort according to a primary column, then according to a secondary column (reverse order too?). | #*Sort according to a primary column, then according to a secondary column (reverse order too?). | ||
#*Sort by ascending and descending. | |||
#Search for rows. | #Search for rows. | ||
#*Searching in a column by typing in a text string - have the focus jump to matching cells as you type (For cells containing text) | #*Searching in a column by typing in a text string - have the focus jump to matching cells as you type (For cells containing text) | ||
Line 14: | Line 15: | ||
#*Having duplicate entries in a column span several rows. | #*Having duplicate entries in a column span several rows. | ||
# Strong border - This will likely not be implemented. | # Strong border - This will likely not be implemented. | ||
==Design== | |||
The table can be built using swing components - It can extend JComponent. JButtons for columns and JTextFields or JLables for rows. Buttons would make it easy to capture the click. We can take in a table model like JTable or a 2d array. | |||
2D array - Nicely laid out already, easy to deal with. | |||
TableModel - Its the way JTable does it, programmers know how to deal with it. | |||
We will may have to make our own SortableTableData class which holds the sorted information. | |||
We can use the ALM example from class. | |||
We can use |
Revision as of 04:49, 18 May 2008
Initial list of objectives
- Sort the rows to a column.
- Sort by multiple columns.
- Sort according to a primary column, then according to a secondary column (reverse order too?).
- Sort by ascending and descending.
- Search for rows.
- Searching in a column by typing in a text string - have the focus jump to matching cells as you type (For cells containing text)
- Redundancy free columns
- Having duplicate entries in a column span several rows.
- Strong border - This will likely not be implemented.
Design
The table can be built using swing components - It can extend JComponent. JButtons for columns and JTextFields or JLables for rows. Buttons would make it easy to capture the click. We can take in a table model like JTable or a 2d array. 2D array - Nicely laid out already, easy to deal with. TableModel - Its the way JTable does it, programmers know how to deal with it. We will may have to make our own SortableTableData class which holds the sorted information.
We can use the ALM example from class.
We can use