ca.sqlpower.wabit.swingui.enterprise
Class GroupPanel
java.lang.Object
ca.sqlpower.wabit.swingui.enterprise.GroupPanel
- All Implemented Interfaces:
- ca.sqlpower.swingui.DataEntryPanel, WabitPanel
public class GroupPanel
- extends java.lang.Object
- implements WabitPanel
|
Constructor Summary |
GroupPanel(ca.sqlpower.enterprise.client.Group baseGroup)
|
|
Method Summary |
boolean |
applyChanges()
|
void |
discardChanges()
|
javax.swing.JComponent |
getPanel()
|
javax.swing.JComponent |
getSourceComponent()
Returns the component (often a JTree or JList, but can be anything) that
contains all the workspace items that can be dragged into this editor. |
java.lang.String |
getTitle()
Returns a suitable string that can be used in the title of a containing
window or frame. |
javax.swing.JToolBar |
getToolbar()
Returns the toolbar. |
boolean |
hasUnsavedChanges()
|
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroupPanel
public GroupPanel(ca.sqlpower.enterprise.client.Group baseGroup)
getSourceComponent
public javax.swing.JComponent getSourceComponent()
- Description copied from interface:
WabitPanel
- Returns the component (often a JTree or JList, but can be anything) that
contains all the workspace items that can be dragged into this editor.
The component will not be wrapped in a scroll pane; you get to do
this yourself if your component needs one.
- Specified by:
getSourceComponent in interface WabitPanel
- Returns:
- The component as described above, or null if nothing can be
dropped on this panel.
getTitle
public java.lang.String getTitle()
- Description copied from interface:
WabitPanel
- Returns a suitable string that can be used in the title of a containing
window or frame. Usually describes what the panel contains. (ex.
"Query Editor" or "Report Editor")
- Specified by:
getTitle in interface WabitPanel
getToolbar
public javax.swing.JToolBar getToolbar()
- Description copied from interface:
WabitPanel
- Returns the toolbar. A null value means not to render the toolbar.
- Specified by:
getToolbar in interface WabitPanel
applyChanges
public boolean applyChanges()
- Specified by:
applyChanges in interface ca.sqlpower.swingui.DataEntryPanel
discardChanges
public void discardChanges()
- Specified by:
discardChanges in interface ca.sqlpower.swingui.DataEntryPanel
getPanel
public javax.swing.JComponent getPanel()
- Specified by:
getPanel in interface ca.sqlpower.swingui.DataEntryPanel
hasUnsavedChanges
public boolean hasUnsavedChanges()
- Specified by:
hasUnsavedChanges in interface ca.sqlpower.swingui.DataEntryPanel
main
public static void main(java.lang.String[] args)
Copyright © 2009. All Rights Reserved.