ca.sqlpower.wabit.swingui.report
Class LayoutPanel

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

public class LayoutPanel
extends java.lang.Object
implements WabitPanel, MouseState


Nested Class Summary
 
Nested classes/interfaces inherited from interface ca.sqlpower.wabit.swingui.MouseState
MouseState.MouseStates
 
Field Summary
static javax.swing.Icon CREATE_BOX_ICON
           
static javax.swing.Icon CREATE_HORIZONTAL_GUIDE_ICON
           
static javax.swing.Icon CREATE_VERTICAL_GUIDE_ICON
           
static javax.swing.Icon ZOOM_TO_FIT_ICON
           
 
Constructor Summary
LayoutPanel(WabitSwingSession session, Layout layout)
           
 
Method Summary
 boolean applyChanges()
           
 void discardChanges()
           
 ca.sqlpower.swingui.CursorManager getCursorManager()
           
 Layout getLayout()
           
 MouseState.MouseStates getMouseState()
           
 PageNode getPageNode()
           
 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()
           
 void setMouseState(MouseState.MouseStates state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATE_BOX_ICON

public static final javax.swing.Icon CREATE_BOX_ICON

CREATE_HORIZONTAL_GUIDE_ICON

public static final javax.swing.Icon CREATE_HORIZONTAL_GUIDE_ICON

CREATE_VERTICAL_GUIDE_ICON

public static final javax.swing.Icon CREATE_VERTICAL_GUIDE_ICON

ZOOM_TO_FIT_ICON

public static final javax.swing.Icon ZOOM_TO_FIT_ICON
Constructor Detail

LayoutPanel

public LayoutPanel(WabitSwingSession session,
                   Layout layout)
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

getMouseState

public MouseState.MouseStates getMouseState()
Specified by:
getMouseState in interface MouseState

setMouseState

public void setMouseState(MouseState.MouseStates state)
Specified by:
setMouseState in interface MouseState

getLayout

public Layout getLayout()

getPageNode

public PageNode getPageNode()

getCursorManager

public ca.sqlpower.swingui.CursorManager getCursorManager()

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


Copyright © 2009. All Rights Reserved.