|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.architect.swingui.TabbedDataEntryPanel
public class TabbedDataEntryPanel
The TabbedDataEntryPanel aggregates one or more DataEntryPanel instances into a single DataEntryPanel with one tab for each sub-panel. It provides applyChanges and discardChanges methods that "do the right thing" by broadcasting the corresponding request to all the panels being managed by the current instance.
| Constructor Summary | |
|---|---|
TabbedDataEntryPanel()
|
|
| Method Summary | |
|---|---|
void |
addTab(java.lang.String name,
ca.sqlpower.swingui.DataEntryPanel panel)
Adds the given panel as a tab of this panel. |
boolean |
applyChanges()
Applies changes to every panel managed by this instance. |
void |
discardChanges()
Discards changes on every panel managed by this instance. |
javax.swing.JComponent |
getPanel()
Returns the tabbed pane that aggregates all the panels managed by this instance. |
boolean |
hasUnsavedChanges()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TabbedDataEntryPanel()
| Method Detail |
|---|
public void addTab(java.lang.String name,
ca.sqlpower.swingui.DataEntryPanel panel)
name - The string to attach to the tab for the given panelpanel - The panel to managepublic boolean applyChanges()
applyChanges in interface ca.sqlpower.swingui.DataEntryPanelpublic void discardChanges()
discardChanges in interface ca.sqlpower.swingui.DataEntryPanelpublic javax.swing.JComponent getPanel()
getPanel in interface ca.sqlpower.swingui.DataEntryPanelpublic boolean hasUnsavedChanges()
hasUnsavedChanges in interface ca.sqlpower.swingui.DataEntryPanel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||