*
* @return the Value of property pageBuffering.
*/
+ @Deprecated
public boolean isPageBufferingEnabled() {
return true;
}
* @param pageBuffering
* the New value of property pageBuffering.
*/
+ @Deprecated
public void setPageBufferingEnabled(boolean pageBuffering) {
}
*
* @deprecated should not need to be used
*/
+ @Deprecated
public void refreshCurrentPage() {
}
/* Overriding select behavior */
+ @Override
public void setValue(Object newValue) throws ReadOnlyException,
ConversionException {
// external selection change, need to truncate pageBuffer
*
* @see com.itmill.toolkit.data.Container.Viewer#setContainerDataSource(Container)
*/
+ @Override
public void setContainerDataSource(Container newDataSource) {
disableContentRefreshing();
* @see com.itmill.toolkit.ui.Select#changeVariables(java.lang.Object,
* java.util.Map)
*/
+ @Override
public void changeVariables(Object source, Map variables) {
boolean clientNeedsContentRefresh = false;
isContentRefreshesEnabled = true;
if (refreshContent) {
refreshRenderedCells();
- // Ensure that client gets a response
+ // Ensure that client gets a response
requestRepaint();
}
}
* com.itmill.toolkit.ui.AbstractSelect#paintContent(com.itmill.toolkit.
* terminal.PaintTarget)
*/
+ @Override
public void paintContent(PaintTarget target) throws PaintException {
// The tab ordering number
*
* @see com.itmill.toolkit.ui.AbstractSelect#getTag()
*/
+ @Override
public String getTag() {
return "table";
}
*
* @see com.itmill.toolkit.data.Property.ValueChangeListener#valueChange(Property.ValueChangeEvent)
*/
+ @Override
public void valueChange(Property.ValueChangeEvent event) {
if (event.getProperty() == this) {
super.valueChange(event);
*
* @see com.itmill.toolkit.ui.Component#attach()
*/
+ @Override
public void attach() {
super.attach();
*
* @see com.itmill.toolkit.ui.Component#detach()
*/
+ @Override
public void detach() {
super.detach();
*
* @see com.itmill.toolkit.data.Container#removeAllItems()
*/
+ @Override
public boolean removeAllItems() {
currentPageFirstItemId = null;
currentPageFirstItemIndex = 0;
*
* @see com.itmill.toolkit.data.Container#removeItem(Object)
*/
+ @Override
public boolean removeItem(Object itemId) {
final Object nextItemId = ((Container.Ordered) items)
.nextItemId(itemId);
*
* @see com.itmill.toolkit.data.Container#removeContainerProperty(Object)
*/
+ @Override
public boolean removeContainerProperty(Object propertyId)
throws UnsupportedOperationException {
* @see com.itmill.toolkit.data.Container#addContainerProperty(Object,
* Class, Object)
*/
+ @Override
public boolean addContainerProperty(Object propertyId, Class type,
Object defaultValue) throws UnsupportedOperationException {
/**
* Removes a generated column previously added with addGeneratedColumn.
*
- * @param id
+ * @param colunmId
* id of the generated column to remove
* @return true if the column could be removed (existed in the Table)
*/
- public boolean removeGeneratedColumn(Object id) {
- if (columnGenerators.containsKey(id)) {
- columnGenerators.remove(id);
- if (!items.containsId(id)) {
- visibleColumns.remove(id);
+ public boolean removeGeneratedColumn(Object colunmId) {
+ if (columnGenerators.containsKey(colunmId)) {
+ columnGenerators.remove(colunmId);
+ // remove column from visibleColumns list unless it exists in
+ // container (generator previously overrode this column)
+ if (!items.getContainerPropertyIds().contains(colunmId)) {
+ visibleColumns.remove(colunmId);
}
resetPageBuffer();
refreshRenderedCells();
*
* @see com.itmill.toolkit.ui.Select#getVisibleItemIds()
*/
+ @Override
public Collection getVisibleItemIds() {
final LinkedList visible = new LinkedList();
*
* @see com.itmill.toolkit.data.Container.ItemSetChangeListener#containerItemSetChange(com.itmill.toolkit.data.Container.ItemSetChangeEvent)
*/
+ @Override
public void containerItemSetChange(Container.ItemSetChangeEvent event) {
super.containerItemSetChange(event);
if (event instanceof IndexedContainer.ItemSetChangeEvent) {
*
* @see com.itmill.toolkit.data.Container.PropertySetChangeListener#containerPropertySetChange(com.itmill.toolkit.data.Container.PropertySetChangeEvent)
*/
+ @Override
public void containerPropertySetChange(
Container.PropertySetChangeEvent event) {
super.containerPropertySetChange(event);
* if set to true.
* @see com.itmill.toolkit.ui.Select#setNewItemsAllowed(boolean)
*/
+ @Override
public void setNewItemsAllowed(boolean allowNewOptions)
throws UnsupportedOperationException {
if (allowNewOptions) {
* if invoked.
* @see com.itmill.toolkit.ui.AbstractField#focus()
*/
+ @Override
public void focus() throws UnsupportedOperationException {
throw new UnsupportedOperationException();
}
* Override abstract fields to string method to avoid non-informative null's
* in debugger
*/
+ @Override
public String toString() {
return "Table:" + getContainerPropertyIds() + ", rows "
+ getContainerDataSource().size() + " ,value:"
}
// Identical to AbstractCompoenentContainer.setEnabled();
+ @Override
public void setEnabled(boolean enabled) {
super.setEnabled(enabled);
if (getParent() != null && !getParent().isEnabled()) {