|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.openswing.swing.pivottable.client.PivotTable
Title: OpenSwing Framework
Description: pivot table.
Copyright: Copyright (C) 2006 Mauro Carniel
This file is part of OpenSwing Framework. This library is free software; you can redistribute it and/or modify it under the terms of the (LGPL) Lesser General Public License as published by the Free Software Foundation; GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. The author may be contacted at: maurocarniel@tin.it
Nested Class Summary |
Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Field Summary | |
static java.lang.String |
COLUMNS_PANEL
|
static java.lang.String |
DATA_PANEL
|
static java.lang.String |
ROWS_PANEL
|
Fields inherited from class javax.swing.JComponent |
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
PivotTable()
|
Method Summary | |
void |
addColumnField(ColumnField columnField)
Add a column name as column field in Pivot Table. |
void |
addColumnField(int index,
ColumnField columnField)
Add a column name as column field in Pivot Table. |
void |
addDataField(DataField dataField)
Add a column name as data field in Pivot Table. |
void |
addDataField(int index,
DataField dataField)
Add a column name as data field in Pivot Table. |
void |
addNotify()
Method automatically invoked when this panel is showed. |
void |
addRowField(int index,
RowField rowField)
Add a column name as row field in Pivot Table. |
void |
addRowField(RowField rowField)
Add a column name as row field in Pivot Table. |
void |
collapseColumn(int column)
Collapse all column fields, starting from the specified column index. |
void |
collapseRow(int row)
Collapse all rows fields, starting from the specified row index. |
void |
compileData()
Method invoked to re-analyze data model and show data in Pivot Table. |
void |
compileDataInThread()
Method invoked to re-analyze data model and show data in Pivot Table. |
void |
copy()
Method called when used has clicked on copy button. |
void |
delete()
Method called when used has clicked on delete button. |
void |
dragEventFired(DraggableButtonEvent e)
|
void |
edit()
Method called when used has clicked on edit button. |
void |
expandColumn(int column)
Expand all column fields, starting from the specified column index. |
void |
expandRow(int row)
Expand all rows fields, starting from the specified row index. |
void |
export()
Invoked when pressing export button. |
void |
filterSort()
Invoked when pressing filter button. |
java.util.ArrayList |
getAllColumnFields()
|
java.util.ArrayList |
getAllDataFields()
|
java.util.ArrayList |
getAllRowFields()
|
java.util.HashSet |
getBindedButtons()
|
boolean |
getCurrentValue(GenericButton button)
|
DataFieldRenderer |
getDataFieldRenderer()
|
ExportButton |
getExportButton()
|
FilterButton |
getFilterButton()
|
java.lang.String |
getFunctionId()
|
PivotTableParameters |
getPivotTableParameters()
|
ReloadButton |
getReloadButton()
|
int |
getSelectedColumn()
|
int |
getSelectedRow()
|
void |
importData()
Method called when used has clicked on import button. |
void |
insert()
Method called when used has clicked on insert button. |
boolean |
isAutoCompile()
|
boolean |
isButtonDisabled(GenericButton button)
|
void |
reload()
Invoked when pressing reload button. |
void |
removeColumnField(ColumnField columnField)
Remove a column name as column field in Pivot Table. |
void |
removeDataField(DataField dataField)
Remove a column name as data field in Pivot Table. |
void |
removeRowField(RowField rowField)
Remove a column name as row field in Pivot Table. |
boolean |
save()
Method called when used has clicked on save button. |
void |
setAutoCompile(boolean autoCompile)
Set whether autocompile Pivot table when showing it. |
void |
setController(PivotTableController controller)
Set the controller used by PivotTable to retrieve the PivotTableModel |
void |
setCurrentValue(GenericButton button,
boolean currentValue)
Set current enabled value of button. |
void |
setDataFieldRenderer(DataFieldRenderer dataFieldRenderer)
Set the renderer used to set background/foreground color for each data field cell and related font. |
void |
setExportButton(ExportButton exportButton)
|
void |
setFilterButton(FilterButton filterButton)
|
void |
setFunctionId(java.lang.String functionId)
Set the functionId identifier, associated to the container |
void |
setInputFilter(InputFilter rowFilter)
Set the row filter, used to skip rows from original data model. |
void |
setReloadButton(ReloadButton reloadButton)
|
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String DATA_PANEL
public static final java.lang.String ROWS_PANEL
public static final java.lang.String COLUMNS_PANEL
Constructor Detail |
public PivotTable()
Method Detail |
public final void addNotify()
public final PivotTableParameters getPivotTableParameters()
public final void setController(PivotTableController controller)
controller
- controller used by PivotTable to retrieve the PivotTableModelpublic final void addRowField(RowField rowField)
rowField
- row fieldpublic final void addRowField(int index, RowField rowField)
index
- column index to use to insert row fieldrowField
- row fieldpublic final void removeRowField(RowField rowField)
rowField
- row fieldpublic final void addColumnField(ColumnField columnField)
columnField
- column fieldpublic final void addColumnField(int index, ColumnField columnField)
index
- column index to use to insert column fieldcolumnField
- column fieldpublic final void removeColumnField(ColumnField columnField)
columnField
- column fieldpublic final void addDataField(DataField dataField)
dataField
- data fieldpublic final void addDataField(int index, DataField dataField)
index
- column index to use to insert data fielddataField
- data fieldpublic final void removeDataField(DataField dataField)
dataField
- data fieldpublic final void compileDataInThread()
public final void dragEventFired(DraggableButtonEvent e)
dragEventFired
in interface DraggableButtonListener
public final void compileData()
public final void setInputFilter(InputFilter rowFilter)
rowFilter
- row filterpublic FilterButton getFilterButton()
public void setFilterButton(FilterButton filterButton)
public ExportButton getExportButton()
public void setExportButton(ExportButton exportButton)
public ReloadButton getReloadButton()
public void setReloadButton(ReloadButton reloadButton)
public final void copy()
DataController
copy
in interface DataController
public final void delete()
DataController
delete
in interface DataController
public final void edit()
DataController
edit
in interface DataController
public final void export()
export
in interface DataController
public final void filterSort()
filterSort
in interface DataController
public final java.util.HashSet getBindedButtons()
getBindedButtons
in interface DataController
public final void setCurrentValue(GenericButton button, boolean currentValue)
setCurrentValue
in interface DataController
button
- generic button that fires this eventcurrentValue
- current enabled valuepublic final boolean getCurrentValue(GenericButton button)
getCurrentValue
in interface DataController
button
- generic button
public final void setFunctionId(java.lang.String functionId)
functionId
- identifier associated to the containerpublic final java.lang.String getFunctionId()
getFunctionId
in interface DataController
public final void importData()
DataController
importData
in interface DataController
public final void insert()
DataController
insert
in interface DataController
public final boolean isButtonDisabled(GenericButton button)
isButtonDisabled
in interface DataController
button
- button whose abilitation must be checked
true
if no policy is defined in the form/grid for the specified button, false
if there exists a disabilitation policy for the specified button (through addButtonsNotEnabledOnState form/grid method)public final void reload()
reload
in interface DataController
public final boolean save()
DataController
save
in interface DataController
public final java.util.ArrayList getAllColumnFields()
public final java.util.ArrayList getAllDataFields()
public final java.util.ArrayList getAllRowFields()
public final boolean isAutoCompile()
public final void setAutoCompile(boolean autoCompile)
autoCompile
- flag used to autocompile Pivot table when showing itpublic final DataFieldRenderer getDataFieldRenderer()
public final void setDataFieldRenderer(DataFieldRenderer dataFieldRenderer)
dataFieldRenderer
- renderer used to set background/foreground color for each data field cell and related fontpublic final void expandRow(int row)
row
- row index to expandpublic final void collapseRow(int row)
row
- row index to collapsepublic final void expandColumn(int column)
column
- column index to expandpublic final void collapseColumn(int column)
column
- column index to collapsepublic final int getSelectedRow()
public final int getSelectedColumn()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |