Panel |
---|
| Expand |
---|
title | .getSelectedColumns() |
---|
| none |
Expand |
---|
title | .print([fitWidth] [, headerFormat] [, footerFormat] [, showDialog] [, landscape]) |
---|
| This specialized print function will paginate the table onto multiple pages.This function accepts keyword-style invocation. boolean fitWidth - If true, the table's width will be stretched to fit across one page's width. Rows will still paginate normally. If false, the table will paginate columns onto extra pages. (default = true) [optional] String headerFormat - A string to use as the table's page header. The substring "{0}" will be replaced with the current page number. (default = None) [optional] String footerFormat - A string to use as the table's page footer. The substring "{0}" will be replaced with the current page number. (default = "Page {0}") [optional] boolean showDialog - Used to determine if the print dialog should be shown to the user. Default is true. [optional] boolean landscape - Used to specify portrait (0) or landscape (1) mode. Default is portrait (0). [optional] |
Expand |
---|
title | .setColumnWidth(column, width) |
---|
| int column - Column to adjust. int width - Width in pixels. |
|
Panel |
---|
| Expand |
---|
| Component self - A reference to the component that is invoking this function. Object value - The value in the dataset at this cell. string textValue - The text the table expects to display at this cell (may be overriden by including 'text' attribute returned in dictionary). boolean selected - A boolean indicating whether this cell is currently selected. int rowIndex - The index of the row in the underlying dataset int colIndex - The index of the column in the underlying dataset string colName - The name of the column in the underlying dataset int rowView - The index of the row, as it appears in the table view (affected by sorting) int colView - The index of the column, as it appears in the table view (affected by column re-arranging and hiding) |
Expand |
---|
| Code Block |
---|
| return {'options': [(0, 'Option A'), (1, 'Option B')], 'rowHeight':100} |
Component self - A reference to the component that is invoking this function int colIndex - The index of the column in the underlying dataset string colName - The name of the column in the underlying dataset |
Expand |
---|
title | configureHeaderStyle |
---|
| Component self - A reference to the component that is invoking this function int colIndex - The index of the column in the underlying dataset string colName - The name of the column in the underlying dataset |
Expand |
---|
| Component self - A reference to the component that is invoking this function |
Expand |
---|
| Component self - A reference to the component that is invoking this function. int rowIndex - Index of the row that was edited, relative to the underlying dataset. int colIndex - Index of the column that was edited, relative to the underlying dataset. string colName - Name of the column in the underlying dataset. Object value - The value at the cell location. |
Expand |
---|
| Note |
---|
If the script on this extension function causes the Power Table to lose focus, the cell commit will occur twice. For example, if system.gui.confirm() is called, then two confirmation boxes will appear. In cases where the script will cause the focus to switch between multiple objects, the script should be placed in a function, and wrapped in a call to system.util.invokeLater()
Code Block |
---|
def myFunction():
"""
Do your work here
"""
system.gui.messageBox("Assuming you don't change focus outside of this script\nYou will only see this message once per cell edit")
system.util.invokeLater(myFunction) |
|
Component self - A reference to the component that is invoking this function. int rowIndex - Index of the row that was edited, relative to the underlying dataset. int colIndex - Index of the column that was edited, relative to the underlying dataset. string colName - Name of the column in the underlying dataset. Object oldValue - The old value at the location, before it was edited. Object newValue - The new value input by the user. |
Expand |
---|
| Component self - A reference to the component that is invoking this function. int rowIndex - Index of the row, starting at 0, relative to the underlying dataset. int colIndex - Index of the column starting at 0, relative to the underlying dataset. Object value - The value at the location clicked on. MouseEvent event - The MouseEvent object that caused this pressed event. |
Expand |
---|
| Component self - A reference to the component that is invoking this function. int rowIndex - Index of the row, starting at 0, relative to the underlying dataset. int colIndex - Index of the column starting at 0, relative to the underlying dataset. Object value - The value at the location that the mouse is released on. MouseEvent event - The MouseEvent object that caused this released event. |
Expand |
---|
| Component self - A reference to the component that is invoking this function. int rowIndex - Index of the row, starting at 0, relative to the underlying dataset. int colIndex - Index of the column starting at 0, relative to the underlying dataset. Object value - The value at the location clicked on. MouseEvent event - The MouseEvent object that caused this click event. |
Expand |
---|
| Component self - A reference to the component that is invoking this function. int rowIndex - Index of the row, starting at 0, relative to the underlying dataset. int colIndex - Index of the column starting at 0, relative to the underlying dataset. Object value - The value at the location clicked on. MouseEvent event - The MouseEvent object that caused this double-click event. |
Expand |
---|
| Component self - A reference to the component that is invoking this function. int rowIndex - Index of the row, starting at 0, relative to the underlying dataset. int colIndex - Index of the column starting at 0, relative to the underlying dataset. string colName - Name of the column in the underlying dataset. Object value - The value at the location clicked on. MouseEvent event - The MouseEvent object that caused this double-click event. |
Expand |
---|
| Component self - A reference to the component that is invoking this function Component sourceTable - A reference to the table that the rows were dragged and dropped in the same table. list rows - An array of the rows indices that were dragged, in the order they were selected Dataset rowData - A dataset containing the rows that were dragged int dropIndexLocation - Row index where the rows were dropped |
|
Panel |
---|
| Expand |
---|
| Expand |
---|
| This event signifies a mouse click on the source component. A mouse click the combination of a mouse press and a mouse release, both of which must have occurred over the source component. Note that this event fires after the pressed and released events have fired. .source | The component that fired this event | .button | The code for the button that caused this event to fire. | .clickCount | The number of mouse clicks associated with this event. | .x | The x-coordinate (with respect to the source component) of this mouse event. | .y | The y-coordinate (with respect to the source component) of this mouse event. | .popupTrigger | Returns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists. | .altDown | True (1) if the Alt key was held down during this event, false (0) otherwise. | .controlDown | True (1) if the Control key was held down during this event, false (0) otherwise. | .shiftDown | True (1) if the Shift key was held down during this event, false (0) otherwise. | |
Expand |
---|
| This event fires when the mouse enters the space over the source component. .source | The component that fired this event | .button | The code for the button that caused this event to fire. | .clickCount | The number of mouse clicks associated with this event. | .x | The x-coordinate (with respect to the source component) of this mouse event. | .y | The y-coordinate (with respect to the source component) of this mouse event. | .popupTrigger | Returns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists. | .altDown | True (1) if the Alt key was held down during this event, false (0) otherwise. | .controlDown | True (1) if the Control key was held down during this event, false (0) otherwise. | .shiftDown | True (1) if the Shift key was held down during this event, false (0) otherwise. | |
Expand |
---|
| This event fires when the mouse leaves the space over the source component. .source | The component that fired this event | .button | The code for the button that caused this event to fire. | .clickCount | The number of mouse clicks associated with this event. | .x | The x-coordinate (with respect to the source component) of this mouse event. | .y | The y-coordinate (with respect to the source component) of this mouse event. | .popupTrigger | Returns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists. | .altDown | True (1) if the Alt key was held down during this event, false (0) otherwise. | .controlDown | True (1) if the Control key was held down during this event, false (0) otherwise. | .shiftDown | True (1) if the Shift key was held down during this event, false (0) otherwise. |
|
Expand |
---|
| This event fires when a mouse button is pressed down on the source component. .source | The component that fired this event | .button | The code for the button that caused this event to fire. | .clickCount | The number of mouse clicks associated with this event. | .x | The x-coordinate (with respect to the source component) of this mouse event. | .y | The y-coordinate (with respect to the source component) of this mouse event. | .popupTrigger | Returns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists. | .altDown | True (1) if the Alt key was held down during this event, false (0) otherwise. | .controlDown | True (1) if the Control key was held down during this event, false (0) otherwise. | .shiftDown | True (1) if the Shift key was held down during this event, false (0) otherwise. | |
Expand |
---|
| This event fires when a mouse button is released, if that mouse button's press happened over this component. .source | The component that fired this event | .button | The code for the button that caused this event to fire. | .clickCount | The number of mouse clicks associated with this event. | .x | The x-coordinate (with respect to the source component) of this mouse event. | .y | The y-coordinate (with respect to the source component) of this mouse event. | .popupTrigger | Returns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists. | .altDown | True (1) if the Alt key was held down during this event, false (0) otherwise. | .controlDown | True (1) if the Control key was held down during this event, false (0) otherwise. | .shiftDown | True (1) if the Shift key was held down during this event, false (0) otherwise. | |
|
Expand |
---|
| Expand |
---|
| Fires when the mouse moves over a component after a button has been pushed. .source | The component that fired this event | .button | The code for the button that caused this event to fire. | .clickCount | The number of mouse clicks associated with this event. | .x | The x-coordinate (with respect to the source component) of this mouse event. | .y | The y-coordinate (with respect to the source component) of this mouse event. | .popupTrigger | Returns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists. | .altDown | True (1) if the Alt key was held down during this event, false (0) otherwise. | .controlDown | True (1) if the Control key was held down during this event, false (0) otherwise. | .shiftDown | True (1) if the Shift key was held down during this event, false (0) otherwise. | |
Expand |
---|
| Fires when the mouse moves over a component, but no buttons are pushed. .source | The component that fired this event | .button | The code for the button that caused this event to fire. | .clickCount | The number of mouse clicks associated with this event. | .x | The x-coordinate (with respect to the source component) of this mouse event. | .y | The y-coordinate (with respect to the source component) of this mouse event. | .popupTrigger | Returns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists. | .altDown | True (1) if the Alt key was held down during this event, false (0) otherwise. | .controlDown | True (1) if the Control key was held down during this event, false (0) otherwise. | .shiftDown | True (1) if the Shift key was held down during this event, false (0) otherwise. | |
|
Expand |
---|
| Expand |
---|
| Fires whenever a bindable property of the source component changes. This works for standard and custom (dynamic) properties. .source | The component that fired this event | .newValue | The new value that this property changed to. | .oldValue | The value that this property was before it changed. Note that not all components include an accurate oldValue in their events. | .propertyName | The name of the property that changed. Note |
---|
Remember to always filter out these events for the property that you are looking for! Components often have many properties that change. |
|
|
|
|
|