|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.tmaj.client.tables.InputPanel4
public class InputPanel4
A Panel that turns a regular database table into a JTable with lots of functionality for adding, modifying, and deleting rows.
Field Summary | |
---|---|
protected javax.swing.JCheckBox |
singleCheckBox
|
protected javax.swing.JTable |
table
|
protected TableData4 |
tableData
|
protected BeanTableModel |
tableModel
|
protected javax.swing.JScrollPane |
tableScrollPane
|
Constructor Summary | |
---|---|
InputPanel4(TableData4 tableData)
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
|
void |
addComponent(javax.swing.JComponent button)
|
void |
copyColumns()
|
protected void |
delete()
|
void |
disableAddingNewRows()
|
void |
disableEditing()
|
void |
foreignSearch(SearchTerm searchTerm,
java.lang.String value,
java.util.List columnIdentifiers)
Sets the search fields in the gui and then does a search. |
javax.swing.JPanel |
getPanel()
|
protected SingleInputPanel |
getSingleInputPanel()
|
TableData4 |
getTableData()
|
void |
hideColumns()
Displays a HideColumnsFrame |
void |
save()
Saves any changes the user has made to the table |
void |
search()
Searches the database for any records that match the search-fields and puts the records in the table |
protected static void |
setReducedFont(java.awt.Component component)
|
static void |
shrinkButton(javax.swing.JComponent component)
Shrinks a JButton by lessening its font and margin in the interests of saving space. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected javax.swing.JCheckBox singleCheckBox
protected final TableData4 tableData
protected final javax.swing.JScrollPane tableScrollPane
protected final javax.swing.JTable table
protected final BeanTableModel tableModel
Constructor Detail |
---|
public InputPanel4(TableData4 tableData)
Method Detail |
---|
public void addComponent(javax.swing.JComponent button)
protected SingleInputPanel getSingleInputPanel()
public void disableEditing()
public void disableAddingNewRows()
protected static void setReducedFont(java.awt.Component component)
public static void shrinkButton(javax.swing.JComponent component)
public void hideColumns()
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
protected void delete()
public void foreignSearch(SearchTerm searchTerm, java.lang.String value, java.util.List columnIdentifiers)
public void search()
public void save()
public void copyColumns()
public final javax.swing.JPanel getPanel()
public final java.lang.String toString()
toString
in class java.lang.Object
public TableData4 getTableData()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |