ca.sqlpower.wabit.swingui
Class WabitImagePanel

java.lang.Object
  extended by ca.sqlpower.wabit.swingui.WabitImagePanel
All Implemented Interfaces:
ca.sqlpower.swingui.DataEntryPanel, WabitPanel

public class WabitImagePanel
extends java.lang.Object
implements WabitPanel

This panel will allow editing a WabitImage. WabitImages can be used in reports.


Constructor Summary
WabitImagePanel(WabitImage image, WabitSwingSessionContext context)
           
 
Method Summary
 boolean applyChanges()
           
 void discardChanges()
           
 WabitImage getImage()
           
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WabitImagePanel

public WabitImagePanel(WabitImage image,
                       WabitSwingSessionContext context)
Method Detail

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

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

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.

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

getImage

public WabitImage getImage()


Copyright © 2009. All Rights Reserved.