|
||||||||||
| PREV CLASS Documentation homepage 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.JScrollPane
ilog.cpl.table.IlpTableView
public class IlpTableView
This class is the view part of the ILOG JTGO Table Component. It is a
JScrollPane that contains one JTable displaying
the contents of an IlpTableModel.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JScrollPane |
|---|
JScrollPane.AccessibleJScrollPane, JScrollPane.ScrollBar |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JScrollPane |
|---|
columnHeader, horizontalScrollBar, horizontalScrollBarPolicy, lowerLeft, lowerRight, rowHeader, upperLeft, upperRight, verticalScrollBar, verticalScrollBarPolicy, viewport |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, 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 ilog.cpl.css.IlpStylable |
|---|
UPDATE_ALL_MASK, UPDATE_COMPONENT_MASK, UPDATE_NONE_MASK, UPDATE_OBJECTS_MASK |
| Fields inherited from interface ilog.views.util.styling.IlvStylable |
|---|
APPLIED_RULE_MASK, BAD_CLASS_MASK, BAD_PROP_MASK, BAD_PROP_WITH_STACK_MASK, CREATED_MASK, DECL_MASK, DECL_VALUE_MASK, FAILED_CONVERSIONS_MASK, TIME_REPORT_MASK, WARNING_PROP_MASK |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
IlpTableView()
Constructs an IlpTableView object that is initialized with a
IlpTableListModel. |
|
IlpTableView(IlpTableModel model)
Constructs an IlpTableView object that is initialized with the
specified IlpTableModel. |
|
| Method Summary | |
|---|---|
void |
addPseudoClass(IlpObject bo,
IlpAttribute a,
String pseudo)
Adds a pseudoclass to the specified business object. |
void |
addPseudoClass(IlpRepresentationObject ro,
IlpAttribute a,
String pseudo)
Adds a pseudoclass to the specified representation object. |
void |
changeSelection(int rowIndex,
int columnIndex,
boolean toggle,
boolean extend)
Updates the selection model of the table, according to the state of the flags toggle and extend. |
int |
convertColumnIndexToModel(int viewColumnIndex)
Maps the index of the column in the view at viewColumnIndex to the index of the column in the table model. |
int |
convertColumnIndexToView(int modelColumnIndex)
Maps the index of the column in the table model at modelColumnIndex to the index of the column in the view. |
protected ilog.cpl.table.css.internal.IlpTableViewCSSContext |
createViewCSSContext()
Creates the context information that will provide Cascading Style Sheets support for this graphic view. |
protected ilog.cpl.table.internal.IlpTableViewSupportContext |
createViewSupportContext()
Return an appropriate IlpTableViewSupportContext for this view. |
boolean |
ensureVisible(IlpObject object)
Scrolls the view in such a way that a given object becomes visible. |
boolean |
ensureVisible(IlpRepresentationObject ro)
Scrolls the view in such a way that a given representation object becomes visible. |
IlpAttribute |
getAttribute(IlpPoint viewLocation)
Returns the IlpAttribute at the given position in
this object. |
IlpTableResizeMode |
getAutoResizeMode()
Retrieves the auto-resize mode of the table. |
Color |
getBackground()
Gets the background color of this component. |
IlpClass |
getBusinessObjectClass()
Returns the IlpClass of representation objects the table must
contain or null if there is no IlpClass. |
IlpAttribute |
getColumn(int columnIndex)
Returns the IlpAttribute corresponding to the specified column
index. |
IlpAttribute |
getColumn(String attributeName)
Returns the attribute whose name is attributeName or
null if this attribute is not managed by the table model. |
int |
getColumnCount()
Retrieves the number of visible columns in the table. |
int |
getColumnIndex(IlpAttribute attribute)
Returns the column index of the specified attribute. |
int |
getColumnIndexAtX(int xPosition)
Returns the index of the column that lies at position xPosition, or -1 if no column covers this point. |
String |
getColumnLabel(IlpAttribute attribute)
Retrieves the label displayed in the header for the table model column specified by attribute. |
int |
getColumnMargin()
Returns the amount of empty space between cells in adjacent columns. |
IlpTableColumnModel |
getColumnModel()
Returns the column model used to manage the column properties in the table: size, order, visibility, and so on. |
Container |
getContainer()
Returns the concrete container where the graphics are currently being displayed. |
IlpContext |
getContext()
Returns the application context. |
IlpGraphicController |
getController()
Returns the IlpGraphicController used by the table. |
IlpTableCellRenderer |
getDefaultRenderer()
Retrieves the default renderer used by the table. |
String |
getDisplayValue(IlpTableRow row,
IlpAttribute column)
Returns the string displayed at the intersection of row and column. |
String |
getDisplayValueAt(int row,
int column)
Returns the string displayed at the intersection of row and column. |
int |
getFixedColumnCount()
Retrieves the number of fixed columns in the table. |
IlpGraphic |
getGraphic(IlpPoint viewLocation)
Returns the IlpGraphic object at the given position in this object. |
Class |
getGraphicComponentClass()
Returns the graphic component class supported by this implementation of graphic view. |
IlpGraphicHolder |
getGraphicHolder()
Returns the IlpGraphicHolder used by the table. |
Color |
getGridColor()
Returns the color used to draw grid lines to gridColor and redisplays. |
IlpTableHeaderRenderer |
getHeaderRenderer()
Retrieves the header renderer used by the table. |
IlpTableModel |
getIlpModel()
Returns the table model associated with the IlpTableView object. |
IlpGraphic |
getInnermostGraphic(IlpPoint viewLocation)
Returns the innermost graphic at the given position in this object. |
IlpTableModel |
getModel()
Returns the table model associated with the IlpTableView
object. |
List |
getPseudoClasses(IlpRepresentationObject ro,
IlpAttribute a)
Returns the custom pseudoclasses currently active for the object. |
IlpRepresentationObject |
getRepresentationObject(IlpPoint viewLocation)
Returns the IlpRepresentationObject object at the given position
in this object. |
IlpRepresentationObjectMapper |
getRepresentationObjectMapper()
Returns the object mapper. |
IlpRepresentationObjectSelectionModel |
getRepresentationObjectSelectionModel()
Returns the IlpRepresentationObjectSelectionModel
used to handle the selection of representation objects. |
IlpTableRow |
getRow(int rowIndex)
Returns the IlpTableRow corresponding to the specified row index. |
int |
getRowCount()
Retrieves the number of rows in the table. |
int |
getRowHeight()
Returns the height of a table row, in pixels. |
int |
getRowMargin()
Returns the amount of empty space between cells in adjacent rows. |
IlpTableSelectionMode |
getSelectionMode()
Returns the selection mode. |
IlpTableSelectionModel |
getSelectionModel()
Retrieves the IlpTableSelectionModel object that is used to handle
the selection state. |
boolean |
getShowGrid()
Returns whether the table draws grid lines around cells. |
boolean |
getShowHorizontalLines()
Returns whether the table draws horizontal lines between cells. |
boolean |
getShowVerticalLines()
Returns whether the table draws vertical lines between cells. |
IlpStyle |
getStyle()
Deprecated. The Style API has been replaced by the Cascading Style Sheet mechanism. |
IlpGraphicViewStyleManager |
getStyleManager()
Deprecated. The Style API has been replaced by the Cascading Style Sheet mechanism. Please use the method setStyleSheets
or getStyleSheets instead. |
int |
getStyleSheetDebugMask()
Returns the current debug level. |
String[] |
getStyleSheets()
Returns the cascaded style sheets. |
String |
getStyleSheets(int index)
Returns one of the cascading style sheets. |
ilog.cpl.table.internal.IlpTableViewSupport |
getTableViewSupport()
Returns the internal table view implementation. |
ilog.cpl.graphic.css.internal.IlpViewCSSContext |
getViewCSSContext()
Returns the context information that provides Cascading Style Sheets support for this graphic view. |
boolean |
hasStyleSheets()
Returns true if style sheets have been defined to this view. |
void |
invalidate()
|
void |
invalidate(IlpRepresentationObject ro)
Invalidates the graphic representation of the given object. |
void |
invalidateGraphics()
Invalidates all the graphic representations in this view. |
boolean |
isCellSelected(int row,
int column)
Returns whether the cell at the specified position is selected. |
boolean |
isColumnFixed(IlpAttribute attribute)
Specifies whether the column is fixed. |
boolean |
isColumnVisible(IlpAttribute attribute)
Specifies whether the column is visible. |
boolean |
isReorderingAllowed()
Returns true if the user can rearrange column order by
dragging their headers. |
boolean |
occuredInHeader(MouseEvent e)
Returns true if the given mouse event occurred in the header
of the table. |
void |
removePseudoClass(IlpObject bo,
IlpAttribute a,
String pseudo)
Removes a pseudoclass from the specified business object. |
void |
removePseudoClass(IlpRepresentationObject ro,
IlpAttribute a,
String pseudo)
Removes a pseudoclass from the specified representation object. |
void |
repaintHeader()
Repaints the header of the table. |
void |
representationObjectsAdded(AdapterEvent e)
Called when objects have been added to the adapter. |
void |
representationObjectsRemoved(AdapterEvent e)
Called when objects have been removed from the adapter. |
void |
scrollRectToVisible(int row,
int column,
boolean includeSpacing)
Scrolls the table so that the given row and column become visible. |
IlpCellCoordinates |
searchValue(String value,
IlpCellCoordinates startingCell,
boolean scanRowByRow,
boolean caseMatching)
Searches the specified string in the values displayed by the table. |
void |
selectAll()
Selects all the visible cells. |
void |
setAutoResizeMode(IlpTableResizeMode mode)
Sets the auto-resize mode of the table. |
void |
setBackground(Color bg)
Sets the background color of this component. |
void |
setColumnIndex(IlpAttribute attribute,
int index)
Moves the column of the specified attribute to the specified index. |
void |
setColumnMargin(int colMargin)
Sets the amount of empty space between cells in adjacent columns. |
void |
setColumnVisible(IlpAttribute attribute,
boolean visible)
Sets whether the specified column should be visible. |
void |
setController(IlpGraphicController controller)
Sets the IlpGraphicController instance used by the table. |
void |
setDefaultRenderer(IlpTableCellRenderer defaultRenderer)
Sets the default renderer used by the table. |
void |
setEnabled(boolean enabled)
Sets whether or not this component is enabled. |
void |
setFixedColumnCount(int nbColsToFix)
Sets the number of fixed columns in the table. |
void |
setGraphicHolder(IlpGraphicHolder holder)
Sets the IlpGraphicHolder used by the table. |
void |
setGridColor(Color v)
Sets the color used to draw grid lines to gridColor and redisplays. |
void |
setHeaderRenderer(IlpTableHeaderRenderer headerRenderer)
Sets the header renderer used by the table. |
void |
setModel(IlpTableModel model)
Sets the table model to be associated with this IlpTableView object. |
void |
setReorderingAllowed(boolean reorderingAllowed)
Specifies whether the user can reorder columns in the table by dragging their headers. |
void |
setRepresentationObjectMapper(IlpRepresentationObjectMapper mapper)
Sets the object mapper |
void |
setRowHeight(int height)
Sets the height, in pixels, of all cells to rowHeight,
The height of the cells in this row will be equal to the row height minus
the row margin. |
void |
setRowMargin(int rowMargin)
Sets the amount of empty space between cells in adjacent rows. |
void |
setSelectionMode(IlpTableSelectionMode selectionMode)
Sets the selection mode. |
void |
setSelectionModel(IlpTableSelectionModel newModel)
Sets a new selection model for this table and adds a selection listener to this model. |
void |
setShowGrid(boolean v)
Sets whether the table draws grid lines around cells. |
void |
setShowHorizontalLines(boolean showHorizontalLines)
Sets whether the table draws horizontal lines between cells. |
void |
setShowVerticalLines(boolean showVerticalLines)
Sets whether the table draws vertical lines between cells. |
void |
setStyleManager(IlpGraphicViewStyleManager manager)
Deprecated. The Style API has been replaced by the Cascading Style Sheet mechanism. Please use the method setStyleSheets
or getStyleSheets instead. |
void |
setStyleSheetDebugMask(int mask)
Sets the debug level while parsing the style sheets. |
void |
setStyleSheets(int index,
String css)
Changes one of the cascading style sheets. |
void |
setStyleSheets(int index,
String css,
int updateMask)
Changes one of the cascading style sheets. |
void |
setStyleSheets(String[] css)
Sets the cascading style sheets. |
void |
setStyleSheets(String[] css,
int updateMask)
Sets the cascading style sheets. |