name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
framework_Table_addContainerProperty_rdh | /**
* Adds a new property to the table and show it as a visible column.
*
* @param propertyId
* the Id of the property
* @param type
* the class of the property
* @param defaultValue
* the default value given for all existing items
* @param columnHeader
* the Explicit header of the column. If explicit... | 3.26 |
framework_Table_setEnabled_rdh | // Identical to AbstractCompoenentContainer.setEnabled();
@Override
public void setEnabled(boolean enabled) {
super.setEnabled(enabled);
if ((getParent() != null) && (!getParent().isEnabled())) {
// some ancestor still disabled, don't update children
return;
} else {
m3();
}
} | 3.26 |
framework_Table_setConverter_rdh | /**
* Sets a converter for a property id.
* <p>
* The converter is used to format the the data for the given property id
* before displaying it in the table.
* </p>
*
* @param propertyId
* The propertyId to format using the converter
* @param converter
* The converter to use for the property id
*/
public... | 3.26 |
framework_Table_paintRowAttributes_rdh | /**
* A method where extended Table implementations may add their custom
* attributes for rows.
*
* @param target
* @param itemId
*/
protected void paintRowAttributes(PaintTarget target, Object itemId) throws PaintException {
} | 3.26 |
framework_Table_parseItemIdToCells_rdh | /**
* Update a cache array for a row, register any relevant listeners etc.
*
* This is an internal method extracted from
* {@link #getVisibleCellsNoCache(int, int, boolean)} and should be removed
* when the Table is rewritten.
*/
private void parseItemIdToCells(Object[][] cells, Object id, int i, int firstIndex,... | 3.26 |
framework_Table_setColumnExpandRatio_rdh | /**
* Sets the column expand ratio for given column.
* <p>
* Expand ratios can be defined to customize the way how excess space is
* divided among columns. Table can have excess space if it has its width
* defined and there is horizontally more space than columns consume
* naturally. Excess space is the space tha... | 3.26 |
framework_Table_setPageLength_rdh | /**
* Sets the page length.
*
* <p>
* Setting page length 0 disables paging. The page length defaults to 15.
* </p>
*
* <p>
* If Table has height set ({@link #setHeight(float, Unit)} ) the client
* side may update the page length automatically the correct value.
* </p>
*
* @param pageLength
* the length ... | 3.26 |
framework_Table_setEditable_rdh | /**
* Sets the editable property.
*
* If table is editable a editor of type Field is created for each table
* cell. The assigned FieldFactory is used to create the instances.
*
* To provide custom editors for table cells create a class implementing the
* FieldFactory interface, and assign it to table, and set th... | 3.26 |
framework_Table_setColumnWidth_rdh | /**
* Sets columns width (in pixels). Theme may not necessarily respect very
* small or very big values. Setting width to -1 (default) means that theme
* will make decision of width.
*
* <p>
* Column can either have a fixed width or expand ratio. The latter one set
* is used. See @link {@link #setColumnExpandRat... | 3.26 |
framework_Table_removeItem_rdh | /**
* Removes the Item identified by <code>ItemId</code> from the Container.
*
* @see Container#removeItem(Object)
*/
@Override
public boolean removeItem(Object itemId) {
final Object nextItemId = nextItemId(itemId);
final boolean ret = super.removeItem(itemId);
if ((ret && (itemId != null)) && itemI... | 3.26 |
framework_Table_addItemAfter_rdh | /**
* Adds new item after the given item.
*
* @see Container.Ordered#addItemAfter(java.lang.Object, java.lang.Object)
*/
@Override
public Item addItemAfter(Object previousItemId, Object newItemId) throws UnsupportedOperationException {
Item item = ((Container.Ordered) (items)).addItemAfter(previousItemId, newItemId... | 3.26 |
framework_Table_enableContentRefreshing_rdh | /**
* Go to mode where content content refreshing has effect.
*
* @param refreshContent
* true if content refresh needs to be done
*/
protected void enableContentRefreshing(boolean refreshContent) {
isContentRefreshesEnabled = true;
if (refreshContent) {
refreshRenderedCells();// Ensure that clie... | 3.26 |
framework_Table_getColumnFooter_rdh | /**
* Gets the footer caption beneath the rows.
*
* @param propertyId
* The propertyId of the column *
* @return The caption of the footer or NULL if not set
*/
public String getColumnFooter(Object propertyId) {
return columnFooters.get(propertyId);
} | 3.26 |
framework_Table_getItemIdsInRange_rdh | /**
* Gets items ids from a range of key values
*
* @param itemId
* The start key
* @param length
* amount of items to be retrieved
* @return */
private LinkedHashSet<Object> getItemIdsInRange(Object itemId, final int length) {
... | 3.26 |
framework_Table_setText_rdh | /**
* Pass one String if spanColumns is used, one String for each visible
* column otherwise.
*/
public void setText(String... text) {
if ((text == null) ||
((text.length == 1) && (text[0] == null))) {
text = new String[]{ "" };
}
this.text = text;
} | 3.26 |
framework_Table_setRowGenerator_rdh | /**
* Assigns a row generator to the table. The row generator will be able to
* replace rows in the table when it is rendered.
*
* @param generator
* the new row generator
*/
public void setRowGenerator(RowGenerator generator) {
rowGenerator = generator;
refreshRowCache();
} | 3.26 |
framework_Table_setColumnHeaderMode_rdh | /**
* Setter for property columnHeaderMode.
*
* @param columnHeaderMode
* the New value of property columnHeaderMode.
*/
public void setColumnHeaderMode(ColumnHeaderMode columnHeaderMode) {
if (columnHeaderMode == null) {
throw new IllegalArgumentException("Column header mode can not be null");
}
if (columnHead... | 3.26 |
framework_Table_setCurrentPageFirstItemId_rdh | /**
* Setter for property currentPageFirstItemId.
*
* @param currentPageFirstItemId
* the New value of property currentPageFirstItemId.
*/
public void setCurrentPageFirstItemId(Object currentPageFirstItemId) {
// Gets the corresponding index
int index = -1;
if (items instanceof Container.Indexed) {
index = index... | 3.26 |
framework_Table_addHeaderClickListener_rdh | /**
* Adds a header click listener which handles the click events when the user
* clicks on a column header cell in the Table.
* <p>
* The listener will receive events which contain information about which
* column was clicked and some details about the mouse event.
* </p>
*
* @param listener
* The handler w... | 3.26 |
framework_Table_containerPropertySetChange_rdh | /**
* Container datasource property set change. Table must flush its buffers on
* change.
*
* @see Container.PropertySetChangeListener#containerPropertySetChange(Container.PropertySetChangeEvent)
*/
@Override
public void containerPropertySetChange(Container.PropertySetChangeEvent event) {
if (isBeingPainted) {... | 3.26 |
framework_Table_setNewItemsAllowed_rdh | /**
* Adding new items is not supported.
*
* @throws UnsupportedOperationException
* if set to true.
* @see Select#setNewItemsAllowed(boolean)
*/
@Override
public void setNewItemsAllowed(boolean allowNewOptions) throws UnsupportedOperationException {
if (allowNewOptions) {throw new UnsupportedOperationExcep... | 3.26 |
framework_Table_resetVariablesAndPageBuffer_rdh | /**
* Resets and paints "to be painted next" variables. Also reset pageBuffer
*/
private void resetVariablesAndPageBuffer(PaintTarget target) throws PaintException {
reqFirstRowToPaint = -1;
reqRowsToPaint = -1;
containerChangeToBeRendered = false;
target.addVariable(this, "reqrows", reqRowsToPaint);
... | 3.26 |
framework_Table_getVisibleCellsInsertIntoCache_rdh | /**
*
* @param firstIndex
* The position where new rows should be inserted
* @param rows
* The maximum number of rows that should be inserted at position
* firstIndex. Less rows will be inserted if the page buffer is
* too small.
* @return */
private Object[][] getVisibleCellsInsertIntoCache(int first... | 3.26 |
framework_Table_formatPropertyValue_rdh | /**
* Formats table cell property values. By default the property.toString()
* and return a empty string for null properties.
*
* @param rowId
* the Id of the row (same as item Id).
* @param colId
* the Id of the column.
* @param property
* the Property to be formatted.
* @return the String representati... | 3.26 |
framework_Table_isColumnCollapsingAllowed_rdh | /**
* Checks if column collapsing is allowed.
*
* @return true if columns can be collapsed; false otherwise.
*/
public boolean isColumnCollapsingAllowed() {
return f1;
} | 3.26 |
framework_Table_getComponentIterator_rdh | /**
*
* @deprecated As of 7.0, use {@link #iterator()} instead.
*/
@Deprecated
public Iterator<Component> getComponentIterator() {
return iterator();
} | 3.26 |
framework_Table_getVisibleItemIds_rdh | /**
* Returns item identifiers of the items which are currently rendered on the
* client.
* <p>
* Note, that some due to historical reasons the name of the method is bit
* misleading. Some items may be partly or totally out of the viewport of
* the table's scrollable area. Actually detecting rows which can be
* ... | 3.26 |
framework_Table_setColumnIcon_rdh | /**
* Sets the icon Resource for the specified column.
* <p>
* Throws IllegalArgumentException if the specified column is not visible.
* </p>
*
* @param propertyId
* the propertyId identifying the column.
* @param icon
* the icon Resource to set.
*/
public void setColumnIcon(Object propertyId, Resource ... | 3.26 |
framework_Table_lastItemId_rdh | /**
* Gets the ID of the last Item in the Container.
*
* @see Container.Ordered#lastItemId()
*/
@Override
public Object lastItemId() {
return ((Container.Ordered) (items)).lastItemId();
} | 3.26 |
framework_Table_attach_rdh | /**
* Notifies the component that it is connected to an application.
*
* @see Component#attach()
*/
@Override
public void attach() {
super.attach();
refreshRenderedCells();
} | 3.26 |
framework_Table_removeActionHandler_rdh | /**
* Removes a previously registered action handler for the contents of this
* container.
*
* @see com.vaadin.event.Action.Container#removeActionHandler(Action.Handler)
*/
@Override
public void removeActionHandler(Action.Handler actionHandler) {
if ((actionHandlers != null) && actionHandlers.contains(actionHa... | 3.26 |
framework_Table_addFooterClickListener_rdh | /**
* Adds a footer click listener which handles the click events when the user
* clicks on a column footer cell in the Table.
* <p>
* The listener will receive events which contain information about which
* column was clicked and some details about the mouse event.
* </p>
*
* @param listener
* The handler w... | 3.26 |
framework_Table_isFooterVisible_rdh | /**
* Is the footer currently visible?
*
* @return Returns true if visible else false
*/
public boolean isFooterVisible() {
return columnFootersVisible;
} | 3.26 |
framework_Table_getCauses_rdh | /**
* Returns the cause(s) for this exception.
*
* @return the exception(s) which caused this exception
*/
public Throwable[] getCauses() {
return causes;
} | 3.26 |
framework_Table_unregisterComponent_rdh | /**
* This method cleans up a Component that has been generated when Table is
* in editable mode. The component needs to be detached from its parent and
* if it is a field, it needs to be detached from its property data source
* in order to allow garbage collection to take care of removing the unused
* component f... | 3.26 |
framework_Table_requestRepaint_rdh | /**
* Requests that the Table should be repainted as soon as possible.
*
* Note that a {@code Table} does not necessarily repaint its contents when
* this method has been called. See {@link #refreshRowCache()} for forcing
* an update of the contents.
*
* @deprecated As of 7.0, use {@link #markAsDirty()} instead
... | 3.26 |
framework_Table_markAsDirty_rdh | /**
* Requests that the Table should be repainted as soon as possible.
*
* Note that a {@code Table} does not necessarily repaint its contents when
* this method has been called. See {@link #refreshRowCache()} for forcing
* an update of the contents.
*/
@Override
public void markAsDirty() {
// Overridden only for... | 3.26 |
framework_Table_getColumnGenerator_rdh | /**
* Returns the ColumnGenerator used to generate the given column.
*
* @param columnId
* The id of the generated column
* @return The ColumnGenerator used for the given columnId or null.
*/
public ColumnGenerator getColumnGenerator(Object columnId) throws IllegalArgumentException
{return columnGenerators.get(... | 3.26 |
framework_Table_isColumnReorderingAllowed_rdh | /**
* Checks if column reordering is allowed.
*
* @return true if columns can be reordered; false otherwise.
*/
public boolean isColumnReorderingAllowed() {
return columnReorderingAllowed;
} | 3.26 |
framework_Table_containerItemSetChange_rdh | /**
* Container datasource item set change. Table must flush its buffers on
* change.
*
* @see Container.ItemSetChangeListener#containerItemSetChange(Container.ItemSetChangeEvent)
*/
@Override
public void containerItemSetChange(Container.ItemSetChangeEvent event) {
if (isBeingPainted) {
return;
}
... | 3.26 |
framework_Table_nextItemId_rdh | /**
* Gets the ID of the Item following the Item that corresponds to itemId.
*
* @see Container.Ordered#nextItemId(java.lang.Object)
*/
@Override
public Object nextItemId(Object itemId) {return ((Container.Ordered) (items)).nextItemId(itemId);
} | 3.26 |
framework_Table_setColumnCollapsingAllowed_rdh | /**
* Sets whether column collapsing is allowed or not.
*
* @param collapsingAllowed
* specifies whether column collapsing is allowed.
*/
public void setColumnCollapsingAllowed(boolean collapsingAllowed) {
f1 = collapsingAllowed;
if (!collapsingAllowed) {
collapsedColumns.clear();
}
// Assures the visual r... | 3.26 |
framework_Table_getPropertyValue_rdh | /**
* Gets the value of property.
*
* By default if the table is editable the fieldFactory is used to create
* editors for table cells. Otherwise formatPropertyValue is used to format
* the value representation.
*
* @param rowId
* the Id of the row (same as item Id).
* @param colId
* the Id of the column.... | 3.26 |
framework_Table_getCurrentWidth_rdh | /**
* Get the width in pixels of the column after the resize event.
*
* @return Width in pixels
*/
public int getCurrentWidth() {
return currentWidth;
} | 3.26 |
framework_Table_isSelectable_rdh | /**
* Returns whether table is selectable.
*
* <p>
* The table is not selectable until it's explicitly set as selectable or at
* least one {@link ValueChangeListener} is added.
* </p>
*
* @return whether table is selectable.
*/
public boolean isSelectable() {
if (selectable == null) {
return hasListeners(Valu... | 3.26 |
framework_Table_setSortDisabled_rdh | /**
* Disables the sorting by the user altogether.
*
* @param sortDisabled
* True if sorting is disabled.
* @deprecated As of 7.0, use {@link #setSortEnabled(boolean)} instead
*/
@Deprecated
public void setSortDisabled(boolean sortDisabled) {
setSortEnabled(!sortDisabled);
} | 3.26 |
framework_Table_detach_rdh | /**
* Notifies the component that it is detached from the application.
*
* @see Component#detach()
*/
@Override
public void detach() {
super.detach();
} | 3.26 |
framework_Table_prevItemId_rdh | /**
* Gets the ID of the Item preceding the Item that corresponds to the
* itemId.
*
* @see Container.Ordered#prevItemId(java.lang.Object)
*/
@Override
public Object prevItemId(Object itemId) {
return ((Container.Ordered) (items)).prevItemId(itemId);
} | 3.26 |
framework_Table_sort_rdh | /**
* Sorts the table by currently selected sorting column.
*
* @throws UnsupportedOperationException
* if the container data source does not implement
* Container.Sortable
*/
public void sort() {
if (getSortContainerPropertyId() == null) {
return;
}
sort(new Object[]{ sortContainerPropertyId }, new boolean[]... | 3.26 |
framework_Table_getCurrentPageFirstItemId_rdh | /**
* Getter for property currentPageFirstItem.
*
* @return the Value of property currentPageFirstItem.
*/
public Object getCurrentPageFirstItemId() {
// Prioritise index over id if indexes are supported
if (items instanceof Container.Indexed) {
final int index = getCurrentPageFirstItemIndex();
Object id = null;
i... | 3.26 |
framework_Table_isSortAscending_rdh | /**
* Is the table currently sorted in ascending order.
*
* @return <code>true</code> if ascending, <code>false</code> if descending.
*/
public boolean isSortAscending() {
return sortAscending;
} | 3.26 |
framework_Table_isSortDisabled_rdh | /**
* Is sorting disabled altogether.
*
* True if no sortable columns are given even in the case where data source
* would support this.
*
* @return True if sorting is disabled.
* @deprecated As of 7.0, use {@link #isSortEnabled()} instead
*/
@Deprecated
public boolean isSortDisabled() {
return !isSortEnabled()... | 3.26 |
framework_Table_isColumnCollapsed_rdh | /**
* Checks if the specified column is collapsed.
*
* @param propertyId
* the propertyID identifying the column.
* @return true if the column is collapsed; false otherwise;
*/
public boolean isColumnCollapsed(Object propertyId) {
return (collapsedColumns != null) && collapsedColumns.contains(propertyId);
} | 3.26 |
framework_Table_setColumnCollapsible_rdh | /**
* Sets whether the given column is collapsible. Note that collapsible
* columns can only be actually collapsed (via UI or with
* {@link #setColumnCollapsed(Object, boolean) setColumnCollapsed()}) if
* {@link #isColumnCollapsingAllowed()} is true. By default all columns are
* collapsible.
*
* @param propertyI... | 3.26 |
framework_Table_disableContentRefreshing_rdh | /**
* Go to mode where content updates are not done. This is due we want to
* bypass expensive content for some reason (like when we know we may have
* other content changes on their way).
*
* @return true if content refresh flag was enabled prior this call
... | 3.26 |
framework_Table_setMultiSelectTouchDetectionEnabled_rdh | /**
* Default behavior on touch-reporting devices is to switch from CTRL/SHIFT
* based multi-selection to simple mode, but you can use this method to
* explicitly disable the touch device detection. Thus you can keep using
* keyboard-based multi selection on hybrid devices that have both a touch
* screen and a key... | 3.26 |
framework_Table_isColumnCollapsible_rdh | /**
* Checks if the given column is collapsible. Note that even if this method
* returns <code>true</code>, the column can only be actually collapsed (via
* UI or with {@link #setColumnCollapsed(Object, boolean)
* setColumnCollapsed()}) if {@link #isColumnCollapsingAllowed()} is also
* true.
*
* @return true if ... | 3.26 |
framework_Table_getIdByIndex_rdh | /**
* Returns the item ID for the item represented by the index given. Assumes
* that the current container implements {@link Container.Indexed}.
*
* See {@link Container.Indexed#getIdByIndex(int)} for more information
* about the exceptions that can be thrown.
*
* @param index
* the index for which the item ... | 3.26 |
framework_Table_removeAllActionHandlers_rdh | /**
* Removes all action handlers.
*/public void removeAllActionHandlers() {
actionHandlers = null;
actionMapper = null;
// Assures the visual refresh. No need to reset the page buffer
// before as the content has not changed, only the action
// handlers.
refreshRenderedCells();
} | 3.26 |
framework_Table_setColumnReorderingAllowed_rdh | /**
* Sets whether column reordering is allowed or not.
*
* @param columnReorderingAllowed
* specifies whether column reordering is allowed.
*/
public void setColumnReorderingAllowed(boolean columnReorderingAllowed) {
if (columnReorderingAllowed != this.columnReorderingAllowed) {
this.columnReorderingAllowe... | 3.26 |
framework_Table_setTableFieldFactory_rdh | /**
* Sets the TableFieldFactory that is used to create editor for table cells.
*
* The TableFieldFactory is only used if the Table is editable. By default
* the DefaultFieldFactory is used.
*
* @param fieldFactory
* the field factory to set.
* @see #isEditable
* @see DefaultFieldFactory
*/
public void setT... | 3.26 |
framework_Table_isSortEnabled_rdh | /**
* Checks if sorting is enabled.
*
* @return true if sorting by the user is allowed, false otherwise
*/
public boolean isSortEnabled() {
return sortEnabled;
} | 3.26 |
framework_Table_unregisterPropertiesAndComponents_rdh | /**
* Helper method to remove listeners and maintain correct component
* hierarchy. Detaches properties and components if those are no more
* rendered in client.
*
* @param oldListenedProperties
* set of properties that where listened in last render
* @param oldVisibleComponents
* set of components that whe... | 3.26 |
framework_Table_getCurrentPageFirstItemIndex_rdh | /**
* Getter for property currentPageFirstItem.
*
* @return the Value of property currentPageFirstItem.
*/
public int getCurrentPageFirstItemIndex() {
return
currentPageFirstItemIndex;
} | 3.26 |
framework_Table_setMultiSelectMode_rdh | /**
* Sets the behavior of how the multi-select mode should behave when the
* table is both selectable and in multi-select mode.
* <p>
* Note, that on some clients the mode may not be respected. E.g. on touch
* based devices CTRL/SHIFT base selection method is invalid, so touch based
* browsers always use the {@l... | 3.26 |
framework_Table_getColumnIcons_rdh | /**
* Gets the icons of the columns.
*
* <p>
* The icons in headers match the property id:s given by the set visible
* column headers. The table must be set in either
* {@link #COLUMN_HEADER_MODE_EXPLICIT} or
* {@link #COLUMN_HEADER_MODE_EXPLICIT_DEFAULTS_ID} mode to show the headers
* with icons.
* </p>
*
*... | 3.26 |
framework_Table_setSpanColumns_rdh | /**
* If set to true, only one string will be rendered, spanning the entire
* row.
*
* @param spanColumns
*/
public void setSpanColumns(boolean spanColumns)
{
this.spanColumns = spanColumns;
} | 3.26 |
framework_Table_removeColumnReorderListener_rdh | /**
* Removes a column reorder listener from the Table.
*
* @param listener
* The listener to remove
*/
public void removeColumnReorderListener(ColumnReorderListener listener) {
removeListener(TableConstants.COLUMN_REORDER_EVENT_ID, Table.ColumnReorderEvent.class, listener);
}
/**
*
* @deprecated As of 7.0, r... | 3.26 |
framework_Table_addActionHandler_rdh | /* Action container */
/**
* Registers a new action handler for this container.
*
* @see com.vaadin.event.Action.Container#addActionHandler(Action.Handler)
*/
@Overridepublic void addActionHandler(Action.Handler actionHandler) {
if (actionHandler != null) {
if (actionHandlers == null) {
acti... | 3.26 |
framework_Table_setColumnHeaders_rdh | /**
* Sets the headers of the columns.
*
* <p>
* The headers match the property id:s given by the set visible column
* headers. The table must be set in either
* {@link #COLUMN_HEADER_MODE_EXPLICIT} or
* {@link #COLUMN_HEADER_MODE_EXPLICIT_DEFAULTS_ID} mode to show the
* head... | 3.26 |
framework_Table_isEditable_rdh | /**
* Is table editable.
*
* If table is editable a editor of type Field is created for each table
* cell. The assigned FieldFactory is used to create the instances.
*
* To provide custom editors for table cells create a class implementing the
* FieldFactory interface, and assign it to table, and set the editabl... | 3.26 |
framework_Table_setSortEnabled_rdh | /**
* Enables or disables sorting.
* <p>
* Setting this to false disallows sorting by the user. It is still possible
* to call {@link #sort()}.
* </p>
*
* @param sortEnabled
* true to allow the user to sort the table, false to disallow it
*/ public void setSortEnabled(boolean sortEnabled) {
if (this.sortEnab... | 3.26 |
framework_Table_removeAllItems_rdh | /**
* Removes all Items from the Container.
*
* @see Container#removeAllItems()
*/
@Override
public boolean removeAllItems() {
currentPageFirstItemId = null;
currentPageFirstItemIndex = 0;
return super.removeAllItems();
} | 3.26 |
framework_Table_setCurrentPageFirstItemIndex_rdh | /**
* Setter for property currentPageFirstItem.
*
* @param newIndex
* the New value of property currentPageFirstItem.
*/
public void setCurrentPageFirstItemIndex(int newIndex) {
setCurrentPageFirstItemIndex(newIndex, true);
} | 3.26 |
framework_Table_setCacheRate_rdh | /**
* This method adjusts a possible caching mechanism of table implementation.
*
* <p>
* Table component may fetch and render some rows outside visible area. With
* complex tables (for example containing layouts and components), the
* client side may become unresponsive. Setting the value lower, UI will
* becom... | 3.26 |
framework_Table_setColumnHeader_rdh | /**
* Sets the column header for the specified column.
*
* @param propertyId
* the propertyId identifying the column.
* @param header
* the header to set.
*/
public void setColumnHeader(Object propertyId, String header) {
if (header == null) {
columnHeaders.remove(propertyId);
} else
{
columnHeaders.... | 3.26 |
framework_Table_removeContainerProperty_rdh | /**
* Removes a Property specified by the given Property ID from the Container.
*
* @see Container#removeContainerProperty(Object)
*/
@Override
public boolean removeContainerProperty(Object propertyId) throws UnsupportedOperationException {
// If a visible property is removed, remove the corresponding column
... | 3.26 |
framework_Table_addColumnReorderListener_rdh | /**
* Adds a column reorder listener to the Table. A column reorder listener is
* called when a user reorders columns.
*
* @param listener
* The listener to attach to the Table
*/
public void addColumnReorderListener(ColumnReorderListener listener) {
addListener(TableConstants.COLUMN_REORDER_EVENT_ID, Table.Col... | 3.26 |
framework_Table_m1_rdh | /**
* Sets the column alignments.
*
* <p>
* The amount of items in the array must match the amount of properties
* identified by {@link #getVisibleColumns()}. The possible values for the
* alignments include:
* <ul>
* <li>{@link Align#LEFT}: Left alignment</li>
* <li>{@link Align#CENTER}: Centered</li>
* <li>... | 3.26 |
framework_Table_setColumnAlignment_rdh | /**
* Sets the specified column's alignment.
*
* <p>
* Throws IllegalArgumentException if the alignment is not one of the
* following: {@link Align#LEFT}, {@link Align#CENTER} or
* {@link Align#RIGHT}
* </p>
*
* @param propertyId
* the propertyID identifying the column.
* @param alignment
* the desired ... | 3.26 |
framework_Table_removeHeaderClickListener_rdh | /**
* Removes a header click listener.
*
* @param listener
* The listener to remove.
*/
public void removeHeaderClickListener(HeaderClickListener listener) {
removeListener(TableConstants.HEADER_CLICK_EVENT_ID, Table.HeaderClickEvent.class, listener);
}
/**
*
* @deprecated As of 7.0, replaced by
{@link #remov... | 3.26 |
framework_Table_getColumnWidth_rdh | /**
* Gets the pixel width of column.
*
* @param propertyId
* @return width of column or -1 when value not set
*/
public int getColumnWidth(Object propertyId) {
if (propertyId
== null) {
// Since propertyId is null, this is the row header. Use the magic
// id to retrieve the width of the ... | 3.26 |
framework_Table_getMultiSelectMode_rdh | /**
* Returns the select mode in which multi-select is used.
*
* @return The multi select mode
*/
public MultiSelectMode getMultiSelectMode() {
return multiSelectMode;
} | 3.26 |
framework_Table_getColumnHeader_rdh | /**
* Gets the header for the specified column.
*
* @param propertyId
* the propertyId identifying the column.
* @return the header for the specified column if it has one.
*/
public String getColumnHeader(Object propertyId) {
if (getColumnHeaderMode() == ColumnHeaderMode.HIDDEN) {
return null;
}String heade... | 3.26 |
framework_Table_unregisterComponentsAndPropertiesInRows_rdh | /**
*
* @param firstIx
* Index of the first row to process. Global index, not relative
* to page buffer.
* @param count
*/private void unregisterComponentsAndPropertiesInRows(int firstIx, int count) {
if (getLogger().isLoggable(Level.FINEST)) {
getLogger().log(Level.FINEST, "Unregistering components in ro... | 3.26 |
framework_Table_getVisibleCells_rdh | /**
* Gets the cached visible table contents.
*
* @return the cached visible table contents.
*/
private Object[][] getVisibleCells() {
if (pageBuffer == null) {
refreshRenderedCells();
}
return pageBuffer;
} | 3.26 |
framework_Table_getCellStyleGenerator_rdh | /**
* Get the current cell style generator.
*/
public CellStyleGenerator getCellStyleGenerator() {
return cellStyleGenerator;
} | 3.26 |
framework_Table_isFirstId_rdh | /**
* Tests if the Item corresponding to the given Item ID is the first Item in
* the Container.
*
* @see Container.Ordered#isFirstId(java.lang.Object)
*/
@Override
public boolean isFirstId(Object itemId) {
return ((Container.Ordered) (items)).isFirstId(itemId);
} | 3.26 |
framework_Table_getPageLength_rdh | /**
* Gets the page length.
*
* <p>
* Setting page length 0 disables paging.
* </p>
*
* @return the Length of one page.
*/
public int getPageLength() {
return pageLength;
} | 3.26 |
framework_Table_extractGeneratedValue_rdh | /**
* Extracts cell value from generated row
*
* @param generatedRow
* generated row
* @param index
* column index
* @param firstVisibleColumn
* whether the column is first visible column in the table (i.e. previous columns are hidden)
* @return cell value
*/
private Object extractGeneratedValue(Generat... | 3.26 |
framework_Table_setDragMode_rdh | /**
* Sets the drag start mode of the Table. Drag start mode controls how Table
* behaves as a drag source.
*
* @param newDragMode
*/
public void setDragMode(TableDragMode newDragMode) {
dragMode = newDragMode;
markAsDirty();
} | 3.26 |
framework_Table_setRowHeaderMode_rdh | /**
* Sets the row header mode.
* <p>
* The mode can be one of the following ones:
* <ul>
* <li>{@link #ROW_HEADER_MODE_HIDDEN}: The row captions are hidden.</li>
* <li>{@link #ROW_HEADER_MODE_ID}: Items Id-objects <code>toString()</code>
* is used as row caption.
* <li>{@link #ROW_HEADER_MODE_ITEM}: Item-objec... | 3.26 |
framework_Table_bindPropertyToField_rdh | /**
* Binds an item property to a field generated by TableFieldFactory. The
* default behavior is to bind property straight to Field. If
* Property.Viewer type property (e.g. PropertyFormatter) is already set for
* field, the property is bound to that Property.Viewer.
*
* @param rowId
* @param colId
* @param pr... | 3.26 |
framework_Table_handleClickEvent_rdh | /**
* Handles click event
*
* @param variables
*/
private void handleClickEvent(Map<String, Object> variables) {
// Item click event
if (variables.containsKey("clickEvent")) {
String key = ((String) (variables.get("clickedKey")));
Object itemId = itemIdMapper.get(key);
Object prop... | 3.26 |
framework_VCalendarPanel_getSelectKey_rdh | /**
* Returns the select key which selects the value. By default this is the
* enter key but it can be changed to whatever you like by overriding this
* method.
*
* @return */
protected int getSelectKey() {
return KeyCodes.KEY_ENTER;
} | 3.26 |
framework_VCalendarPanel_isShowISOWeekNumbers_rdh | /**
* Returns whether ISO 8601 week numbers should be shown in the value
* selector or not. ISO 8601 defines that a week always starts with a Monday
* so the week numbers are only shown if this is the case.
*
* @return true if week number should be shown, false otherwise
*/public boolean isShowISOWeekNumbers() {
... | 3.26 |
framework_VCalendarPanel_isAcceptedByRangeEnd_rdh | /**
* Accepts dates earlier than or equal to rangeStart, depending on the
* resolution. If the resolution is set to DAY, the range will compare on a
* day-basis. If the resolution is set to YEAR, only years are compared. So
* even if the range is set to one millisecond in next year, also next year
* will be includ... | 3.26 |
framework_VCalendarPanel_isDateInsideRange_rdh | /**
* Checks inclusively whether a date is inside a range of dates or not.
*
* @param date
* @return */private boolean isDateInsideRange(Date date, Resolution minResolution) {
assert date != null;
return isAcceptedByRangeEnd(date, minResolution) && isAcceptedByRangeStart(date, minResolution);
} | 3.26 |
framework_VCalendarPanel_m0_rdh | /**
* Notifies submit-listeners of a cancel event
*/
private void m0()
{
if (getSubmitListener() != null) {
getSubmitListener().onCancel();
}
} | 3.26 |
framework_VCalendarPanel_handleKeyPress_rdh | /**
* Handles the keypress from both the onKeyPress event and the onKeyDown
* event
*
* @param event
* The keydown/keypress event
*/
private void handleKeyPress(DomEvent<?> event) {
// Special handling for events from time ListBoxes.
if ((time != null) && time.getElement().isOrHasChild(((Node) (event.getNativeE... | 3.26 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.