public class ReportDesignerPanel extends javax.swing.JPanel implements TabPane, java.awt.event.ActionListener, java.awt.dnd.DropTargetListener, StateChangeListener, java.awt.event.WindowFocusListener
Modifier and Type | Class and Description |
---|---|
static class |
ReportDesignerPanel.Factory
A factory that creates the library panel for the editors.
|
class |
ReportDesignerPanel.ReportItemButtonListener
Mouse Listener for the Report Item Buttons
|
class |
ReportDesignerPanel.SectionHeaderDocumentListener |
class |
ReportDesignerPanel.SectionHeaderListener
SectionHeaderListener - Mouse Listener for the Section static report item
|
class |
ReportDesignerPanel.TextAreaDocumentListener |
class |
ReportDesignerPanel.TextAreaItemMouseListener
Mouse Listener for the Text area static report item
|
class |
ReportDesignerPanel.TitleDocumentListener |
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IMAGES_DIR |
static java.awt.datatransfer.DataFlavor |
jlabelFlavor |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
ReportDesignerPanel(java.lang.String title,
java.lang.String workflowName) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
protected void |
addDeleteButton(javax.swing.JToolBar toolBar,
Item associtem,
DragAndDropPanel panel)
addDeleteButton() adds the delete button to the toolbar.
|
void |
addItemToLayout(Item item)
Adds an item to the Report Layout model.
|
void |
arrangePanels(DragAndDropPanel columnPanel,
int dropYLoc)
ArrangePanels is used to re-order the existing panels when you drag and drop them.
|
DragAndDropPanel |
createStaticReportItemView(Item tmpItem,
DragAndDropPanel columnPanel)
createStaticReportItemView - Creates the Views for the Static Report Items.
|
void |
deleteItemFromLayout(Item item)
Removes an item from the Report Layout.
|
void |
deletePanel(DragAndDropPanel deletedPanel,
int deletedYLoc)
DeletePanel - deletes a panel when the 'delete panel' button is pressed.
|
void |
dragEnter(java.awt.dnd.DropTargetDragEvent dtde) |
void |
dragExit(java.awt.dnd.DropTargetEvent dte) |
void |
dragOver(java.awt.dnd.DropTargetDragEvent dtde) |
void |
drop(java.awt.dnd.DropTargetDropEvent dtde) |
void |
dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde) |
Item |
getCurrSelectedItem() |
static java.awt.datatransfer.DataFlavor |
getDragAndDropPanelDataFlavor()
Data Flavor for the Drag and Drop Data Transfer Handler.
|
java.net.URL |
getIconURL(java.lang.String iconname,
java.lang.String extension)
Method that sets the location for the images directory for the icons and
appends ".gif" or ".png", etc. to the name of the file if you pass it the name of the
image that you would like to use.
|
TableauFrame |
getParentFrame()
Implementation of getParentFrame getName()
|
DragAndDropPanel |
getPrevPanel() |
Item |
getPrevSelectedItem() |
DragAndDropPanel |
getPrevSelectedPanel(java.util.List<DragAndDropPanel> reportpanelslist)
getPrevSelectedPanel - figures out which panel was previously selected, so that we
can de-select it, and change the colors, etc.
|
java.util.List<DragAndDropPanel> |
getReportItemPanels()
get ReportItemPanels() gets the ReportItemPanels in general, the panels are laid out directly
from the report model, but this is used for the GUI to re-arrange the
panels and access report items that are associated with them.
|
Item |
getSelectedItem()
getSelectedItem and setSelectedItem are currently used to create the
properties table that appears in the 'Items of Interest' panel.
|
DragAndDropPanel |
getSelectedPanel(java.util.List<DragAndDropPanel> reportpanelslist)
getSelectedPanel - figures out which panel is currently selected, so that we
can see if it is the same as the previously selected one, and if it isn't the
same -- then change the colors, etc.
|
java.lang.String |
getTabName()
Implementation of TabPane getName()
|
void |
handleStateChange(StateChangeEvent event)
This method is called if there is a change in the state of the
application.
|
void |
initializeTab()
Initializes the tab for this TabPane in which the Report Designer is
displayed.
|
static boolean |
isMac() |
static boolean |
isUnix() |
static boolean |
isWindows() |
ReportLayout |
lookupReportLayout(java.lang.Integer execId) |
protected DeleteItemButton |
makeDeleteButton(java.lang.String imageName,
java.lang.String actionCommand,
Item associtem,
DragAndDropPanel panel,
java.lang.String toolTipText,
java.lang.String altText)
makeDeleteButton() creates the Delete Button for the Static Items.
|
protected DeleteItemButton |
makeDynamicItemDeleteButton(java.lang.String imageName,
java.lang.String actionCommand,
Item associtem,
java.lang.String toolTipText,
java.lang.String altText)
makeDynamicItemDeleteButton() creates the Delete Button for the Dynamic Items.
|
protected void |
redrawView()
redrawView() redraws the view, from getReportItemPanels
using GridBagConstraints
|
DragAndDropPanel |
renderDynamicReportItem(Item tmpItem)
renders a Dynamic Report Item.
|
DragAndDropPanel |
renderHRPanel(DragAndDropPanel columnPanel,
javax.swing.JLabel staticreportItemLabel,
javax.swing.JRadioButton staticreportItemButton)
Renders the view for the StaticReportItemHR (Horizontal Rule)
|
DragAndDropPanel |
renderImagePanel(Item tmpItem,
DragAndDropPanel dragAndDropPanel,
javax.swing.JLabel staticreportItemLabel,
javax.swing.JRadioButton staticreportItemButton)
Renders the view for the StaticReportItemImage (static image)
|
DragAndDropPanel |
renderSectionPanel(DragAndDropPanel dragAndDropPanel,
javax.swing.JLabel staticreportItemLabel,
javax.swing.JRadioButton staticreportItemButton,
java.lang.String strtoken)
Renders the view for the StaticReportItemSection (Section)
|
DragAndDropPanel |
renderStaticReportItem(Item tmpItem)
renderStaticReportItem() - Renders the Static Report Items
|
DragAndDropPanel |
renderTextPanel(DragAndDropPanel columnPanel,
javax.swing.JLabel staticreportItemLabel,
javax.swing.JRadioButton staticreportItemButton,
java.lang.String strtoken)
renderTextPanel() - Renders the view for the StaticReportItemText
|
void |
setCurrPanel(DragAndDropPanel currpanel) |
void |
setCurrSelectedItem(Item currItem) |
void |
setParentFrame(TableauFrame parent)
Implementation of TabPane setParentFrame(TableauFrame)
|
void |
setPrevPanel(DragAndDropPanel prevpanel) |
void |
setPrevSelectedItem(Item prevItem) |
void |
setSelectedItem(Item selectedItem) |
int |
showDiscardWarning(java.lang.String message) |
void |
showRun(StateChangeEvent event,
NamedObj reference) |
void |
windowGainedFocus(java.awt.event.WindowEvent e) |
void |
windowLostFocus(java.awt.event.WindowEvent e) |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final java.lang.String IMAGES_DIR
public static final java.awt.datatransfer.DataFlavor jlabelFlavor
public ReportDesignerPanel(java.lang.String title, java.lang.String workflowName)
public Item getSelectedItem()
public void setSelectedItem(Item selectedItem)
public void initializeTab() throws java.lang.Exception
initializeTab
in interface TabPane
java.lang.Exception
public java.net.URL getIconURL(java.lang.String iconname, java.lang.String extension)
iconname
- extension
- public java.util.List<DragAndDropPanel> getReportItemPanels()
protected void redrawView()
protected void addDeleteButton(javax.swing.JToolBar toolBar, Item associtem, DragAndDropPanel panel)
toolBar
- associtem
- panel
- protected DeleteItemButton makeDeleteButton(java.lang.String imageName, java.lang.String actionCommand, Item associtem, DragAndDropPanel panel, java.lang.String toolTipText, java.lang.String altText)
imageName
- associtem
- panel
- toolTipText
- altText
- protected DeleteItemButton makeDynamicItemDeleteButton(java.lang.String imageName, java.lang.String actionCommand, Item associtem, java.lang.String toolTipText, java.lang.String altText)
imageName
- associtem
- toolTipText
- altText
- public static boolean isWindows()
public static boolean isMac()
public static boolean isUnix()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public DragAndDropPanel renderStaticReportItem(Item tmpItem)
tmpItem
- public DragAndDropPanel createStaticReportItemView(Item tmpItem, DragAndDropPanel columnPanel)
Item
- tmpItemDragAndDropPanel
- columnPanelpublic static java.awt.datatransfer.DataFlavor getDragAndDropPanelDataFlavor() throws java.lang.Exception
java.lang.Exception
public void addItemToLayout(Item item)
item
- public void deleteItemFromLayout(Item item)
item
- public void arrangePanels(DragAndDropPanel columnPanel, int dropYLoc)
columnPanel
- dropYLoc
- public DragAndDropPanel renderTextPanel(DragAndDropPanel columnPanel, javax.swing.JLabel staticreportItemLabel, javax.swing.JRadioButton staticreportItemButton, java.lang.String strtoken)
columnPanel
- staticreprotItemLabel
- staticreportItemButton
- strtoken
- public DragAndDropPanel renderHRPanel(DragAndDropPanel columnPanel, javax.swing.JLabel staticreportItemLabel, javax.swing.JRadioButton staticreportItemButton)
columnPanel
- staticreprotItemLabel
- staticreportItemButton
- public DragAndDropPanel renderSectionPanel(DragAndDropPanel dragAndDropPanel, javax.swing.JLabel staticreportItemLabel, javax.swing.JRadioButton staticreportItemButton, java.lang.String strtoken)
dragAndDropPanel
- staticreprotItemLabel
- staticreportItemButton
- strtoken
- public DragAndDropPanel renderImagePanel(Item tmpItem, DragAndDropPanel dragAndDropPanel, javax.swing.JLabel staticreportItemLabel, javax.swing.JRadioButton staticreportItemButton)
dragAndDropPanel
- staticreprotItemLabel
- staticreportItemButton
- public void deletePanel(DragAndDropPanel deletedPanel, int deletedYLoc)
deletedPanel
- deletedYLoc
- public DragAndDropPanel getPrevSelectedPanel(java.util.List<DragAndDropPanel> reportpanelslist)
List
- reportpanelslistpublic DragAndDropPanel getSelectedPanel(java.util.List<DragAndDropPanel> reportpanelslist)
List
- reportpanelslistpublic void setPrevPanel(DragAndDropPanel prevpanel)
public void setPrevSelectedItem(Item prevItem)
public Item getPrevSelectedItem()
public void setCurrPanel(DragAndDropPanel currpanel)
public void setCurrSelectedItem(Item currItem)
public Item getCurrSelectedItem()
public DragAndDropPanel getPrevPanel()
public void dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
dragEnter
in interface java.awt.dnd.DropTargetListener
public void dragExit(java.awt.dnd.DropTargetEvent dte)
dragExit
in interface java.awt.dnd.DropTargetListener
public void dragOver(java.awt.dnd.DropTargetDragEvent dtde)
dragOver
in interface java.awt.dnd.DropTargetListener
public void drop(java.awt.dnd.DropTargetDropEvent dtde)
drop
in interface java.awt.dnd.DropTargetListener
public void dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde)
dropActionChanged
in interface java.awt.dnd.DropTargetListener
public DragAndDropPanel renderDynamicReportItem(Item tmpItem)
tmpItem
- public java.lang.String getTabName()
getTabName
in interface TabPane
public void setParentFrame(TableauFrame parent)
setParentFrame
in interface TabPane
public TableauFrame getParentFrame()
getParentFrame
in interface TabPane
public void handleStateChange(StateChangeEvent event)
StateChangeListener
handleStateChange
in interface StateChangeListener
event
- the StateChangeEvent indicating what state changedpublic void showRun(StateChangeEvent event, NamedObj reference)
event
- reference
- public int showDiscardWarning(java.lang.String message)
public ReportLayout lookupReportLayout(java.lang.Integer execId) throws java.lang.Exception
java.lang.Exception
public void windowGainedFocus(java.awt.event.WindowEvent e)
windowGainedFocus
in interface java.awt.event.WindowFocusListener
public void windowLostFocus(java.awt.event.WindowEvent e)
windowLostFocus
in interface java.awt.event.WindowFocusListener