Class DReport
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.kopi.vkopi.lib.ui.swing.visual.DWindow
org.kopi.vkopi.lib.ui.swing.report.DReport
- All Implemented Interfaces:
ImageObserver,MenuContainer,Serializable,EventListener,Accessible,TableCellRenderer,org.kopi.galite.visual.base.UComponent,org.kopi.galite.visual.FileProductionListener,org.kopi.galite.visual.ModelCloseListener,org.kopi.galite.visual.ProgressDialogListener,org.kopi.galite.visual.report.ReportListener,org.kopi.galite.visual.report.UReport,org.kopi.galite.visual.UWindow,org.kopi.galite.visual.VActionListener,org.kopi.galite.visual.WaitDialogListener,org.kopi.galite.visual.WaitInfoListener
public class DReport
extends DWindow
implements org.kopi.galite.visual.report.UReport, TableCellRenderer
This is the display class of a report.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.kopi.vkopi.lib.ui.swing.visual.DWindow
DWindow.DUndoableEditListener, DWindow.RedoAction, DWindow.UndoActionNested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanelNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategyNested classes/interfaces inherited from interface org.kopi.galite.visual.report.UReport
org.kopi.galite.visual.report.UReport.UTable -
Field Summary
FieldsFields inherited from class org.kopi.vkopi.lib.ui.swing.visual.DWindow
focusManager, ICN_ASK, ICN_ERROR, ICN_NOTICE, ICN_WAIT, ICN_WARNING, redoAction, runtimeDebugInfo, undoActionFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionDReport(org.kopi.galite.visual.report.VReport report) Constructs a new report view -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddColumn(int position) voidbuild()runvoidcolumnMoved(int[] pos) voidintReturns the number of columns displayed in the tableint[]Return the new columns orderorg.kopi.galite.visual.report.PointReturns the coordinate of the selected cell The index of the column is relative to the modelintReturns the selected column The index of the column is relative to the modelstatic intorg.kopi.galite.visual.report.UReport.UTablegetTable()getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) Returns the right cell componentvoidvoidremoveColumn(int position) voidreorder(int[] newOrder) Reodervoidvoidrun()start a block and enter in the good field (rec)voidrun(boolean visible) start a block and enter in the good field (rec)voidsetColumnLabel(int column, String label) voidSets the title of the reportMethods inherited from class org.kopi.vkopi.lib.ui.swing.visual.DWindow
askPostition, askUser, askUserImpl, close, close, closeWindow, createEditMenu, createFrame, displayError, displayError, displayNotice, displayNotice, displayWarning, dispose, fileProduced, getActionByName, getContentPanel, getDMenuBar, getFrame, getInAction, getModel, getRedoAction, getReturnCode, getUndoableEditListener, getUndoAction, getUndoManager, modelClosed, openURL, performAction, performAsyncAction, performBasicAction, release, reportError, setCurrentJob, setInformationText, setModel, setProgressDialog, setStatePanel, setStatisticsText, setTotalJobs, setUndoManager, setVisible, setWaitDialog, setWaitInfo, setWindowFocusEnabled, showOptionDialog, unsetProgressDialog, unsetWaitDialog, unsetWaitInfo, updateWaitDialogMessage, verifyNotInTransactionMethods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods inherited from class javax.swing.JComponent
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, unregisterKeyboardAction, updateMethods inherited from class java.awt.Container
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, validateTreeMethods inherited from class java.awt.Component
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, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.kopi.galite.visual.FileProductionListener
fileProducedMethods inherited from interface org.kopi.galite.visual.ModelCloseListener
dispose, modelClosedMethods inherited from interface org.kopi.galite.visual.ProgressDialogListener
setProgressDialog, unsetProgressDialogMethods inherited from interface org.kopi.galite.visual.base.UComponent
isEnabled, isVisible, setEnabled, setVisibleMethods inherited from interface org.kopi.galite.visual.UWindow
closeWindow, getModel, openURL, performBasicAction, setCurrentJob, setInformationText, setTotalJobs, setWindowFocusEnabled, updateWaitDialogMessageMethods inherited from interface org.kopi.galite.visual.VActionListener
performAsyncActionMethods inherited from interface org.kopi.galite.visual.WaitDialogListener
setWaitDialog, unsetWaitDialogMethods inherited from interface org.kopi.galite.visual.WaitInfoListener
setWaitInfo, unsetWaitInfo
-
Field Details
-
interCellSpacing
-
-
Constructor Details
-
DReport
public DReport(org.kopi.galite.visual.report.VReport report) Constructs a new report view- Parameters:
report- the report model
-
-
Method Details
-
setColumnLabel
- Specified by:
setColumnLabelin interfaceorg.kopi.galite.visual.report.UReport
-
removeColumn
public void removeColumn(int position) - Specified by:
removeColumnin interfaceorg.kopi.galite.visual.report.UReport
-
addColumn
public void addColumn(int position) - Specified by:
addColumnin interfaceorg.kopi.galite.visual.report.UReport
-
addColumn
public void addColumn()- Specified by:
addColumnin interfaceorg.kopi.galite.visual.report.UReport
-
getTable
public org.kopi.galite.visual.report.UReport.UTable getTable()- Specified by:
getTablein interfaceorg.kopi.galite.visual.report.UReport
-
columnMoved
public void columnMoved(int[] pos) - Specified by:
columnMovedin interfaceorg.kopi.galite.visual.report.UReport
-
contentChanged
public void contentChanged()- Specified by:
contentChangedin interfaceorg.kopi.galite.visual.report.ReportListener
-
build
public void build()run -
resetWidth
public void resetWidth()- Specified by:
resetWidthin interfaceorg.kopi.galite.visual.report.UReport
-
redisplay
public void redisplay()- Specified by:
redisplayin interfaceorg.kopi.galite.visual.report.UReport
-
getDisplayOrder
public int[] getDisplayOrder()Return the new columns order -
setTitle
Sets the title of the report -
reorder
public void reorder(int[] newOrder) Reoder -
getColumnCount
public int getColumnCount()Returns the number of columns displayed in the table- Returns:
- the number or columns displayed
-
run
public void run(boolean visible) throws org.kopi.galite.visual.VException start a block and enter in the good field (rec)- Throws:
org.kopi.galite.visual.VException- may be raised by triggers
-
run
public void run() throws org.kopi.galite.visual.VExceptionstart a block and enter in the good field (rec) -
getSelectedColumn
public int getSelectedColumn()Returns the selected column The index of the column is relative to the model- Specified by:
getSelectedColumnin interfaceorg.kopi.galite.visual.report.UReport
-
getSelectedCell
public org.kopi.galite.visual.report.Point getSelectedCell()Returns the coordinate of the selected cell The index of the column is relative to the model- Specified by:
getSelectedCellin interfaceorg.kopi.galite.visual.report.UReport
-
getState
-
getTableCellRendererComponent
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) Returns the right cell component- Specified by:
getTableCellRendererComponentin interfaceTableCellRenderer
-